[web2py:27126] Re: missing cron folder results in ticket

2009-07-21 Thread Hans Donner
I've experienced when I downloaded the openid tar from massimo and installed it as application using r1036 (so quite recent). Just tested it by creating a new app via the webinterface, stopping the server, removing cron and restarting it. Went ok. As I'm running a window box, it could be some rig

[web2py:27125] Re: Is this doable : input from one client, display to another ?

2009-07-21 Thread Mark Eichin
Look for orbited - a comet server that people were showing it off (with TurboGears, but like everything associated with TG it's a component that can be used in other contexts) at Pycon 2008... > Anyone used this kind of stuff with web2py yet, or at least with > python ? -- _Mark_ --~--~-

[web2py:27124] Re: task forces

2009-07-21 Thread __future__
I realize I am a little late to this discussion but after reviewing a lot of the messages in the group, searching the web resources (purchased manual, cookbook slides, alterego, etc.) and playing around with the framework for a few weeks at work in my spare time, I have some observations: - Docum

[web2py:27123] Re: Two tables that link to each other

2009-07-21 Thread Yarko Tymciurak
There is a section in the new book draft which covers Self-Reference and Aliases (self-reference notation was added, I believe, after the first version went to print). On Tue, Jul 21, 2009 at 10:53 PM, Jonathan Lundell wrote: > > On Jul 21, 2009, at 8:49 PM, Yarko Tymciurak wrote: > > > There ar

[web2py:27122] Re: Two tables that link to each other

2009-07-21 Thread Jonathan Lundell
On Jul 21, 2009, at 8:49 PM, Yarko Tymciurak wrote: > There are two formats for declaring a reference: > > > db.Field('owner', db.other_table) # this must have other_table > already defined, or it is a Python error; > ... > db.Field('owner', 'reference other_table') # this is delayed

[web2py:27121] Re: Two tables that link to each other

2009-07-21 Thread Yarko Tymciurak
There are two formats for declaring a reference: db.Field('owner', db.other_table) # this must have other_table already defined, or it is a Python error; ... db.Field('owner', 'reference other_table') # this is delayed evaluation, and what you would use to have two tables cross link each o

[web2py:27120] Two tables that link to each other

2009-07-21 Thread JoshuaJ
It seems that in web2py, if one table is to have a foreign key to another table, the target table must be defined first in db.py. Does this mean that there is no way to have two tables that link to each other? Specifically: I'm writing a basic multi-user address book application. Each user, of co

[web2py:27119] Re: Web2Py Editor Graphical glitches

2009-07-21 Thread Alex Fanjul
hahaha, it seems all of us suffered for that glich but nobody worried enough (ffor sure, many of us (like me) though "maybe a problem with my graphic display/browser/etc") fyi: in connection with this, im using a great text editor for windows (e-text editor) and i'm fighting with regex's to

[web2py:27118] Re: HOW2Py

2009-07-21 Thread Alex Fanjul
It's a great Idea John!! I bet for that! One self-contained zip file, with all ready to start, documentation, testing, etc. We would have to throw out all the innecesary examples, code, things in such a .*h*w2p (:D) files. regards, Alex El 21/07/2009 5:11, JohnMc escribió: > Alex, > > Certainly

[web2py:27117] Re: HOW2Py

2009-07-21 Thread Alex Fanjul
The problem with PDF is that people hungry to test it won't be able to easily C&P code and so... So it would be great to attach the code with an example project, isn't it? thanks alex f El 21/07/2009 17:11, JohnMc escribió: > Benigno, > > I am right there with you. When I sent the draft out I w

[web2py:27116] Re: HOW2Py

2009-07-21 Thread Alex Fanjul
I'm very interested in PayPal example Benigno... I'm willing to read it when it's ready. regads, alex f El 21/07/2009 16:00, Benigno escribió: > Sorry I got lost on this discussion, > > I'd be happy to help document with example PayPal to start with. As > for document formats, I have never us

[web2py:27115] Re: Questions for large deployment

2009-07-21 Thread Alex Fanjul
Hello Massimo (all) this days I'm reading about horizontal scale architectures, key/value and graphs db's, etc. and the awakening in cloud computing enviroment In the last reading, I saw "Redit" benchmark of about 50 to 100 thousands req/sec with standard linux box. I know those values are due

[web2py:27114] Re: Good news for DAL + Non-relational databases

2009-07-21 Thread JohnMc
"We experimented with PostgreSQL and MySQL, although any JDBC- compliant database should work. For details on PostgreSQL or MySQL installation please go to their websites. " -- from the install instructions. Generally data connectors don't change too often once implemented. Be glad to what and se

[web2py:27113] Re: missing cron folder results in ticket

2009-07-21 Thread AchipA
As Massimo said, it should be re-generated if it's missing. Are you using an up to date version and does the web2py process have sufficient privileges to make a cron dir ? On Jul 21, 9:10 pm, Hans Donner wrote: > When running an app that has no cron folder, a ticket is generated and > the folder

[web2py:27112] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
I've uploaded to my website the minimal version of the working OpenID implementation application. Just unzip in your application directory and go to http://127.0.0.1:8000/openid/client/startOpenID to start. I couldn't create a w2p file from it because Web2Py kept complaining about an internal err

[web2py:27111] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
Yes, I accidentally missed your 2nd message and fixed it on my own. I also found another error. So as a canonical reference, here are the 3 things that need to be edited to get Massimo's OpenID to work. 1. trust_root = 'http://127.0.0.1:8000/openid/client/startOpenID change this to trust_root =

[web2py:27110] Re: jPolite solved (almost) all our problems

2009-07-21 Thread Tito Garrido
Does jPolite app works on GAE? is it 100% working? Thanks, Tito On Fri, Jun 12, 2009 at 3:33 PM, mdipierro wrote: > > They should be merged but jDiv should stay. What does you modifie > version do? Can you share it? > > On Jun 12, 1:27 pm, Ted G wrote: > > Is the work being done with jPolite

[web2py:27109] Re: Good news for DAL + Non-relational databases

2009-07-21 Thread waTR
It uses java at the moment due to it being a proof of concept. However, because it is open-source, and it has a solid spec., I would not be surprised to see a python api or version any day. Just something interesting to look forward to. On Jul 21, 3:16 pm, JohnMc wrote: > It also requires jav

[web2py:27108] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-21 Thread Fran
On Jul 21, 11:42 pm, Fran wrote: > Confirmed. MySQL-5.1.36 with MySQL-python-1.2.2.win32 on Python-2.5.4 > on Windows XP > OperationalError: (1025, "Error on rename of '.\\db\\#sql-198_4' to '.\ > \db\\testing4' (errno: 150)") sql.log doesn't show anything interesting: timestamp: 2009-07-21T23:3

[web2py:27107] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-21 Thread Fran
On Jul 21, 11:20 pm, mdipierro wrote: > I do cannot try this right now. Can somebody confirm this? Confirmed. MySQL-5.1.36 with MySQL-python-1.2.2.win32 on Python-2.5.4 on Windows XP Traceback (most recent call last): File "C:\Bin\web2py\gluon\restricted.py", line 178, in restricted exec

[web2py:27106] Re: How to avoid updating one of the record's fields?

2009-07-21 Thread mdipierro
This was fixed in 1.65.5 On Jul 21, 5:02 pm, Dan wrote: > Followup: I got it to work by using the onvalidation parameter in the > form.accepts() function. > When there is a blank password, I insert a temporary, bogus password > into form.vars, and > then use the onvalidation function to replace

[web2py:27105] Re: missing cron folder results in ticket

2009-07-21 Thread mdipierro
strange it should create the folder is not there. f you can confirm this, could you send me a patch? Thanks. On Jul 21, 2:10 pm, Hans Donner wrote: > When running an app that has no cron folder, a ticket is generated and > the folder must be created by hand. > > (noting this already, curren

[web2py:27104] Re: Getting the next record

2009-07-21 Thread mdipierro
+1 On Jul 21, 1:59 pm, Hans Donner wrote: > On Tue, Jul 21, 2009 at 20:20, rb wrote: > > > A design choice? Does this mean that there is no will/interest to add > > indices to the DAL now or forever? How about table (multi-column) > > constraints? Can these be added without the exponential incre

[web2py:27103] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-21 Thread mdipierro
I do cannot try this right now. Can somebody confirm this? Massimo On Jul 21, 1:53 pm, David Zejda wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hmmm. I did some experiments - upgraded MySQL from 5.0.51 to 5.0.83-1 > and also tried completely different machine as a database backe

[web2py:27102] Re: allow NULL in date field in SQLFORM

2009-07-21 Thread mdipierro
if you change the format of IS_DATE() you also need to change the format for calendar.js. This is done in web2py_ajax.html. Alternatively you can leave IS_DATE and web2py_ajax.html as they were and translate both strings using internationalization. Massimo On Jul 21, 9:16 am, DenisBY wrote: >

[web2py:27101] Re: Good news for DAL + Non-relational databases

2009-07-21 Thread JohnMc
It also requires java -- gag. On Jul 21, 5:08 pm, b00m_chef wrote: > http://db.cs.yale.edu/hadoopdb/hadoopdb.html > > It works with PostgreSQL & MySQL. > > Anyone have some other info on this? --~--~-~--~~~---~--~~ You received this message because you are subscri

[web2py:27100] Re: The 80/20 rule

2009-07-21 Thread Yarko Tymciurak
I suggest you just ask Massimo; I think you would have backing. Anyway, mongo (I'm still playing, reading) is looking pretty interesting, and I've only been playing about 2 hours... Thanks for the discussions on this... On Tue, Jul 21, 2009 at 5:05 PM, Fran wrote: > > On Jul 21, 10:59 pm, Bot

[web2py:27099] Re: auth login form

2009-07-21 Thread mdipierro
The problem is that if used behind a proxy web2py cannot detect if it is https or not. I am not convinced it belongs in there. On Jul 21, 9:05 am, Hans Donner wrote: > As web2py is being pitched as being secure... the login form for auth > is not using a https connection... Perhaps this sould be

[web2py:27098] Re: OpenID for Web2Py

2009-07-21 Thread hcvst
and a still rather messy example using the same Web2pyStore with openid to implement the server side. http://pastebin.co.za/22363 I'm trying to write an openID server app. By tomorrow I should commit a functional version to http://github.com/hcvst/icy-openid. I haven't got quite the hang of gi

[web2py:27097] Good news for DAL + Non-relational databases

2009-07-21 Thread b00m_chef
http://db.cs.yale.edu/hadoopdb/hadoopdb.html It works with PostgreSQL & MySQL. Anyone have some other info on this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py:27096] Re: The 80/20 rule

2009-07-21 Thread Fran
On Jul 21, 10:59 pm, Bottiger wrote: >> "Just ask for access to the developers group." > Massimo has said though that only people who have actually contributed > code to Web2Py and not people that are merely planning to may join. He also said: "I have no strong object to the idea of removing eve

[web2py:27095] Re: How to avoid updating one of the record's fields?

2009-07-21 Thread Dan
Followup: I got it to work by using the onvalidation parameter in the form.accepts() function. When there is a blank password, I insert a temporary, bogus password into form.vars, and then use the onvalidation function to replace that bogus stuff with the previous password, already in encrypted fo

[web2py:27094] Re: The 80/20 rule

2009-07-21 Thread Bottiger
"Just ask for access to the developers group." Massimo has said though that only people who have actually contributed code to Web2Py and not people that are merely planning to may join. As for doc-oriented vs column oriented, they are more similar than they are different. Column oriented databas

[web2py:27093] Re: OpenID for Web2Py

2009-07-21 Thread hcvst
Hi, here's a consumer example I wrote. It implements openid.store.interface.OpenIDStore and makes it easy to use the openid lib in a controller (example included). http://pastebin.co.za/22362 HC --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:27092] Re: OpenID for Web2Py

2009-07-21 Thread Hans Donner
next challenge - integrate it with auth On Tue, Jul 21, 2009 at 22:14, Hans Donner wrote: > commenting out the return_to in finishOpenID did the trick (it will > take the return to as defined in the constant. The URL only provides a > path without the servername. > > So two minor changes made

[web2py:27091] Re: OpenID for Web2Py

2009-07-21 Thread Tim Michelsen
mdipierro schrieb: > My OpenID implementation was just an attempt to port python-openid to > web2py. I never tested it so I am not surprised it does not work. > check out here: http://gminick.wordpress.com/2009/06/18/next-step-openid-logging/ http://gminick.wordpress.com/2009/06/21/the-file-struc

[web2py:27090] Re: GAE upload from appadmin (site)

2009-07-21 Thread Tim Michelsen
Hi, > Did you create a Google App Engine account, accept the agreement, etc? > > http://appengine.google.com/ Yes, when I sign in, I can see my applications. It shows 2 and says: None Deployed. Any idea? Thanks for your help. Timmie --~--~-~--~~~---~--~~ You

[web2py:27089] Re: Web2Py Editor Graphical glitches

2009-07-21 Thread dlypka
NicEdit seems to have that issue with CHROME where it is used in web2py. TinyMCE works correctly with CHROME as a replacement for the NicEdit in Web2py. I modified my web2py to do it. On Jul 21, 9:53 am, mdipierro wrote: > I have seen this. The glitch appeared after we "upgraded" editarea. We >

[web2py:27088] Re: The 80/20 rule

2009-07-21 Thread Yarko Tymciurak
more on playing w/ MongoDB - looking at mongokit (which tries to make an orm-type adapter to mongo), I think this might be a relatively easy basis for a (?) generic document-type-persistence-store... I don't know how long /far I'll play with it (that it's been this easy so far is a good sign).

[web2py:27087] How to avoid updating one of the record's fields?

2009-07-21 Thread Dan
I'm working on a form to let the site administrator edit everything that's part of a user's record in the auth.user table. I want to be able to edit the registration key, reset passwords, etc. This code is almost working, except that when I want to only update the registration key, it also clobber

[web2py:27086] Re: OpenID for Web2Py

2009-07-21 Thread Hans Donner
commenting out the return_to in finishOpenID did the trick (it will take the return to as defined in the constant. The URL only provides a path without the servername. So two minor changes made it work... On Tue, Jul 21, 2009 at 22:07, Hans Donner wrote: > I've used Massimo's code, installed it

[web2py:27085] Re: OpenID for Web2Py

2009-07-21 Thread Hans Donner
I've used Massimo's code, installed it in a new app and executed it (using myopenid). I'd had to change #trust_root = 'http://127.0.0.1:8000/openid/client/startOpenID' trust_root = 'http://127.0.0.1:8000/openid/client' return_to = 'http://127.0.0.1:8000/openid/client/finishOpenID' to give me a p

[web2py:27084] Re: The 80/20 rule

2009-07-21 Thread Yarko Tymciurak
On Tue, Jul 21, 2009 at 2:38 PM, Bottiger wrote: > > "This discussion should probably be moved to the web2py developers > group:" > > I don't have access to the web2py developers group. But maybe that is > the point. See why I don't like the separation? Just ask for access to the developers gro

[web2py:27083] Re: The 80/20 rule

2009-07-21 Thread Bottiger
"This discussion should probably be moved to the web2py developers group:" I don't have access to the web2py developers group. But maybe that is the point. See why I don't like the separation? I am no novice to open source. I know that not every patch will be accepted, but every project has vary

[web2py:27082] Re: too many values to unpack

2009-07-21 Thread Yarko Tymciurak
also, I remember something about admin app (if I recall) not updating with a web2py update (since you could have modified it); You might try to make a clean web2py installation, and move your app to it - see what results that yields. On Tue, Jul 21, 2009 at 2:21 PM, Hans Donner wrote: > > Thank

[web2py:27081] Re: too many values to unpack

2009-07-21 Thread Hans Donner
Thanks. Pasted into a new db.py and ran appadmin. No issues here, can browse around. What DB are you using? Have you tried in a clean (db) environment? On Tue, Jul 21, 2009 at 21:14, hcvst wrote: > > http://pastebin.co.za/22355 > > On Jul 21, 8:37 pm, Hans Donner wrote: >> can you mail me the co

[web2py:27080] Re: The 80/20 rule

2009-07-21 Thread Yarko Tymciurak
On Tue, Jul 21, 2009 at 1:51 PM, Bottiger wrote: > > Do you mean that we will support couchdb or that the DAL will allow > support? This discussion should probably be moved to the web2py developers group: I suggested that a clean, column-oriented DAL would be an interesting experiment / excerc

[web2py:27079] Re: too many values to unpack

2009-07-21 Thread hcvst
http://pastebin.co.za/22355 On Jul 21, 8:37 pm, Hans Donner wrote: > can you mail me the complete model as attachment? lot of other table > dependencies in your posting, want to run it here. > > On Tue, Jul 21, 2009 at 20:17, hcvst wrote: > > > Controller/function are:  /appadmin/index > > > On

[web2py:27078] Re: The 80/20 rule

2009-07-21 Thread JohnMc
Agreed that it does require it fit in memory just as memcached. But being able to handle 150 page views per sec in a 1mb memory space I don't know if for most that would be much of a concern, for most websites web2py would be brought to bear on. JohnMc On Jul 20, 8:16 pm, Bottiger wrote: > Redi

[web2py:27077] missing cron folder results in ticket

2009-07-21 Thread Hans Donner
When running an app that has no cron folder, a ticket is generated and the folder must be created by hand. (noting this already, currently no time to digg into this further) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[web2py:27075] Re: HOW2Py

2009-07-21 Thread MikeEllis
FWIW, as a relatively new user of web2py, I'm much less interested in HOWTO tutorials (Massimo's manual is quite good!) than in being able to try and download example applications that are well-commented and "close enough" to what I want to create that I can easily modify them one step at time to

[web2py:27076] Re: The 80/20 rule

2009-07-21 Thread Hans Donner
The new DAL should be flexible enough to build the support. On Tue, Jul 21, 2009 at 20:51, Bottiger wrote: > > Do you mean that we will support couchdb or that the DAL will allow > support? > > I've talked to the CouchDB developers and they have said that its > currently in Alpha and they will pr

[web2py:27074] Re: Getting the next record

2009-07-21 Thread Hans Donner
On Tue, Jul 21, 2009 at 20:20, rb wrote: > > A design choice? Does this mean that there is no will/interest to add > indices to the DAL now or forever? How about table (multi-column) > constraints? Can these be added without the exponential increase in > complexity? As far as I can tell, this is

[web2py:27073] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-21 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hmmm. I did some experiments - upgraded MySQL from 5.0.51 to 5.0.83-1 and also tried completely different machine as a database backend, with functional 5.0.32. It occurs on all of them. Then I tried to isolate the simpliest model code change, which

[web2py:27072] Re: The 80/20 rule

2009-07-21 Thread Bottiger
Do you mean that we will support couchdb or that the DAL will allow support? I've talked to the CouchDB developers and they have said that its currently in Alpha and they will probably be making changes that break backwards compatibility. MongoDB on the other hand, is nearing 1.0 release by the s

[web2py:27070] Re: too many values to unpack

2009-07-21 Thread Hans Donner
can you mail me the complete model as attachment? lot of other table dependencies in your posting, want to run it here. On Tue, Jul 21, 2009 at 20:17, hcvst wrote: > > Controller/function are:  /appadmin/index > > On Jul 21, 8:15 pm, hcvst wrote: >> I tried now with web2py 1.65.5 (2009-07-15 17:

[web2py:27071] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
Here is the link to Massimo's OpenID implementation. http://groups.google.com/group/web2py/attach/8f44bbaf1a88796b/web2py.app.openid.tar?part=2 If anyone would like to help debug it with me and get it working together, I am on IRC. On Jul 21, 3:09 am, Hans Donner wrote: > Can you point me to "

[web2py:27069] Re: Getting the next record

2009-07-21 Thread rb
A design choice? Does this mean that there is no will/interest to add indices to the DAL now or forever? How about table (multi-column) constraints? Can these be added without the exponential increase in complexity? Yes, I'll add indices outside of the DAL. This thread began because I didn't thin

[web2py:27068] Re: too many values to unpack

2009-07-21 Thread hcvst
Controller/function are: /appadmin/index On Jul 21, 8:15 pm, hcvst wrote: > I tried now with web2py 1.65.5 (2009-07-15 17:10:40) > and get the same error. > > The other tables in the model do not use validators. > > Thanks, > HC > > --- > > On Jul 21, 7:44 pm, Hans Donner wrote: > > > what ver

[web2py:27067] Re: too many values to unpack

2009-07-21 Thread hcvst
I tried now with web2py 1.65.5 (2009-07-15 17:10:40) and get the same error. The other tables in the model do not use validators. Thanks, HC --- On Jul 21, 7:44 pm, Hans Donner wrote: > what version of web2py are you using? > on what url are you getting the error? > > On Tue, Jul 21, 2009 a

[web2py:27066] Re: web2py-users and web2py-developers

2009-07-21 Thread Yarko Tymciurak
On Tue, Jul 21, 2009 at 9:04 AM, mdipierro wrote: > > > > On Jul 21, 8:17 am, Anand Vaidya wrote: > > I support the split too. This type of split is quite common in mailing > > lists. In the long term, it makes easier for everyone. Please make the > > -dev list readable by anyone (or atleast by

[web2py:27065] Re: too many values to unpack

2009-07-21 Thread Hans Donner
what version of web2py are you using? on what url are you getting the error? On Tue, Jul 21, 2009 at 19:26, hcvst wrote: > > Hi, > > when tying to use the integrated db admin the error below is raised. > > Error traceback > Traceback (most recent call last): >  File "/home/hcvst/dev/web2py/gluon/

[web2py:27064] Re: The 80/20 rule

2009-07-21 Thread Yarko Tymciurak
my other (somewhat uninformed) concern about adding couchDB to a BigTable/Column-oriented DAL was this: http://en.wikipedia.org/wiki/CouchDB saying couch is not a column oriented DB. If it maps resonably well into a C-DAL abstraction thought, it should be ok. Just something to watch. On Tue, Ju

[web2py:27063] too many values to unpack

2009-07-21 Thread hcvst
Hi, when tying to use the integrated db admin the error below is raised. Error traceback Traceback (most recent call last): File "/home/hcvst/dev/web2py/gluon/restricted.py", line 98, in restricted exec ccode in environment File "/home/hcvst/dev/web2py/applications/openid/views/ appadmin

[web2py:27062] Re: killer app idea

2009-07-21 Thread Francisco Gama
On Jul 20, 3:58 am, Bottiger wrote: > This sounds very similar to RSS feeds and aggregators. It uses http/ > rpc to fetch news items and you can optionally mirror them on your > server. You can then filter them with keywords. > > There are problems with this with regards to censorship. > > 1. X

[web2py:27061] Re: Problem with SQLFORM.accepts (?)

2009-07-21 Thread Karol Grębski
On Jul 20, 4:22 pm, mdipierro wrote: > The error is here: > > IS_NOT_IN_DB(db,db.strona) > > the second argument has to be a field, not a table. Thanks massimo, it helped! Great framework with a great community. Cheers! --~--~-~--~~~---~--~~ You received this me

[web2py:27060] How2PyII

2009-07-21 Thread JohnMc
How2Py, was getting a little long. The previous discussion seems to have brought out a couple principles -- * More emphasis on content than form to get the pump primed. * Nobody said it but I seem to sense that more people would be comfortable with the idea that source type (pdf, rst, doc, odt) n

[web2py:27059] Re: HOW2Py

2009-07-21 Thread JohnMc
Benigno, I am right there with you. When I sent the draft out I was looking for feedback. So slap it around and offer recommendations. The primary reason I did it in Scribus was I could get the formatting the way I wanted it. The fact it is PDF is probably more germane. JohnMc. On Jul 21, 9:00

[web2py:27058] Re: OpenID for Web2Py

2009-07-21 Thread gluegl
I am using http://www.internetid.ws/index.php Disclaimer, this is my service and I have implemented here also http://TwiTr.me -G On Jul 21, 4:10 am, Bottiger wrote: > I've been trying to get Massimo's OpenID implementation to work, which > seems to be the only OpenID implementation for Web2Py. >

[web2py:27057] Re: allow NULL in date field in SQLFORM

2009-07-21 Thread DenisBY
Hello How I should define format if my controller looks like: def view(): form = SQLFORM(db.book) records = db(db.book.id>0).select(orderby='date') if form.accepts(request.vars): redirect(URL(r=request,f='view')) if form.errors: response.flash="error" return dict(f

[web2py:27056] Re: Condensing jquery.js

2009-07-21 Thread Gijsbert
For jQuery specifically, you could also use the Google hosted version: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js (or other version). See http://code.google.com/apis/ajaxlibs/documentation/#jquery . On Jul 20, 1:07 am, Bottiger wrote: > Is there any reliable way to condense

[web2py:27055] auth login form

2009-07-21 Thread Hans Donner
As web2py is being pitched as being secure... the login form for auth is not using a https connection... Perhaps this sould be made configurable (as https is not always available) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[web2py:27054] Re: web2py-users and web2py-developers

2009-07-21 Thread mdipierro
On Jul 21, 8:17 am, Anand Vaidya wrote: > I support the split too. This type of split is quite common in mailing > lists. In the long term, it makes easier for everyone. Please make the > -dev list readable by anyone (or atleast by web2py-users) It is. Is it not? > The dev list can focus more

[web2py:27053] Re: OpenID for Web2Py

2009-07-21 Thread Hans Donner
I'd still like to dive into this (but from the reply below, it may take some additional time) On Tue, Jul 21, 2009 at 15:59, mdipierro wrote: > > My OpenID implementation was just an attempt to port python-openid to > web2py. I never tested it so I am not surprised it does not work. > > Massimo >

[web2py:27052] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-21 Thread mdipierro
I do not know. The error says: OperationalError: (1025, "Error on rename of './jfind/#sql-ac1_5e' to './jfind/person' (errno: 150)") This is a database error, not a web2py error, I do not know what "'./ jfind/#sql-ac1_5e" is. web2py did not create it. I suggest remove the database and everthing

[web2py:27051] Re: HOW2Py

2009-07-21 Thread Benigno
Sorry I got lost on this discussion, I'd be happy to help document with example PayPal to start with. As for document formats, I have never used scribus. I am ok, with LaTex, and Beamer and Sphinx. However, I think a little structure would be needed on the format this documents would be sh

[web2py:27050] Re: OpenID for Web2Py

2009-07-21 Thread mdipierro
My OpenID implementation was just an attempt to port python-openid to web2py. I never tested it so I am not surprised it does not work. Massimo On Jul 21, 5:09 am, Hans Donner wrote: > Can you point me to "Massimo's OpenID implementation" that you are referring > to? > Perhaps you could send m

[web2py:27049] Re: Getting the next record

2009-07-21 Thread mdipierro
I have not followed the details of this thread but you can create indices on any column outside web2py or using executesql(). It was a design choice not to suport this since it exponentially increases the complexity of migrations. It is easy enough to add indices form the database shell. On Jul 2

[web2py:27048] Re: killer app idea

2009-07-21 Thread mdipierro
What I have in mind is also replication of content using db.export_as_csv_file(..) over xmlrpc services or something like that. Massimo On Jul 21, 1:49 am, JohnMc wrote: > Presumably to have this survivable you would want multiple replicated > hosts sitting out in the cloud with no content on t

[web2py:27047] Re: Web2Py Editor Graphical glitches

2009-07-21 Thread mdipierro
I have seen this. The glitch appeared after we "upgraded" editarea. We should 1) upgrade again if possible or 2) downgrade. I will be addressed in next release. Massimo On Jul 21, 1:32 am, JohnMc wrote: > Yes I have seen this too. (I named it ghosting.) At least for me the > one thing that seem

[web2py:27046] Re: Questions for large deployment

2009-07-21 Thread mdipierro
- Are there any large web2py installations that I can quote as an example Not that I know and handle >1000 requests/second. - How are the issues of caching (say rendered pages) handled? I have done a few Drupal sites and can see the performance effects of caching very clearly. IIRC only Django h

[web2py:27045] Re: HOW2Py

2009-07-21 Thread mdipierro
good job! On Jul 20, 4:12 pm, JohnMc wrote: > Ok, here is a draft of the article > --http://76.185.48.154/images/web2pyart1.pdf. > > Have not applied a great deal off formatting. Looking for input as to > preferences in that regard. > > JohnMc > > On Jul 19, 10:13 pm, Yarko Tymciurak wrote: >

[web2py:27044] Re: The 80/20 rule

2009-07-21 Thread mdipierro
I would not be concerned about security too much because it can be achieved by blocking access. I am not convinced it will help the majority of our users, perhaps 1% of them or less. Anyway, we should support it in the new DAL. Massimo On Jul 20, 10:35 pm, Yarko Tymciurak wrote: > from a recent

[web2py:27043] Re: Anyone in Southern Calif

2009-07-21 Thread mdipierro
I am sure you'll find some volunteers. If anybody needs copy of my slides let me know. If you cannot find anybody we can try to a remote talk. On Jul 20, 10:33 pm, weheh wrote: > I used to go to the Northern Cal Piggies group meetings occasionally > and I must say that Piggies rock. And this is

[web2py:27042] Re: Oracle Errors on multiple row retrieval

2009-07-21 Thread mdipierro
The error appears in the view search.html so I am not sure which Rows object is causing the the problem. Try use select().as_list() instead of select(). Massimo On Jul 20, 4:35 pm, DJ wrote: > Hi Massimo, > > Tried the db.commit and I still get the error. Not sure what is > causing it. I have

[web2py:27041] Re: breadcrumb design

2009-07-21 Thread Alex Fanjul
Any good pattern / shortcut to do this? (breadcrumbs) thanks alex f El 17/07/2009 2:45, Richard escribió: > hello, > > Does anyone have a neat breadcrumb link system for web2py? > http://en.wikipedia.org/wiki/Breadcrumb_(navigation) > > Currently each of my controller functions define a menu var

[web2py:27040] Re: web2py-users and web2py-developers

2009-07-21 Thread Anand Vaidya
I support the split too. This type of split is quite common in mailing lists. In the long term, it makes easier for everyone. Please make the -dev list readable by anyone (or atleast by web2py-users) The dev list can focus more on discussions on long term / future plans, architectural issues etc.

[web2py:27039] Re: Is this doable : input from one client, display to another ?

2009-07-21 Thread fpp
On 20 juil, 23:23, fpp wrote: > Thanks Massimo. The reversehttp method sounds a bit *too* > sophisticated (or at least under-documented) to me, I guess I'll try > the first one for a start. > > Is it not possible for a client to maintain a long-running > xlmhttprequest by which the server can ref

[web2py:27038] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-21 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The same error occurs, if I remove from the table model SQLField, which relates to an another table, like this: SQLField('name', db.permission_level, default=1, requires = IS_IN_DB(db, 'permission_level.id', '%(level)s - %(name)s')) I don't

[web2py:27037] about README in version 1.65.5

2009-07-21 Thread zhang zheng
in the version 1.65.5, there is no new change log in the README, when upgrade web2py, I used to look at this file, I would like to know the progress of the project. follow text is come from SVN log 1.65.3 fixes Field.store/retrieve 1.65.4 fixed bug in tools, thanks Jonathan small fixes, _va

[web2py:27036] Re: Does CRON work on GAE?

2009-07-21 Thread AchipA
Hm, if I understand correctly, we just need a smart crontab -> cron.yaml converter then, right ? I can imagine other people needing that too, so there might alredy be such things in the open, could someone verify that ? On Jul 21, 11:58 am, Hans Donner wrote: > gae has its own implemementation >

[web2py:27035] Re: OpenID for Web2Py

2009-07-21 Thread Hans Donner
Can you point me to "Massimo's OpenID implementation" that you are referring to? Perhaps you could send me teh code that your are using? When I get back from work I'll try to have a look. On Tue, Jul 21, 2009 at 10:10, Bottiger wrote: > > I've been trying to get Massimo's OpenID implementation t

[web2py:27034] Re: Does CRON work on GAE?

2009-07-21 Thread Hans Donner
gae has its own implemementation - http://code.google.com/appengine/docs/python/config/cron.html - http://code.google.com/appengine/docs/python/config/queue.html - http://code.google.com/appengine/docs/python/taskqueue/ perhaps some kind of remapping (like cache) can do the trick On Tue, Jul 21

[web2py:27033] Re: Does CRON work on GAE?

2009-07-21 Thread AchipA
GAE is not supported at the moment, but only because I don't use it and there was no particular interest in it so far. If GAE has no means of starting cron-style or long running processes, soft cron should stil work, provided someone implements a locking mechanism that works with GAE. The current

[web2py:27032] Re: IS_IN_DB() generates too many options !

2009-07-21 Thread Fran
On Jul 21, 9:16 am, hywang wrote: > when use IS_IN_DB(), it generates too many options,  of course we can > use  requires = [IS_IN_DB()] to make it like a textbox rather than > selectbox, however, it is not converious for user to select an item. > Can we solve it using auto-complete like google s

[web2py:27031] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
I don't need wireshark. Its in plain sight. The problem is I have no idea what is wrong with it. https://open.login.yahooapis.com/openid/op/auth?openid.assoc_handle=crOLLLvQds2YOP5jXvLaBs1gVC1eIpFhqmxcDxETwNFxG68HIItiJzZhrffh4bn00jyuPgNt2clv3bSaQvG9yNJ8EIx._Ja768i256WwR4sUXnKEMimMy3jd4VJcT2dfcw--

[web2py:27030] Re: OpenID for Web2Py

2009-07-21 Thread Yarko Tymciurak
you might try looking at what gets sent back and forth to try to discover what's wrong; wireshark or LiveHTTPHeaders for Firefox might help... On Tue, Jul 21, 2009 at 3:10 AM, Bottiger wrote: > > I've been trying to get Massimo's OpenID implementation to work, which > seems to be the only OpenI

[web2py:27029] IS_IN_DB() generates too many options !

2009-07-21 Thread hywang
when use IS_IN_DB(), it generates too many options, of course we can use requires = [IS_IN_DB()] to make it like a textbox rather than selectbox, however, it is not converious for user to select an item. Can we solve it using auto-complete like google suggestion ? --~--~-~--~~---

[web2py:27028] OpenID for Web2Py

2009-07-21 Thread Bottiger
I've been trying to get Massimo's OpenID implementation to work, which seems to be the only OpenID implementation for Web2Py. It doesn't seem to work with either Yahoo or Google, each time saying: "Sorry! Something is not quite right with the request we received from the website you are trying t

[web2py:27027] Re: Getting the next record

2009-07-21 Thread rb
> > Further, I ***can*** just add a 'orderby' clause to the select() > > function but this is expensive. Correct me if I'm wrong but I believe > > that a table's primary key is automatically indexed. When selecting on > > the primary key the db automatically uses its index - which speeds > > thing

  1   2   >