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

2008-11-19 Thread sharekey
I know the table which define in db.py will be created automatically, but I haven't any entity in the GAE web interface, What can I do? On 11月20日, 下午1时50分, mdipierro <[EMAIL PROTECTED]> wrote: > appadmin does not work well on GAE. You should use the GAE web > interface instead. > > Anyway, if you

[web2py:12195] CSV Export and Import

2008-11-19 Thread seeker
Hi, I notice from the manual that one exports data to csv by using str() and imports csv data using import_from_csv_file. This produces/uses a csv file with the 1st row having column names in the format table.field. My situation: == I have 3 systems: (a) Web2Py application that communica

[web2py:12194] web2py 1.51 is out

2008-11-19 Thread mdipierro
Very similar to 1.49 but fixes some problem with forms introduced in 1.48,1.49. Please check everything is fine. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this g

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

2008-11-19 Thread mdipierro
appadmin does not work well on GAE. You should use the GAE web interface instead. Anyway, if you get to appadmin, then your code below is doing its job. Massimo On Nov 19, 7:47 pm, sharekey <[EMAIL PROTECTED]> wrote: > Hi All, > I get "No databases in this application" when I > browsehttp:

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

2008-11-19 Thread sharekey
Hi All, I get "No databases in this application" when I browse http://127.0.0.1:8080/[application]/appadmin, I'm using GAE on local (it work if I run web2py.py) I just write below code in db.py in my app for test. try: from gluon.contrib.gql import * # if running on Google Ap

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

2008-11-19 Thread mr.freeze
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=data # GRAB OLD DATA data=request.vars.data.replace('\r\n','\n').strip()+'\n' open(apath(filename + '.bak'),'w').wri

[web2py:12190] Re: Strange error:

2008-11-19 Thread ceej
Never mind it was a migration issue :) On Nov 19, 5:40 pm, ceej <[EMAIL PROTECTED]> wrote: > I have no idea where this came from because it was all working fine I > haven't changed anything but when I ran the command again I get > thishttp://paste.pocoo.org/show/91854/ > > Any ideas? > > Thank y

[web2py:12189] Strange error:

2008-11-19 Thread ceej
I have no idea where this came from because it was all working fine I haven't changed anything but when I ran the command again I get this http://paste.pocoo.org/show/91854/ Any ideas? Thank you in advance --~--~-~--~~~---~--~~ You received this message because yo

[web2py:12188] Re: estore

2008-11-19 Thread Tito Garrido
Hey ceej, Congratulations, it's a very good work. Look, I found an error here: http://www.klasproducts.com/products/category/view/apparel/3/activewear/39 Regards, Tito On Wed, Nov 19, 2008 at 4:32 PM, mr.freeze <[EMAIL PROTECTED]> wrote: > > I would love to see a screencast/demo on how to gen

[web2py:12187] Re: Web2py & Elixir

2008-11-19 Thread mdipierro
If you send me some example of elixir models I can add a layer to support them. I did that alredy for Django and SQLAlchemy. Massimo On Nov 17, 1:40 am, mmstud <[EMAIL PROTECTED]> wrote: > Earlier this year i made a web app with Pylons using Elixir as ORM > front layer. I got a project lately an

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

2008-11-19 Thread mdipierro
It is but it does not work on GAE because GAE does not allow writing to file system. It will be added. It is not difficult. It just was not a priority since most people debug locally and then deploy on GAE. Massimo On Nov 19, 5:15 pm, BigBaaadBob <[EMAIL PROTECTED]> wrote: > Isn't the ticket fea

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

2008-11-19 Thread BigBaaadBob
Isn't the ticket feature one of the key features of web2py? It is listed on the features page. On Nov 19, 2:53 pm, mdipierro <[EMAIL PROTECTED]> wrote: > It would not be too difficult but would it really be necessary? The > google error logs are not too bad. > > Massimo > > On Nov 19, 1:45 pm, A

[web2py:12184] Re: Web2py & Elixir

2008-11-19 Thread mmstud
Billf, your answer must have come to wrong topic? On Nov 17, 10:18 am, billf <[EMAIL PROTECTED]> wrote: > Massimo > > The problem with the above example is that, tho' it works fine first > time thru', subsequent executions (for me at least) result in > > "'users' referenced before assignment" > >

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

2008-11-19 Thread Andrew
Yeah, I've just started using web2py so if the tickets give the same functionality as the logs then sure. Thanks :) Andrew On Nov 19, 1:53 pm, mdipierro <[EMAIL PROTECTED]> wrote: > It would not be too difficult but would it really be necessary? The > google error logs are not too bad. > > Mass

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

2008-11-19 Thread mdipierro
It would not be too difficult but would it really be necessary? The google error logs are not too bad. Massimo On Nov 19, 1:45 pm, Andrew <[EMAIL PROTECTED]> wrote: > Okay thanks. Got it working. I was trying to access the admin / ticket > interface which I overlooked isn't supported in GAE. > >

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

2008-11-19 Thread Andrew
Okay thanks. Got it working. I was trying to access the admin / ticket interface which I overlooked isn't supported in GAE. Is it possible to make a version that uses GQL for tickets and such so we can use admin / ticket interface on GAE? Or would that be a great undertaking? On Nov 19, 12:36 pm

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

2008-11-19 Thread mdipierro
That is not normal. Which version are you using? Massimo On Nov 19, 12:23 pm, Andrew <[EMAIL PROTECTED]> wrote: > Hey guys, > > I was following the guide here: > > http://mdp.cti.depaul.edu/AlterEgo/default/show/186 > > and simply deployed the default web2py and hit my appspot page and > only go

[web2py:12179] Re: estore

2008-11-19 Thread mr.freeze
I would love to see a screencast/demo on how to generate a multilevel menu dynamically from a database. Maybe it could be worked into a new web2py feature. Possibly some pseudocode like response.menu=SQLMENU (rows=rows,groupby='category',direction='"vertical') where the groupby is a reference to

[web2py:12178] Re: {{myvar={}}} does not work

2008-11-19 Thread mdipierro
{{myvar={} }} or {{myvar=dict()}} On Nov 19, 12:16 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I tried to create a dict var in a layout: > > {{myvar={}}} > > but web2py didn't like that. > > -wj --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:12177] Re: estore

2008-11-19 Thread Yarko Tymciurak
I noticed (in google's Chrome browser at least) that the update of images (top, center box) pervented me from being able to select, scroll down, look at the bottom of the screen it was a bit of a cat-and-mouse game actually: every time I would scroll down and "almost" select / click somethin

[web2py:12176] Re: estore

2008-11-19 Thread ceej
Nope the site doesn't use t2, it's all created from scratch. The menu bar at the top? It's generated dynamically from the database. I'm going to be making a few screen casts soon, so if there's anything else you'd like to know how to do feel free to email me :) On Nov 19, 8:33 am, "mr.freeze" <[E

[web2py:12175] Re: sort dict in layout

2008-11-19 Thread Wes James
oh, yah - i could do this in my controller before returning it - no duh... thx Yarko (again...) -wj On Wed, Nov 19, 2008 at 11:39 AM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > two separate comments: > - if initializing a dict is not working in templating engine, then that > should be worked

[web2py:12174] Re: currency format

2008-11-19 Thread Timothy Farrell
Next feature...web2lisp =P mdipierro wrote: Or... {{=T('$%i.%.2i',(int(total),int(100.0*(total-int(total}} and use web2py to translate '$%i.%.2i' Massimo On Nov 19, 11:24 am, "Wes James" <[EMAIL PROTECTED]> wrote: I have an amount that I want to format as 4500 -> $4,500.

[web2py:12173] Re: sort dict in layout

2008-11-19 Thread Yarko Tymciurak
two separate comments: - if initializing a dict is not working in templating engine, then that should be worked out; - do the sorting in your controller - let your view do color / layout management - don't force data manipulation on it if you can avoid it... unless you want to be doing this under

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

2008-11-19 Thread yarko
There is recent discussion (including a step-by-step) of this here: http://groups.google.com/group/web2py/browse_thread/thread/e9fc4ce13070cd21/af77ece522d2f6d9 Perhaps that will help? On Nov 19, 12:23 pm, Andrew <[EMAIL PROTECTED]> wrote: > Hey guys, > > I was following the guide here: > > htt

[web2py:12171] sort dict in layout

2008-11-19 Thread Wes James
What I'm trying to do is sort a dict passed from my controller: {{a=schols.items()}} {{a.sort()}} {{schols={}}} {{for b in a:}} {{schols[b[0]]=b[1]}} {{pass}} bye the way Massimo, I commented out the code above in my layout, and I had to do this with the for line for it to comment out right - I

[web2py:12170] issues deploying latest web2py to GAE

2008-11-19 Thread Andrew
Hey guys, I was following the guide here: http://mdp.cti.depaul.edu/AlterEgo/default/show/186 and simply deployed the default web2py and hit my appspot page and only got: Invalid request. It even forward it from the root of my appspot uri / to /welcome/default/index I checked the Appspot logs

[web2py:12169] {{myvar={}}} does not work

2008-11-19 Thread Wes James
I tried to create a dict var in a layout: {{myvar={}}} but web2py didn't like that. -wj --~--~-~--~~~---~--~~ 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@goo

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

2008-11-19 Thread pirata.dabaixada
+1 purchased --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED]

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

2008-11-19 Thread Phyo Arkar
And Best of all! Massimo got our love ! Good job! +1 thumbs up On Wed, Nov 19, 2008 at 5:32 PM, Daniel Contag <[EMAIL PROTECTED]> wrote: > > Excellent! > +1 purchases > > > Daniel > > On Wed, Nov 19, 2008 at 02:45, mdipierro <[EMAIL PROTECTED]> wrote: > > > > http://www.lulu.com/content/496887

[web2py:12166] Re: currency format

2008-11-19 Thread mdipierro
Or... {{=T('$%i.%.2i',(int(total),int(100.0*(total-int(total}} and use web2py to translate '$%i.%.2i' Massimo On Nov 19, 11:24 am, "Wes James" <[EMAIL PROTECTED]> wrote: > I have an amount that I want to format as 4500 -> $4,500.00. > > Is there a routine to do this in web2py? I tried imp

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

2008-11-19 Thread Daniel Contag
Excellent! +1 purchases Daniel On Wed, Nov 19, 2008 at 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. > If you buy it, let me know if lulu.com w

[web2py:12164] currency format

2008-11-19 Thread Wes James
I have an amount that I want to format as 4500 -> $4,500.00. Is there a routine to do this in web2py? I tried import locale in the controller and then use {{=locale.format('$%.2f', amount,True)}} in my layout, but I get locale is not defined. well, never mind. I just got this to work: {{im

[web2py:12163] responsify t2 google search and sidebar

2008-11-19 Thread [EMAIL PROTECTED]
in app controller default.py response.t2_google_search=0 response.t2_sidebar=0 in t2 layout.html {{if response.t2_google_search:}} {{pass}} ... {{if response.t2_sidebar:}} {{pass}} -- c/ya, -wj --~--~-~--~~~---~--~~ You re

[web2py:12162] Re: t2 google search

2008-11-19 Thread [EMAIL PROTECTED]
oops that should be {{pass}} on the end. On Nov 19, 9:29 am, "Wes James" <[EMAIL PROTECTED]> wrote: > Massimo, > > Would you mind making a response variable for the t2 google search > box?  You have response.title and response.subtitle for the t2 > layout.html.  How about response.google_search=(

[web2py:12161] Re: t2 google search

2008-11-19 Thread [EMAIL PROTECTED]
Well, it looks like you are doing response.title/subtitle with {{=response.title or 'T2'}} so I guess the search could be done like that with \ to break a large string?? {{= response.google_search or '\ \ http://www.google.com/search";>\ \ \ \ \ \ \

[web2py:12160] Re: estore

2008-11-19 Thread mr.freeze
Very cool. What did you use do generate the products menu? Does the site use T2? On Nov 19, 1:06 am, ceej <[EMAIL PROTECTED]> wrote: > Thank you all :) > > @Phyo, there is no caching yet but I'm implementing it. So that in > mind I think it runs relatively quickly :) > > P.s. I have some other p

[web2py:12159] t2 google search

2008-11-19 Thread Wes James
Massimo, Would you mind making a response variable for the t2 google search box? You have response.title and response.subtitle for the t2 layout.html. How about response.google_search=(0|1) and in the layout put: {{if response.google_search:}} {{pass} thx, -wj --~--~-~--~

[web2py:12158] Re: IP4 and IP6 checker for who wants it

2008-11-19 Thread mdipierro
Can you email me the file? I will post it on AlterEgo On Nov 19, 8:32 am, artien <[EMAIL PROTECTED]> wrote: > Here is the code I'm using to validate ip addresses entered in a text > field in a form: > > Hope its usefull for someone, perhaps an idea for a requires IS_IP4 or > IS_IP6? :) > > def ip

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

2008-11-19 Thread Wes James
+1 purchased! On Tue, Nov 18, 2008 at 6: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. > If you buy it, let me know if lulu.com works for you. > >

[web2py:12156] IP4 and IP6 checker for who wants it

2008-11-19 Thread artien
Here is the code I'm using to validate ip addresses entered in a text field in a form: Hope its usefull for someone, perhaps an idea for a requires IS_IP4 or IS_IP6? :) def ipcheckv6(ipnummer): Is_IP = True splitcounter = 0 if ipnummer.count('::') > 1: #bad formatted addres

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

2008-11-19 Thread Timothy Farrell
The manual is an excellent resource!  Thank you Massimo! Timothy Farrell wrote: Oh snap! /me runs out to the car to get his credit card. Alexandre Miguel de Andrade Souza wrote: I buy it too. So easy! 2008/11/18 mdipierro <[EMAIL PROTECTED]> http:/

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

2008-11-19 Thread Timothy Farrell
Oh snap! /me runs out to the car to get his credit card. Alexandre Miguel de Andrade Souza wrote: I buy it too. So easy! 2008/11/18 mdipierro <[EMAIL PROTECTED]> http://www.lulu.com/content/4968879 This is without the Wiley cover since Wiley could not accommodate the

[web2py:12153] Re: Updating the database from a daemon

2008-11-19 Thread Coalescence
Cool! That's easier than I thought it'd be Cheers Massimo On Nov 19, 1:40 pm, mdipierro <[EMAIL PROTECTED]> wrote: > python web2py.py -S yourapp -M -R yourdaemon.py & > > try -h for all command line options. > > Massimo > > On Nov 19, 7:28 am, Coalescence <[EMAIL PROTECTED]> wrote: > > > Hi guys

[web2py:12150] Updating the database from a daemon

2008-11-19 Thread Coalescence
Hi guys, How would I go about updating information in the database from the command line driven python app, or a daemon? I understand I could just interface with the database in the usual manner, but I'd like to keep using the framework modules to keep consistency. Any ideas or tips most welcom

[web2py:12152] Re: web2py meets N810

2008-11-19 Thread fpp
I believe I have mentioned several times since earlier this year that I had web2py running on my N810 withj apps specially made for it :-) I gave a talk about this experience at the Nokia Maemo Summit in Berlin last September. --~--~-~--~~~---~--~~ You received th

[web2py:12151] Re: Updating the database from a daemon

2008-11-19 Thread mdipierro
python web2py.py -S yourapp -M -R yourdaemon.py & try -h for all command line options. Massimo On Nov 19, 7:28 am, Coalescence <[EMAIL PROTECTED]> wrote: > Hi guys, > > How would I go about updating information in the database from the > command line driven python app, or a daemon? > > I unde

[web2py:12149] Re: Web2py and pexpect?

2008-11-19 Thread mdipierro
I do not think this is a web2py issue. It is the web server (cherrypy) that kills all long running processes. All web servers do it. Perhaps the proper way is to run an background process with pxssh and have web2py proxy for it,. On Nov 19, 12:09 am, artien <[EMAIL PROTECTED]> wrote: > Yeah I hav

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

2008-11-19 Thread Alexandre Miguel de Andrade Souza
I buy it too. So easy! 2008/11/18 mdipierro <[EMAIL PROTECTED]> > > 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. > If you buy it, let me know if lulu.com works for you. > > Please do not red

[web2py:12147] Re: itemize temporary data

2008-11-19 Thread billf
OK, I see. The objects passed to itemize are an SQLTable and, optionally, an SQLQuery, that basically filters the rows returned. The easiest way to construct an SQLTable is to use define_table (as in a model like db.py). That's why I was suggesting an in-memory database which Massimo has now imp

[web2py:12146] Re: itemize temporary data

2008-11-19 Thread Baron
> When you say "these tables are Python objects", I assume you are refererring to your temporary data(?) No, to the table input to itemize. This input is a python object. So can this object be instantiated directly without going through a database? On Nov 19, 5:36 pm, billf <[EMAIL PROTECTED]>