[web2py:12275] Re: "No databases in this application" on GAE

2008-11-20 Thread sharekey
Hi Massimo, Thank you very much, I get my answer from your point three of case two(there are no tables either, until data is stored), now I can find the entity from GAE web interface, so I can do CRUD operation on datastore viewer. although I still get "No databases in this application" messag

[web2py:12274] Re: SQLFORM for multiple tables

2008-11-20 Thread mmstud
Im thinking to create an insert and update form with fields taken from multiple tables. Person has address, email and phone instances on separate tables, but for simple interaction, they should be present on same form view. What is the best way to solve this kind of situation at the moment, does S

[web2py:12273] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mr.freeze
Seems to work like a charm except for the js on the 'all' button in IE7. Works in Firefox(of course). I like it! On Nov 20, 10:31 pm, mdipierro <[EMAIL PROTECTED]> wrote: > mr.freeze, > > I fixed the problem and it is in trunk. I added some js effects to the > resolve page. It can be made better

[web2py:12272] odd save behavior with check box

2008-11-20 Thread Wes James
I have an app that on one page I have a set of fields (first 20 fields of say 50) I have manually placed. All saves well and when I go to another page and come back all is well. On a separate page, I edit the rest of these fields. Part of these are check box fields and some others including tex

[web2py:12271] Re: CSV Export and Import

2008-11-20 Thread seeker
Great stuff. Thanks for the help Massimo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, sen

[web2py:12270] Re: "No databases in this application" on GAE

2008-11-20 Thread mdipierro
Please explain in some detail what you are doing and post your code. I am not sure I understand. If you run locally using the built-in web server + sqlite thee are two cases: 1) tables are created and you can see results in sql.log from admin 2) tables are not created and you can see the erro

[web2py:12269] Re: PDF manual on Lulu downloaded fine...

2008-11-20 Thread mdipierro
Fascinating, but let's keep this list on topic. ;-) Massimo On Nov 20, 11:25 pm, mmstud <[EMAIL PROTECTED]> wrote: > It must have been edited, i can't believe, huh... > > On Nov 21, 3:03 am, kaj <[EMAIL PROTECTED]> wrote: > > > and thanks Massimo for such a good bargain! > > > Btw folks, take a

[web2py:12268] Re: "No databases in this application" on GAE

2008-11-20 Thread sharekey
Hi Massimo, It is no problem that develope application locally then export on GAE, but my question is that it does not work both on local and remote (app.appspot.com) as well, the table I defined in db.py does not be created, so I can not continue to next job. On 11月21日, 上午11时56分, mdipierro <

[web2py:12267] Re: PDF manual on Lulu downloaded fine...

2008-11-20 Thread mmstud
It must have been edited, i can't believe, huh... On Nov 21, 3:03 am, kaj <[EMAIL PROTECTED]> wrote: > and thanks Massimo for such a good bargain! > > Btw folks, take a look at this video - it aint over until its over! - > and this guy certainly proved that for sure, > completely amazing... > > h

[web2py:12266] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mdipierro
mr.freeze, I fixed the problem and it is in trunk. I added some js effects to the resolve page. It can be made better but this is sufficient for now since I expect the usage to be rare. massimo --~--~-~--~~~---~--~~ You received this message because you are subscr

[web2py:12265] Re: "No databases in this application" on GAE

2008-11-20 Thread mdipierro
Hi sharekey, we should make a distinction: develop for GAE or develop on GAE. with the current web2py you can develop for GAE. You develop on your machine and then you upload your app as explained in various articles here http://mdp.cti.depaul.edu/AlterEgo admin, appadmin and tickets do no

[web2py:12264] Re: IMPORTANT: Bill's patch

2008-11-20 Thread mdipierro
Yes we should. Meanwhile I suggest you replace post_save=SQLFORM(db.videos,_video,fields=_update_clip_fields) with post_save=SQLFORM(db.videos,_video,fields=_update_clip_fields+ ['id'],showid=False) Massimo On Nov 20, 8:32 pm, ceej <[EMAIL PROTECTED]> wrote: > Hey Massimo, > > I think for th

[web2py:12263] Re: need help running modules

2008-11-20 Thread mdipierro
Can you please try without -M perhaps there is an error in there. If without -M works, then you need you debug your model first using the administrative interface. The error you are getting is very generic from a catch-all except. Not very informative. Massimo On Nov 20, 8:26 pm, shlo <[EMAIL PR

[web2py:12262] Re: "No databases in this application" on GAE

2008-11-20 Thread sharekey
Hi Massimo, Do you have any good idea for develope data-drive application on GAE? On 11月20日, 下午9时59分, mdipierro <[EMAIL PROTECTED]> wrote: > This is *very* dangerous. You are allowing anybody to manipulate your > data on GAE as they please. > > Massimo > > On Nov 20, 6:56 am, Jonathan Benn <[

[web2py:12261] Re: "No databases in this application" on GAE

2008-11-20 Thread sharekey
Hi Jonathan, I try my test follow your steps, but it still doesn't work yet. The browser print "No databases in this application" message as before. howerver, thanks for your help! On 11月20日, 下午8时56分, Jonathan Benn <[EMAIL PROTECTED]> wrote: > I have the same issue with appadmin. Here is my *

[web2py:12260] Re: IMPORTANT: Bill's patch

2008-11-20 Thread ceej
Hey Massimo, I think for the SQLFORM custom forms you should add to {{=post_save.hidden_fields()}} and maybe even a {{=post_save.form_start ()}} {{=post_save.form_end()}} function so it can include the correct headers like enctype="multipart/form-data" into the form. This would make make updates

[web2py:12259] Re: output html

2008-11-20 Thread Wes James
thx! that did it! -wj On Thu, Nov 20, 2008 at 5:32 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > {{variable='hi'}} > {{=XML(variable)}} > > On Nov 20, 6:03 pm, "Wes James" <[EMAIL PROTECTED]> wrote: >> I've been looking (i'm sure it's simple), but in {{response.var}} if >> var is html, like hi,

[web2py:12258] Re: need help running modules

2008-11-20 Thread shlo
yes, the output i received was with 1.51. On Nov 20, 6:33 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Do you have 1.51. 1.51 should write the taceback instread of the > RestrictedError. > > On Nov 20, 6:14 pm, shlo <[EMAIL PROTECTED]> wrote: > > > so I wrote a module (test.py): > > import time > >

[web2py:12257] Re: Return only one dict to the view?

2008-11-20 Thread mr.freeze
As far as I know, you return one dictionary to the view with as many key/value pairs as you want. Typically something like: def two_forms(): myvariable='web2py rocks' form1=SQLFORM(db.person) form2=SQLFORM(db.place) if form1.accepts(request.vars,session): response.flash='f

[web2py:12256] Re: WARNING:root:no cache.disk

2008-11-20 Thread ceej
Ok i got it working (something wrong with the version control) thank you both for your help :) On Nov 20, 5:27 pm, ceej <[EMAIL PROTECTED]> wrote: > I had a look into it but it appears to be fine, it's very strange as > the application was pulled straight from version control. > > http://paste.po

[web2py:12255] Return only one dict to the view?

2008-11-20 Thread kaj
Hi all; I'm new to web2py, and find it fascinating. Now I want to return a bunch of data to the view, from 5 different tables. Do I have to pack all the data into one dict, or is it possible to use several dicts? >From the documentation it seems to me that only one dict gets passed to the view

[web2py:12254] PDF manual on Lulu downloaded fine...

2008-11-20 Thread kaj
and thanks Massimo for such a good bargain! Btw folks, take a look at this video - it aint over until its over! - and this guy certainly proved that for sure, completely amazing... http://www.innerspace.am/thebestever.wmv --~--~-~--~~~---~--~~ You received this m

[web2py:12253] Re: WARNING:root:no cache.disk

2008-11-20 Thread ceej
I had a look into it but it appears to be fine, it's very strange as the application was pulled straight from version control. http://paste.pocoo.org/show/91982/ On Nov 20, 4:28 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > Try looking at / tracing thru: > applications/admin/controllers/def

[web2py:12252] Re: Install Web2Py on Ubuntu Intrepid

2008-11-20 Thread Yarko Tymciurak
a current tarball is at www.web2py.com (released tarballs go there) If you ever want a tarball of the current trunk you should be able to get one from http://www.bitbucket.org/yarko/web2py/ It's a mirror that wraps the tree on demand (this one also includes T2); I try to keep the mirror updated,

[web2py:12251] Re: need help running modules

2008-11-20 Thread mdipierro
Do you have 1.51. 1.51 should write the taceback instread of the RestrictedError. On Nov 20, 6:14 pm, shlo <[EMAIL PROTECTED]> wrote: > so I wrote a module (test.py): > import time > > try: > while 1: > time.sleep(60) > except Exception, e: > print e > > and tried to run it: > web

[web2py:12250] Re: output html

2008-11-20 Thread mdipierro
{{variable='hi'}} {{=XML(variable)}} On Nov 20, 6:03 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I've been looking (i'm sure it's simple), but in {{response.var}} if > var is html, like hi, how do I get it to put the html in the > page and not textify the thing? > > thx, > > -wj --~--~-

[web2py:12249] Re: Install Web2Py on Ubuntu Intrepid

2008-11-20 Thread achipa
There was no error here actually, you're good to go with mysql. If you're unsure, download the latest version, it has a (hopefully) less confusing output with regard to database driver loading. On Nov 21, 1:14 am, Erik Vandamme <[EMAIL PROTECTED]> wrote: > After getting the pdf version of the bo

[web2py:12248] Re: WARNING:root:no cache.disk

2008-11-20 Thread Yarko Tymciurak
Try looking at / tracing thru: applications/admin/controllers/default.py:index() Around line 93 is the test for password --- also gluon/validators.py::class CRYPT() -- might give you a hint to something corrupt installed (or partial installed - like sha, md5, hmac).. On Thu, Nov 20, 2008 at 6:

[web2py:12247] Re: WARNING:root:no cache.disk

2008-11-20 Thread achipa
Do you see any session files in the session dir ? Are you running web2py directly or through a web server ? On Nov 21, 1:13 am, ceej <[EMAIL PROTECTED]> wrote: > I've set the perssions to 777 (rexrexrex). So it shouldn't be that. > > On Nov 20, 4:03 pm, achipa <[EMAIL PROTECTED]> wrote: > > > cac

[web2py:12246] Re: "No databases in this application" on GAE

2008-11-20 Thread BearXu
yes, the GAE data admin has some "bugs"It can not recognize a new table which has no item. 2008/11/20 Yarko Tymciurak <[EMAIL PROTECTED]> > yes - but good for local development _only_ > > > On Thu, Nov 20, 2008 at 7:59 AM, mdipierro <[EMAIL PROTECTED]>wrote: > >> >> This is *very* dangerous. You

[web2py:12245] need help running modules

2008-11-20 Thread shlo
so I wrote a module (test.py): import time try: while 1: time.sleep(60) except Exception, e: print e and tried to run it: web2py1.51> web2py.exe -S myapp -M -R applications\myapp\modules \test.py and got this error: default applications appear to be installed already web2py En

[web2py:12244] Install Web2Py on Ubuntu Intrepid

2008-11-20 Thread Erik Vandamme
After getting the pdf version of the book today and unzipping the source , i tried installing it: but i have Mysql installed?? [EMAIL PROTECTED]:~/Public/web2py$ python web2py.py -S welcome web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2008 Version 1.47 (2008-10-27

[web2py:12243] Re: WARNING:root:no cache.disk

2008-11-20 Thread ceej
I've set the perssions to 777 (rexrexrex). So it shouldn't be that. On Nov 20, 4:03 pm, achipa <[EMAIL PROTECTED]> wrote: > cache.disk should not prevent that... sounds more like wrong > permissions for your sessions dir to me ? > > On Nov 21, 12:56 am, ceej <[EMAIL PROTECTED]> wrote: > > > Ok, a

[web2py:12242] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
If you see his cursor move or you view pages in sync, that's a remote desktop solution right there :) Nothing wrong with that, just unsure you want to just through hoops to get that sort of functionality in web2py when most OS's give you that out of the box. If that's not enough there are IDEs and

[web2py:12241] output html

2008-11-20 Thread Wes James
I've been looking (i'm sure it's simple), but in {{response.var}} if var is html, like hi, how do I get it to put the html in the page and not textify the thing? thx, -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[web2py:12240] Re: WARNING:root:no cache.disk

2008-11-20 Thread achipa
cache.disk should not prevent that... sounds more like wrong permissions for your sessions dir to me ? On Nov 21, 12:56 am, ceej <[EMAIL PROTECTED]> wrote: > Ok, as you know this isn't my first time installing web2py. I've just > installed it on a clean centos 5.2 OS it starts fine, but when I go

[web2py:12239] WARNING:root:no cache.disk

2008-11-20 Thread ceej
Ok, as you know this isn't my first time installing web2py. I've just installed it on a clean centos 5.2 OS it starts fine, but when I go to log into admin it looks like it's logging in but then takes me to the login again with no errors. I checked the nohup output and it has WARNING:root:no cache

[web2py:12238] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
I would rather have Massimo (for example) looking at code with me, and catching that parameter that needs to be a dict, not a list... (and - w/o voice - just being able to see his cursor go, and fix it - "Oh! Thanks!"). This is the essence of team programming for me. And this is faster than posti

[web2py:12237] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
With docs and sketches, I understand (and embrace) the concept. But with code, I think the situation is different. The way you described it it almost sounded better to work collaboratively through a remote desktop. Then you see what the other guy is doing, can jump in to type in things (esp if you

[web2py:12236] Re: web2py book in PDF at $12.50

2008-11-20 Thread Erik Vandamme
Yeah Massimo, just got it, ordering and download worked fine Cheers Erik Vandamme On Nov 19, 12:45 pm, mdipierro <[EMAIL PROTECTED]> wrote: > http://www.lulu.com/content/4968879 > > This is without the Wiley cover since Wiley could not accommodate the > requirements but it is the same book. > I

[web2py:12235] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mr.freeze
I personally think this would be very handy as projects grow. For some reason saving occasionally triggers a conflict when I am the only one editing. The md5 hashes come back different. I can reproduce by adding a line then hitting save twice (with any amount of pause between the saves). Firef

[web2py:12234] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
relax ... think pair programming; implemented over the net. try a spreadsheet on google docs - 2 or 3 people; each w/ a different color cursor - editing together; open up your options. This isn't that... yet... it's just a 'try this"; On Thu, Nov 20, 2008 at 3:24 PM, achipa <[EMAIL PROTECTED]>

[web2py:12233] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
If you ask me (and you don't :) remotely concurrently developing a *single* app is a bad idea, as your edits have no guarantee of atomicity/transactions, so you *will* be tripping over each other on more changes than you would probably care. Working on two+ copies of the same application (on the s

[web2py:12232] Re: itemize temporary data

2008-11-20 Thread mdipierro
What for? SQLTable or SQLTABLE? I am confused. Massimo On Nov 20, 3:06 pm, Baron <[EMAIL PROTECTED]> wrote: > > The easiest way to construct an SQLTable is to use define_table (as in a > > model like db.py). > > You say 'easiest' - is there an alternative way to instantiate an > SQLTable objec

[web2py:12231] Re: itemize temporary data

2008-11-20 Thread Baron
> The easiest way to construct an SQLTable is to use define_table (as in a > model like db.py). You say 'easiest' - is there an alternative way to instantiate an SQLTable object? On Nov 19, 9:20 pm, billf <[EMAIL PROTECTED]> wrote: > OK, I see.  The objects passed to itemize are an SQLTable and

[web2py:12230] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mdipierro
Hi People, please give this a try: http://groups.google.com/group/web2py/web/web2py.app.admin.tar you can call it admin2 when you save a file it saved the .bak and if the .bak is there you can restore using the button at the bottom Moreover if two people edit the same file and user A saves fi

[web2py:12229] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mr.freeze
Thanks Yarko. I like the 'Its All Text' plugin but I guess my intention was more to propose a new feature than to solve the actual problem :) I was also thinking of a more automated solution. I use wing for most of my debugging but would love to see the web editor strive for feature parity with

[web2py:12228] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
also, it's simple... and "it's done!". On Thu, Nov 20, 2008 at 2:05 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > try the "Its All Text" plugin for Firefox - just toggle the editor when it > comes up in the browser, and you'll have the little chicklet "edit" button > on the bottom right of the

[web2py:12227] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
try the "Its All Text" plugin for Firefox - just toggle the editor when it comes up in the browser, and you'll have the little chicklet "edit" button on the bottom right of the form. That's fast, and already solved. It works sort of like this: Session-form encoded filename created. You edit that

[web2py:12226] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mr.freeze
Hitting back in Firefox didn't work for me. Maybe because the file is re-read on each page load. The method I am working on saves the 3 most recent versions as backups and adds a Restore button (next to Save) and select that lets you choose which file to restore. Not very elegant but functional

[web2py:12225] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
the irony: the editor mode doesn't work in Chrome (where it would be useful to have an editor), but works everywhere else (Firefox, IE-6, Safari - which shares a codebase w/ Chrome! - Opera) On Thu, Nov 20, 2008 at 1:39 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > Yes - VCS calling interface

[web2py:12224] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
Yes - VCS calling interface is what I remember, and I think it is a good idea (if integrated well). For client-end editing "from the web" with some sort of reasonable undo that is more reliable than the browser, I suggest (ahem - hard to do, since I've been using Chrome the past few months) using

[web2py:12222] Re: more complicated label in IS_IN_DB

2008-11-20 Thread mmstud
Never mind, it was supported already exactly the way i was thinking it should. So passing "%(id)s, %(firstname)s %(lastname)s" as a label gives: "1, My Name" -Marko On Nov 20, 9:11 pm, mmstud <[EMAIL PROTECTED]> wrote: > how big change on IS_IN_DB validator would it be to support more > complica

[web2py:12223] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
Yarko, maybe including is the wrong word if Massimo is referring to my VCS web2py patch. I'm providing a mechanism to call whatever underlying VCS you are using in the project. It's just making web2py smart enough to detect different VCS files, and putting a button or two on some of the admin page

[web2py:12221] more complicated label in IS_IN_DB

2008-11-20 Thread mmstud
how big change on IS_IN_DB validator would it be to support more complicated label? My label would be something like: label = "%(id)s, %(firstname)s %(lastname)s" -> "1, My Name" That would prevent ambiguity, that is case, when listing persons with one label only... I tried to create new argume

[web2py:12220] Re: IMPORTANT: Bill's patch

2008-11-20 Thread ceej
Using post_save=SQLFORM(db.videos,_video,fields=_update_clip_fields) can you not specify just certain fields you would like to update because I'm getting SyntaxError: user is tampering with form. (_video) being my records. On Nov 20, 10:24 am, ceej <[EMAIL PROTECTED]> wrote: > Massimo, I totally

[web2py:12219] Re: IMPORTANT: Bill's patch

2008-11-20 Thread ceej
Massimo, I totally missed that. I've been up to 4am working to get some of the other projects live. Think I might need to take a nap lol :) On Nov 20, 10:20 am, mdipierro <[EMAIL PROTECTED]> wrote: >   if post_save.accepts(post_save,session): > > should be > >   if post_save.accepts(request.vars,

[web2py:12218] Re: IMPORTANT: Bill's patch

2008-11-20 Thread mdipierro
if post_save.accepts(post_save,session): should be if post_save.accepts(request.vars,session): but you know this already. Massimo On Nov 20, 12:17 pm, ceej <[EMAIL PROTECTED]> wrote: > Hi Massimo, > > I've tried: > > _update_clip_fields=[ > 'title', > 'description', > 'tags'

[web2py:12217] Re: IMPORTANT: Bill's patch

2008-11-20 Thread ceej
Hi Massimo, I've tried: _update_clip_fields=[ 'title', 'description', 'tags', 'length' ] post_save=SQLFORM(db.videos,fields=_update_clip_fields) if post_save.accepts(post_save,session): response.flash="Updated Video" return dict(_video=_video,post_save=post_save) B

[web2py:12216] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Yarko Tymciurak
On Thu, Nov 20, 2008 at 7:52 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > Let me think about. I thought we were going to include a real version > control system eventually. > > We've had this discussion in the past: it makes no sense to "include" a VCS in web2py (too many people have favorites).

[web2py:12215] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mdipierro
What about using the back button in the browser to retrieve earlier version? Massimo On Nov 20, 11:44 am, achipa <[EMAIL PROTECTED]> wrote: > Completely forgot that patch, it's waiting to be cleaned up. Oh well. > In any case, IMHO a simple .bak mechanism wouldn't be bad idea even if > you have

[web2py:12214] Re: web2py book in PDF at $12.50

2008-11-20 Thread mdipierro
It is not easy to compute. For example, right now I can tell you lulu sold in 24 hours 1/4 of total "reported" sales since publishing (Sept). The problem is that lulu is updated in real time. How and when the publisher web site is updated is a mystery. I do not know what is included. I suspect for

[web2py:12213] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
Completely forgot that patch, it's waiting to be cleaned up. Oh well. In any case, IMHO a simple .bak mechanism wouldn't be bad idea even if you have a VCS, it's more for cases where network/browser issues play a trick on you. Unless you want to commit on every save, which is very likely not the c

[web2py:12212] Re: web2py book in PDF at $12.50

2008-11-20 Thread achipa
It would be interesting to know (let's say after a month) the ratio of pdf-s sold compared to the number of paper books sold. Just out of curiosity, I hope a ratio does not count as top secret business data. On Nov 19, 6:06 am, mdipierro <[EMAIL PROTECTED]> wrote: > That may conflict. I do not kn

[web2py:12211] Re: CSV Export and Import

2008-11-20 Thread Zoom . Quiet
On Thu, Nov 20, 2008 at 21:48, mdipierro <[EMAIL PROTECTED]> wrote: > > def strip_first_row(in,out): > in=open(in,'rb') > out=open(out,'wb') > for i,row in enumerate(in): > if i>0: out.write(row) > > def add_header(columns=['table.field1',table.field2','etc']): > in=op

[web2py:12210] Re: "No databases in this application" on GAE

2008-11-20 Thread Yarko Tymciurak
yes - but good for local development _only_ On Thu, Nov 20, 2008 at 7:59 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > This is *very* dangerous. You are allowing anybody to manipulate your > data on GAE as they please. > > Massimo > > On Nov 20, 6:56 am, Jonathan Benn <[EMAIL PROTECTED]> wrote: >

[web2py:12209] Re: web2py book in PDF at $12.50

2008-11-20 Thread ural
I have solved the problem to connect to lulu.com and i purchased a copy of the Manuals pdf. I belive that the Manual will force to grow w2py's user community. Thanks to everybody Thanks Massimo On 20 Kasım, 10:43, artien <[EMAIL PROTECTED]> wrote: > Works fine for me. Seems like a problem on you

[web2py:12208] Re: "No databases in this application" on GAE

2008-11-20 Thread mdipierro
This is *very* dangerous. You are allowing anybody to manipulate your data on GAE as they please. Massimo On Nov 20, 6:56 am, Jonathan Benn <[EMAIL PROTECTED]> wrote: > I have the same issue with appadmin. Here is my *very* quick & dirty > solution (use at your own risk!). > > There are 3 modifi

[web2py:12207] Re: issues deploying latest web2py to GAE

2008-11-20 Thread mdipierro
You only need to edit the gluon/restricted.py and replace this line in log(...): cPickle.dump(d,open(os.path.join (request.folder,'errors',f),'wb')) check if you are on gae by trying to import google (as done in other places). If so define a table for the tickets and insert "d" in that

[web2py:12206] Re: web2py book in PDF at $12.50

2008-11-20 Thread Fredrik
Just bought it, so some coffey and a nice afternoon with reading... hmm nice //Fredrik On 19 Nov, 02:45, mdipierro <[EMAIL PROTECTED]> wrote: > http://www.lulu.com/content/4968879 > > This is without the Wiley cover since Wiley could not accommodate the > requirements but it is the same book. > I

[web2py:12205] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread mdipierro
Let me think about. I thought we were going to include a real version control system eventually. On Nov 20, 5:12 am, Baron <[EMAIL PROTECTED]> wrote: > that would be great - I've been caught by that too > > On Nov 20, 4:24 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote: > > > You can probably guess

[web2py:12204] Re: Web2py & Elixir

2008-11-20 Thread mdipierro
yes. db.define_table('polygon',SQLField('name')) db.define_table('triangle',db.polygon,SQLField('area')) db.triangle.name On Nov 20, 3:36 am, mmstud <[EMAIL PROTECTED]> wrote: > I send example by email. File has some rows... > > I also wondered if there is support for table inheritance (separat

[web2py:12203] Re: CSV Export and Import

2008-11-20 Thread mdipierro
def strip_first_row(in,out): in=open(in,'rb') out=open(out,'wb') for i,row in enumerate(in): if i>0: out.write(row) def add_header(columns=['table.field1',table.field2','etc']): in=open(in,'rb') out=open(out,'wb') out.write(', '.join(columns) f

[web2py:12201] Re: issues deploying latest web2py to GAE

2008-11-20 Thread Jonathan Benn
On Nov 20, 2:15 am, BigBaaadBob <[EMAIL PROTECTED]> wrote: > Isn't the ticket feature one of the key features of web2py?  It is > listed on the features page. I'll implement the ticketing feature on GAE if nobody else gets to it before I do. It's not a super high priority for me, but I'll probab

[web2py:12202] Re: "No databases in this application" on GAE

2008-11-20 Thread Jonathan Benn
I have the same issue with appadmin. Here is my *very* quick & dirty solution (use at your own risk!). There are 3 modifications to make to appadmin.py (in the controllers folder): 1) At the beginning I disable the credentials check: #try: hosts=(http_host, socket.gethostbyname(remote_addr)) #e

[web2py:12200] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Baron
that would be great - I've been caught by that too On Nov 20, 4:24 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote: > You can probably guess why I am suggesting this.  Doh! > Just two new lines in applications/admin/controllers/default.py under > the edit def try/except block: > > try: >     olddata=d

[web2py:12199] Re: Web2py & Elixir

2008-11-20 Thread mmstud
I send example by email. File has some rows... I also wondered if there is support for table inheritance (separate tables or same table with class field) and hierachal data structures in DAL? They are quite often needed yet advanced options on ORM. -Marko On Nov 20, 2:03 am, mdipierro <[EMAIL P

[web2py:12198] Re: web2py book in PDF at $12.50

2008-11-20 Thread artien
Works fine for me. Seems like a problem on your side. Try another browser or the lulu.com main site? On Nov 20, 9:42 am, "Cevdet Ural" <[EMAIL PROTECTED]> wrote: > >   I  am getting an empty window from lulu.com link. > >     How is it to solve ? > [EMAIL PROTECTED] > > --~--~-~--~~--

[web2py:12197] Re: web2py book in PDF at $12.50

2008-11-20 Thread Cevdet Ural
> I am getting an empty window from lulu.com link. > How is it to solve ? [EMAIL PROTECTED] > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send em