[web2py] Re: the web2py book, source code

2010-04-12 Thread waTR
Please post a link on that page to the bitbucket/github source code location of that project. If it is not up on one of those, any plans to put it up? I really feel more web2py plugins/apps need to make use of github/bitbucket/googlecode. On Apr 11, 8:06 pm, Thadeus Burgess wrote: > Double post

[web2py] Re: Trouble starting web2py

2010-04-12 Thread Mathieu Clabaut
I didn't try it, but perhaps the use of virtualenv should be considered : http://pypi.python.org/pypi/virtualenv (http://www.doughellmann.com/docs/virtualenvwrapper/ may be considered too)... -Mathieu On Sun, Apr 11, 2010 at 20:45, muybay wrote: > Yikes, I was a little to quick on the send but

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
Model db.define_table('space', Field('name'), Field('slug', 'string'), Field('description','text'), Field('photo','upload'), Controller def add_space(): form='ola'#crud.create(db.space) return dict(form=form) def create(): name = request.vars.name slug = slugify

[web2py] Custom Auth Methods

2010-04-12 Thread Ishbir
Hey everyone, Is it possible to define custom auth methods and override the existing methods with our own? For e.g. I am making an application that authenticates against a remote website not the existing application. So, I just want to authenticate remotely and if it is successful, just get the us

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Ishbir
There is an entry regarding this in the book- http://web2py.com/book/default/section/3/6 It's almost the same stuff.. On Apr 12, 3:54 pm, Francisco Costa wrote: > Model > > db.define_table('space', >     Field('name'), >     Field('slug', 'string'), >     Field('description','text'), >     Fiel

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
Hello lshbit, thank you for your answer, but i think my problem is a bit different. I'm using a custom form as you can see in add_space.html and I use a "photo = request.vars.photo" to insert the data from the form in the database On Apr 12, 12:28 pm, Ishbir wrote: > There is an entry regarding

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
I found the solution reading the "image uploading" thread. On Apr 12, 12:47 pm, Francisco Costa wrote: > Hello lshbit, thank you for your answer, but i think my problem is a > bit different. > I'm using acustomformas you can see in add_space.html and I use a > "photo = request.vars.photo"  to in

[web2py] Re: Custom Auth Methods

2010-04-12 Thread mdipierro
Yes. Auth is a class. You can extend it from gluon.tools import * class MyAuth(Auth): def requires_login(self): . auth=MyAuth(globals(),db) On Apr 12, 6:21 am, Ishbir wrote: > Hey everyone, > > Is it possible to define custom auth methods and override the existing > methods with our ow

[web2py] Re: web2py book and softcron

2010-04-12 Thread AchipA
To correct myself, it seems the cron in web2py no longer uses the filesystem timestamps, but cPickles timestamps from/to the lock file. I'm not sure why Massimo changed it, but this *is* a bigger overhead than it was previously (as it needs to do file locking and cPickle.load() on every single requ

[web2py] ProgrammingError: relation "auth_user" already exists

2010-04-12 Thread annet
I have one application (called base) in which I define all the tables for three other applications. In the three applications I use the same db.py file. In these db.py files I set migrate=False on all tables. One of these applications is a CMS, in which I enabled Authorization and Authentication.

[web2py] Re: ProgrammingError: relation "auth_user" already exists

2010-04-12 Thread annet
Could it have anything to do with defining a custom auth_user tabel? auth.settings.table_user=db.define_table('auth_user', Field('bedrijf', db.bedrijf, default='', notnull=True,ondelete='CASCADE', writable=False, readable=False), Field('first_name', length=128, default='', notnull=True),

[web2py] Re: Custom Auth Methods

2010-04-12 Thread Ishbir
What are the return values and stuff? Which is the method used for logging the user in and out; also the method for registering, I want it to be disabled. Possible? On Apr 12, 5:59 pm, mdipierro wrote: > Yes. Auth is a class. You can extend it > > from gluon.tools import * > class MyAuth(Auth): >

[web2py] Re: the web2py book, source code

2010-04-12 Thread mdipierro
I will On Apr 12, 3:26 am, waTR wrote: > Please post a link on that page to the bitbucket/github source code > location of that project. If it is not up on one of those, any plans > to put it up? I really feel more web2py plugins/apps need to make use > of github/bitbucket/googlecode. > > On Apr

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread mdipierro
There a number of problems. comments below: On Apr 12, 5:54 am, Francisco Costa wrote: > Model > > db.define_table('space', >     Field('name'), >     Field('slug', 'string'), >     Field('description','text'), >     Field('photo','upload'), > > Controller > > def add_space(): >     form='ola'#cr

[web2py] Re: web2py book and softcron

2010-04-12 Thread mdipierro
Because they os timestamp only can only tell you when a task has started (or stopped, depending on when it was created) it does not contain enough information to give you a time range (time and stop). Cron needs to know when the previous crondance started and whether is was completed or not. The or

[web2py] Re: ProgrammingError: relation "auth_user" already exists

2010-04-12 Thread mdipierro
I think web2py is trying to create a table that is already there. If you do not have data delete everything in databases/* On Apr 12, 8:51 am, annet wrote: > I have one application (called base) in which I define all the tables > for three other applications. In the three applications I use the

[web2py] Re: Custom Auth Methods

2010-04-12 Thread mdipierro
auth.settings.actions_disabled.append('register') Auth has a pluggable mechanism for alternate authentication methods. Look into the examples in gluon/contrib/login_methods perhaps you want one of these? On Apr 12, 9:52 am, Ishbir wrote: > What are the return values and stuff? Which is the meth

[web2py] Section 8.2 basic authentication mistake

2010-04-12 Thread Doug Elkin
In the online book, section 8.2: Authorization, the line of code that shows how to enable basic authentication reads as: auth.settings.allow_basic_authentication = True This needs changed to: auth.settings.allow_basic_login = True Also, further down the page, there is a line that reads "auth.se

[web2py] Unable to install application

2010-04-12 Thread annet
I installed web2py 1.76.5 at webfaction using their latest custom installer script. I am able to login to the admin application, however, when I Upload and Install a packed application I get the error: unable to install application "init". I hope one of you can help me solve this problem. Kind r

[web2py] Re: ProgrammingError: relation "auth_user" already exists

2010-04-12 Thread annet
Massimo, Yes, that would solve the problem, but I do have data in the auth_xxx tables. I had hoped there would be a more robust solution. Isn't it possible to define the auth_event, auth- group, auth_membership, auth_permission and auth_user in db.py just like I define all the other tables, and af

[web2py] Depploy with FastCGI

2010-04-12 Thread yamandu
I have been insistent with GAE but now I hit a point that its limitations are choking my app. So I am trying with a regular shared server that I own. The situation is: web2py must run with fastCGI in subdir like mydomain.com/web2py. The recipe from the book seems no to apply to my case. I´ve trie

[web2py] html5

2010-04-12 Thread mdipierro
should we replace in welcome with pros? cons? -- To unsubscribe, reply using "remove me" as the subject.

Re: [web2py] html5

2010-04-12 Thread Thadeus Burgess
+5 4 html5 -- Thadeus On Mon, Apr 12, 2010 at 11:59 AM, mdipierro wrote: > should we replace in welcome > > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > with > > > > pros? cons? > > > -- > To unsubscribe, reply using "remove me" as the subject. >

Re: [web2py] html5

2010-04-12 Thread Jonathan Lundell
On Apr 12, 2010, at 9:59 AM, mdipierro wrote: > should we replace in welcome > > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > with > > > > pros? cons? HTML5 is still a draft, not a standard. Validation tools tend not to support it (BBEdit is a case in point). -- To unsubsc

[web2py] Re: html5

2010-04-12 Thread mdipierro
I put it in trunk for now. It requires very few changes to welcome. Take a look. On Apr 12, 12:10 pm, Jonathan Lundell wrote: > On Apr 12, 2010, at 9:59 AM, mdipierro wrote: > > > should we replace in welcome > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > with > > > > > > pros?

[web2py] Re: html5

2010-04-12 Thread mdipierro
ps. I am not suggesting we use the new html5 features yet (like forms). Only the doctype (google does it) and make sure it w3c validates. On Apr 12, 12:10 pm, Jonathan Lundell wrote: > On Apr 12, 2010, at 9:59 AM, mdipierro wrote: > > > should we replace in welcome > > > >www.w3.org/TR/xhtml1/DT

Re: [web2py] Re: html5

2010-04-12 Thread Jonathan Lundell
On Apr 12, 2010, at 10:23 AM, mdipierro wrote: > ps. I am not suggesting we use the new html5 features yet (like > forms). Only the doctype (google does it) and make sure it w3c > validates. I'm not sure that Google is the best example to follow: http://validator.w3.org/check?uri=http://www.goog

[web2py] Re: html5

2010-04-12 Thread mdipierro
good point On Apr 12, 12:33 pm, Jonathan Lundell wrote: > On Apr 12, 2010, at 10:23 AM, mdipierro wrote: > > > ps. I am not suggesting we use the new html5 features yet (like > > forms). Only the doctype (google does it) and make sure it w3c > > validates. > > I'm not sure that Google is the best

[web2py] Re: web2py book and softcron

2010-04-12 Thread AchipA
Why do we need the time range ? If the tasks are overlapping it's their responsibility to handle that (I know this is arguable, but that's how 'standard' cron works). Also, we can easily store two timestamps (slightly hackish, but mtime and ctime can be set separately), would have to check whether

[web2py] Why am I getting this error ?

2010-04-12 Thread topher.baron
Traceback (most recent call last): File "gluon/main.py", line 478, in wsgibase File "gluon/main.py", line 193, in serve_controller File "gluon/compileapp.py", line 435, in run_controller_in TypeError: 'NoneType' object is not callable I make a jquery ajax call to a url that calls the follo

[web2py] model files can not end with a comment

2010-04-12 Thread DenesL
In 1.76.3, and probably others, model files can not end with a comment line: Traceback (most recent call last): File "D:\web2py\hg\gluon\restricted.py", line 171, in restricted ccode = compile(code.replace('\r\n', '\n'), layer, 'exec') File "D:/web2py/hg/applications/mssqltest/models/db.py

[web2py] Layouts Organization Proposal

2010-04-12 Thread Doug Elkin
Since there are over 400 layouts on web2py.com/layouts, it might be a good idea to assign tags to the layouts. The obvious benefit to this would be the ability to then sort through the layouts by tags (colors, ideal usage (blog, business, restaurant, etc), etc.) and maybe even have some type of rat

[web2py] Setting up web2py for use with Google App Engine

2010-04-12 Thread johntynan
I just wrote a blog post about setting up web2py for use with Google App Engine: http://opensourcebroadcasting.blogspot.com/2010/04/setting-up-web2py-for-use-with-google.html I hope you find this useful. Any comments or feedback are welcome. -- To unsubscribe, reply using "remove me" as the s

Re: [web2py] Why am I getting this error ?

2010-04-12 Thread Alexandre Andrade
TypeError: 'NoneType' object is not callable usually is a object not instancied. Verify your objects and put "try" around to help to debug or flow your code. 2010/4/12 topher.baron > Traceback (most recent call last): > File "gluon/main.py", line 478, in wsgibase > File "gluon/main.py"

[web2py] Re: Why am I getting this error ?

2010-04-12 Thread topher.baron
I should have been more explicit in my original message. I am receiving this error after the line 'return id'. I was writing to a debug file to find out which line of the exception was being thrown. I was able to write to a file in every part of the function, so I think there is a problem with s

Re: [web2py] model files can not end with a comment

2010-04-12 Thread Jonathan Lundell
On Apr 12, 2010, at 11:52 AM, DenesL wrote: > In 1.76.3, and probably others, model files can not end with a comment > line: > > Traceback (most recent call last): > File "D:\web2py\hg\gluon\restricted.py", line 171, in restricted >ccode = compile(code.replace('\r\n', '\n'), layer, 'exec') >

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 2:15 pm, Jonathan Lundell wrote: > On Apr 12, 2010, at 11:52 AM, DenesL wrote: > > > In 1.76.3, and probably others, model files can not end with a comment > > line: > > > Traceback (most recent call last): > >  File "D:\web2py\hg\gluon\restricted.py", line 171, in restricted > >    cco

[web2py] How to access database from GAE

2010-04-12 Thread Felix
Hi, I have read that database is readonly from the GAE production server. Is there anyother way to access and edit the database? Thanks -- To unsubscribe, reply using "remove me" as the subject.

Re: [web2py] Re: model files can not end with a comment

2010-04-12 Thread Jonathan Lundell
On Apr 12, 2010, at 12:17 PM, Yarko Tymciurak wrote: > On Apr 12, 2:15 pm, Jonathan Lundell wrote: >> On Apr 12, 2010, at 11:52 AM, DenesL wrote: >> >>> In 1.76.3, and probably others, model files can not end with a comment >>> line: >> >>> Traceback (most recent call last): >>> File "D:\web2p

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 2:39 pm, Jonathan Lundell wrote: > On Apr 12, 2010, at 12:17 PM, Yarko Tymciurak wrote: > > > > > On Apr 12, 2:15 pm, Jonathan Lundell wrote: > >> On Apr 12, 2010, at 11:52 AM, DenesL wrote: > > >>> In 1.76.3, and probably others, model files can not end with a comment > >>> line: > >

Re: [web2py] Re: model files can not end with a comment

2010-04-12 Thread Jonathan Lundell
On Apr 12, 2010, at 12:39 PM, Jonathan Lundell wrote: > On Apr 12, 2010, at 12:17 PM, Yarko Tymciurak wrote: > >> On Apr 12, 2:15 pm, Jonathan Lundell wrote: >>> On Apr 12, 2010, at 11:52 AM, DenesL wrote: >>> In 1.76.3, and probably others, model files can not end with a comment line

[web2py] Re: model files can not end with a comment

2010-04-12 Thread DenesL
Running on Windows here. @Yarko, yes, there seems to be an additional ingredient to this. A prerequisite seems to be the existence of a for statement somewhere. (!?!?). -- To unsubscribe, reply using "remove me" as the subject.

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 3:00 pm, DenesL wrote: > Running on Windows here. > > @Yarko,  yes, there seems to be an additional ingredient to this. > A prerequisite seems to be the existence of a for statement somewhere. > (!?!?). Denes - I'm assuming you've found a bug (perhaps a subtle one); Let's see if get t

[web2py] Re: model files can not end with a comment

2010-04-12 Thread DenesL
Very simple, in db.py: db=SQLDB(...) db.define_table('person', Field('name') ) s=[] for f in db.person.fields: s.append(db.person[f].type) # will fail. It is a stupid loop, but it illustrates the problem. If you comment out the for then it is ok. If you add an empty line or remove the comme

Re: [web2py] Re: model files can not end with a comment

2010-04-12 Thread Thadeus Burgess
I find this surprisingly humorous Its always some mundane detail! This isn't a mundane detail Michael! -- Thadeus On Mon, Apr 12, 2010 at 3:59 PM, DenesL wrote: > Very simple, in db.py: > > db=SQLDB(...) > db.define_table('person', >  Field('name') > ) > > s=[] > for f in db.person.fie

[web2py] Re: web2py book and softcron

2010-04-12 Thread mdipierro
On Apr 12, 1:19 pm, AchipA wrote: > Why do we need the time range ? If the tasks are overlapping it's > their responsibility to handle that (I know this is arguable, but > that's how 'standard' cron works). This is also as it works in newcron. The problem is that if for any reason, the main proce

[web2py] Re: Why am I getting this error ?

2010-04-12 Thread mdipierro
I have no idea but you can stop to my office tomorrow and we will post the solution then. Massimo On Apr 12, 2:05 pm, "topher.baron" wrote: > I should have been more explicit in my original message. > > I am receiving this error after the line 'return id'. > > I was writing to a debug file to fi

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 3:59 pm, DenesL wrote: > Very simple, in db.py: > > db=SQLDB(...) > db.define_table('person', >   Field('name') > ) > > s=[] > for f in db.person.fields: >   s.append(db.person[f].type) > # > > will fail. > It is a stupid loop, but it illustrates the problem. > Thanks Denes - this is s

Re: [web2py] Re: Why am I getting this error ?

2010-04-12 Thread Thadeus Burgess
lucky, I'm jealous! -- Thadeus On Mon, Apr 12, 2010 at 4:32 PM, mdipierro wrote: > I have no idea but you can stop to my office tomorrow and we will post > the solution then. > > Massimo > > On Apr 12, 2:05 pm, "topher.baron" wrote: >> I should have been more explicit in my original message.

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 5:09 pm, Yarko Tymciurak wrote: > On Apr 12, 3:59 pm, DenesL wrote: > > > Very simple, in db.py: > > > db=SQLDB(...) > > db.define_table('person', > >   Field('name') > > ) > > > s=[] > > for f in db.person.fields: > >   s.append(db.person[f].type) > > # > > > will fail. > > It is a st

[web2py] Re: html5

2010-04-12 Thread Christopher Steel
At this point in time (all?) validators generate errors for "bad" stuff as well as really "good" stuff because most validators are very out of date. As Jonathan pointed out right now Google shows about 40 errors. Running www.Web2py.com shows about 14 errors at http://validator.w3.org/ I don't th

Re: [web2py] Re: model files can not end with a comment

2010-04-12 Thread Thadeus Burgess
I can reproduce tburg...@-dev:~/Applications/web2py$ python web2py.py -S pms -M web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010 Version 1.76.5 (2010-03-20 12:12:17) Database drivers available: SQLite3 Traceback (most recent call last): File "/home/tburgess/Appli

[web2py] Re: Unable to install application

2010-04-12 Thread Christopher Steel
Hi Annet, I suspect this is the same issue I had when recently installing Web2py using a script. Y The "fix" is to manually start web2py once locally. Basically ssh into your Webfaction account and "become" www-data (if this is the user you use to run web2py) and start web2py once and then shut i

[web2py] Re: Why am I getting this error ?

2010-04-12 Thread mdipierro
LOL On Apr 12, 5:20 pm, Thadeus Burgess wrote: > lucky, I'm jealous! > -- > Thadeus > > On Mon, Apr 12, 2010 at 4:32 PM, mdipierro wrote: > > I have no idea but you can stop to my office tomorrow and we will post > > the solution then. > > > Massimo > > > On Apr 12, 2:05 pm, "topher.baron" wrot

[web2py] Re: Unable to install application

2010-04-12 Thread Christopher Steel
opps! Here you are... In a nutshell, start we2py once locally and that should take care of the issue. >From a local terminal: ssh u...@webfaction_account# include port info if you have customized your ssh access On the remote host: sudo su www-data # "become www-data user

[web2py] Re: Unable to install application

2010-04-12 Thread Christopher Steel
Is this the script you used? http://wiki.webfaction.com/wiki/Web2py-LatestSource On 12 avr, 11:20, annet wrote: > I installed web2py 1.76.5 at webfaction using their latest custom > installer script. I am able to login to the admin application, > however, when I Upload and Install a packed app

[web2py] Re: Unable to install application

2010-04-12 Thread Christopher Steel
If the above does not help I noticed this in the Web Faction forums as well, posting a link to the script you used would allow for a more definitive answer ; ) Cheers, Chris Problem Description: http://forum.webfaction.com/viewtopic.php?id=4114 Solution : http://groups.google.com/group/web2py/m

[web2py] Re: Why am I getting this error ?

2010-04-12 Thread Christopher Steel
me too! On 12 avr, 18:20, Thadeus Burgess wrote: > lucky, I'm jealous! > -- > Thadeus > > On Mon, Apr 12, 2010 at 4:32 PM, mdipierro wrote: > > I have no idea but you can stop to my office tomorrow and we will post > > the solution then. > > > Massimo > > > On Apr 12, 2:05 pm, "topher.baron" wr

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 5:51 pm, Thadeus Burgess wrote: > I can reproduce > > tburg...@-dev:~/Applications/web2py$ python web2py.py -S pms -M > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2010 > Version 1.76.5 (2010-03-20 12:12:17) > Database drivers available: SQLite3 > Trac

[web2py] strange result in db admin query

2010-04-12 Thread Sven
Hi, I was just using the default db admin page in web2py and filled in 'db.participant.mtref > 41' as a query for my participant table. Surprisingly it returned (this is just part of the output on the screen): participant.id participant.mtref 22149 8 It returns 49 records, 9 of which

Re: [web2py] Re: model files can not end with a comment

2010-04-12 Thread Jonathan Lundell
On Apr 12, 2010, at 4:25 PM, Yarko Tymciurak wrote: > Ok - not sure why I was not able to reproduce before: I put a > breakpoint on line 179 of restricted, and sure enough code, when it > had no ending newline, would cause an error. > > This seems like it is a bug with the builtin, compile() ..

[web2py] Re: strange result in db admin query

2010-04-12 Thread mdipierro
Sure that db.participant.mtref is not a string? What is the type? On Apr 12, 6:33 pm, Sven wrote: > Hi, > > I was just using the default db admin page in web2py and filled in > 'db.participant.mtref > 41' as a query for my participant table. > Surprisingly it returned (this is just part of the o

[web2py] Re: strange result in db admin query

2010-04-12 Thread Sven
That makes sense. I had changed the 'meaning' of mtref into int, without changing its type. Forgot about that. Thanks! On Apr 12, 5:50 pm, mdipierro wrote: > Sure that db.participant.mtref  is not a string? What is the type? > > On Apr 12, 6:33 pm, Sven wrote: > > > > > Hi, > > > I was just usi

Re: [web2py] Re: Encoding using as_dict not using UTF-8?

2010-04-12 Thread Tito Garrido
Is it expected? On Sun, Apr 11, 2010 at 11:54 AM, Tito Garrido wrote: > I could test it on Shell, not sure why it's happening: > > In[0]: > > p=db(db.paciente.id>0).select()[1].as_dict() > > Out[0]: > In[1]: > > p > > Out[1]: > > *{'bairro': 'Gra\xc3\xa7a',* 'telefone_residencial': '', 'numero':

[web2py] Re: Encoding using as_dict not using UTF-8?

2010-04-12 Thread mdipierro
I have not looked into this yet. It should be utf8 in both cases. On Apr 12, 8:39 pm, Tito Garrido wrote: > Is it expected? > > On Sun, Apr 11, 2010 at 11:54 AM, Tito Garrido wrote: > > > > > I could test it on Shell, not sure why it's happening: > > > In[0]: > > > p=db(db.paciente.id>0).select()

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 6:36 pm, Jonathan Lundell wrote: > On Apr 12, 2010, at 4:25 PM, Yarko Tymciurak wrote: > > > Ok - not sure why I was not able to reproduce before:  I put a > > breakpoint on line 179 of restricted, and sure enough code, when it > > had no ending newline,  would cause an error. > > > Thi

[web2py] Re: model files can not end with a comment

2010-04-12 Thread mdipierro
I agree. There is a reason why we strip() models and controllers but I forgot what that was. I do not see a problem with stripping and adding a \n. Massimo On Apr 12, 10:33 pm, Yarko Tymciurak wrote: > On Apr 12, 6:36 pm, Jonathan Lundell wrote: > > > On Apr 12, 2010, at 4:25 PM, Yarko Tymciur

[web2py] Re: model files can not end with a comment

2010-04-12 Thread mdipierro
hmmm... on a second thought we do that already in admin. data = request.vars.data.replace('\r\n', '\n').strip() + '\n' So the problem is definitively the compile function. I do not oppose to Yarko's proposed fix but I'd like to know if anybody has anything against it. Massimo O

[web2py] Re: model files can not end with a comment

2010-04-12 Thread mdipierro
Technically Yarko's patch is for gluon/restricted.py but there are because of web2py's ability to bytecode compile and cache code on gae compileapp also would need to be fixed. On Apr 12, 11:27 pm, mdipierro wrote: > hmmm... on a second thought we do that already in admin. > >             dat

[web2py] Re: model files can not end with a comment

2010-04-12 Thread Yarko Tymciurak
On Apr 12, 11:27 pm, mdipierro wrote: > hmmm... on a second thought we do that already in admin. > >             data = request.vars.data.replace('\r\n', '\n').strip() + > '\n' Ah! This is probably why I was not seeing the problem - I had to delete the trailing '\n' in Wing, at the breakpoin

[web2py] Re: How to access database from GAE

2010-04-12 Thread Richard
do you mean readonly from the dashboard? You can use appadmin to edit your data. On Apr 13, 5:22 am, Felix wrote: > Hi, >   I have read that database is readonly from the GAE production > server. Is there anyother way to access and edit the database? > > Thanks -- To unsubscribe, reply usin

[web2py] Re: Unable to install application

2010-04-12 Thread annet
Chris, Thank you very much for your extensive reply to my post. I apologize for not replying earlier (bedtime ;-) ) The script you reference above is indeed the one I used to install web2py: http://wiki.webfaction.com/wiki/Web2py-LatestSource I first tried to install web2py manually based on the