[web2py] Re: web2py 2.0 almost done

2012-08-06 Thread lyn2py
Question on the autocomplete widget: Previous post / discussions indicate that this widget doesn't work for IE, may I know if it has been fixed? Or what seems to be preventing IE from rendering it properly? Thanks Massimo! On Tuesday, August 7, 2012 12:33:48 PM UTC+8, Massimo Di Pierro wrote:

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-08-06 Thread lyn2py
Hi Richard, I'm interested in this, how can I get this web2py slice? On Wednesday, May 30, 2012 3:44:20 AM UTC+8, Richard wrote: > > Can't link the app too big (thanks to google 4 meg max :( )... > > Ask me in private I will send you the app directly. > > Richard > > On Tue, May 29, 2012 at 3:40 P

[web2py] Re: Upload file using the LOAD (....., ajax = True)

2012-08-06 Thread Anthony
At the end of this sectionin the book it says: *Please note:* Because Ajax post does not support multipart forms, i.e. > file uploads, upload fields will not work with the LOAD component. You > could be fooled into thinking it would wor

Re: [web2py] Re: possible scheduler bug

2012-08-06 Thread Massimo Di Pierro
+1 Niphold has done an excellent job with the scheduler. On Monday, 6 August 2012 23:32:58 UTC-5, Michael Toomim wrote: > > Thanks for the great work on the scheduler niphlod! > > On Wednesday, August 1, 2012 1:19:48 PM UTC-7, Niphlod wrote: >> >> The consideration behind that is that if your fun

[web2py] web2py 2.0 almost done

2012-08-06 Thread Massimo Di Pierro
Web2py 2.0 is almost done. Please try the nightly build. Let us know if it breaks anything. massimo --

Re: [web2py] Re: possible scheduler bug

2012-08-06 Thread Michael Toomim
Thanks for the great work on the scheduler niphlod! On Wednesday, August 1, 2012 1:19:48 PM UTC-7, Niphlod wrote: > > The consideration behind that is that if your function doesn't return > anything, you don't need the results. Backward compatibility is quite > broken in that sense (but schedule

[web2py] Re: Upload file using the LOAD (....., ajax = True)

2012-08-06 Thread Massimo Di Pierro
Try trunk. With Chrome it may work but no promise. Let me know. On Monday, 6 August 2012 22:58:47 UTC-5, Massimo Di Pierro wrote: > > Unfortunately this cannot be done easily. ajax of multipart forms (forms > containing file upload) is not in html. > > According to one of the answers here it is i

[web2py] Re: Upload file using the LOAD (....., ajax = True)

2012-08-06 Thread Massimo Di Pierro
Unfortunately this cannot be done easily. ajax of multipart forms (forms containing file upload) is not in html. According to one of the answers here it is in HTML5 http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery and we could add support for it in web

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread Niphlod
really don't know if this is officially supported or not, but works in a test I just made. On Monday, August 6, 2012 10:06:44 PM UTC+2, Cliff Kachinske wrote: > > Maybe I missed something here. > > I know you can pass a query to grid. By queryset do you mean a set of row > objects? > > On

[web2py] Upload file using the LOAD (....., ajax = True)

2012-08-06 Thread Picheth
I have a problem with the upload file using the LOAD (., ajax = True) please .. any help, cues or snippets of codes to accomplish this ... will be greatly appreciated Picheth. --

[web2py] Re: presenting a manytomany relation for insert

2012-08-06 Thread Cliff Kachinske
So the label for your checkboxes is the record id instead of the email address? Right at the moment I don't know the answer ... Sorry. On Monday, August 6, 2012 3:27:15 PM UTC-4, goabbear wrote: > > Hi, > thanks for your help, I can now have checkboxes in the form, but I can't > change the "d

[web2py] Re: invalid select attribute: distinct

2012-08-06 Thread Cliff Kachinske
I have created this problem by adding the unique argument to a table column after populating it with data. try removing it from the has_line field. On Monday, August 6, 2012 8:19:36 PM UTC-4, Elton Pereira de Lima wrote: > > I'm using the latest development version, and try to add a record by th

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread weheh
OK, so I guess the answer is to ditch the virtual field and go with a regular field, then compute the field before putting up the grid. Lambda is nice in my failed implementation because it iterates automatically. I wonder if I can do the assignment without having to loop while updating? In oth

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread howesc
are you using auth? auth takes around 200ms to load i think on GAE. i avoid initializing auth except for the controllers that use it, as well as having my model definitions in modules. cfh On Monday, August 6, 2012 3:57:51 PM UTC-7, Felipe Meirelles wrote: > > Actualy Django uses the datastor

[web2py] invalid select attribute: distinct

2012-08-06 Thread Elton Pereira de Lima
I'm using the latest development version, and try to add a record by the administrative interface the following exception is raised: invalid select attribute: distinct The error happens when trying to insert in squid_log table. db.define_table('squid_internal_host', Field('ip',

[web2py] Re: register form and service conditions acceptance

2012-08-06 Thread Anthony
> > hi all, I would like to customize the register form so that an additional > field would appear (a boolean) to let the new user accept the service > conditions. I've tried to add the new extra field with > > auth.settings.extra_fields[] > > and it works. But the problem is how to present to

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Anthony
> > +1 to making it an inbuilt feature and creating an easy to use API. I am > not a python newbie, but your code is very tough meat to swallow. > I've mentioned this before, but "model-less" just means that your db table definitions are moved into modules instead of being executed in files in

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
Actualy Django uses the datastore too. I'm using the memcache for all things its possible (it already reduce the old django version database access on 90% in this new web2py version). I think the overhead is realy from loading all models, grids and menus I've defined for my app. I'll try a Mode

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Massimo Di Pierro
You should check the {{=response.toolbar()}} because there may be more DB io than you think in the models. You should also try remove the setting of model attributes (requires=, models=, ...) and move them in the controllers that need them. Also mind that web2py on GAE has sessions turned on by

[web2py] register form and service conditions acceptance

2012-08-06 Thread Marco Prosperi
hi all, I would like to customize the register form so that an additional field would appear (a boolean) to let the new user accept the service conditions. I've tried to add the new extra field with auth.settings.extra_fields[] and it works. But the problem is how to present to the user the s

[web2py] Re: How to get HTML 5 Validation for base files - 3 changes - Create New Application wizard.

2012-08-06 Thread Massimo Di Pierro
Your suggested changes are in trunk, including metas on separate lines. Thank you! Massimo On Monday, 6 August 2012 09:27:42 UTC-5, Rob_McC wrote: > > Just a very small point. > I made 3 changes to allow me to get HTML validation @ > http://validator.w3.org/ > > I like to validate my code a

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread Niphlod
again, it seems to work but I didn't check the code to see if it is supported. when you pass a table to the grid constructor, search, orderby etc are done against the "real" data of the table. So, if you're going to display, e.g., a table with a user_id fields referenced to the auth_user table

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Pystar
+1 to making it an inbuilt feature and creating an easy to use API. I am not a python newbie, but your code is very tough meat to swallow. On Monday, August 6, 2012 9:53:02 PM UTC+1, rochacbruno wrote: > > > On Mon, Aug 6, 2012 at 5:43 PM, Pystar wrote: > >> but doesnt going your model less rout

Re: [web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread Bruno Rocha
Basically you have to keep in mind that 'orderby" and "limitby" will be done by the database engine, the db does not know anything about your "lambda' logic. --

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread weheh
Thanks for the responses. @Niphlod: I'm not sure what you mean by a full queryset. Can you elaborate, please? --

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Bruno Rocha
On Mon, Aug 6, 2012 at 5:43 PM, Pystar wrote: > but doesnt going your model less route go against web2py tenet of > "convention over configuration"? although it looks interesting Yes, my sample code is very complex to implement. And this is why I am insisting on tests. If testing, we reach the

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Pystar
but doesnt going your model less route go against web2py tenet of "convention over configuration"? although it looks interesting On Monday, August 6, 2012 8:27:41 PM UTC+1, rochacbruno wrote: > > On Mon, Aug 6, 2012 at 4:19 PM, Felipe Meirelles wrote: > >> Without any model I have a huge drop on

[web2py] issue with mysql (or pymysql only?)

2012-08-06 Thread Niphlod
I'm somewhat baffled by an issue that came up when testing the scheduler. BTW, I'm on Windows for this test, but someone reported the same problem for unix/mac too. Maybe someone more experienced than me can explain this. >From my understanding, the DBAPI for python allows me to: - have a "consum

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread Cliff Kachinske
Maybe I missed something here. I know you can pass a query to grid. By queryset do you mean a set of row objects? On Monday, August 6, 2012 3:56:12 PM UTC-4, Niphlod wrote: > > this is more related to an implementation logic than a bug. > > fields that are represented by some other field gets

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread Niphlod
this is more related to an implementation logic than a bug. fields that are represented by some other field gets computed at run-time, but to search/orderby them you have to fetch them too, and that can be expensive. If you need to orderby/search by a referenced/represented/computed field, you

[web2py] Re: Unit test and request object

2012-08-06 Thread Mark Li
Was having trouble with this too, thanks for find this! On Friday, April 8, 2011 7:03:21 AM UTC-7, Jérémie wrote: > > Some more points. > > I finally succeeded to reset request thanks to matclab's comments and > code on the slice (http://www.web2pyslices.com/main/slices/take_slice/ > 67) : > >

[web2py] Re: Scheduler: help us test it while learning

2012-08-06 Thread Alan Etkin
> I don't think the scheduler would be a solution fit to their structure, and they have their own Scheduled Tasks GAE Scheduled tasks are configured when updating the app with a list in a .yaml file, so I think switching between the normal scheduler and gae scheduler would be very difficult, bu

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
With the basic models (i have 10+ tables on my app) the cpu time jumps from 60ms to 200ms. I have some grids and menus too, if I add that, it goes to my 300ms for a basic controller. Ill try the model less aproch and post the results again. Thanks. On Monday, August 6, 2012 4:27:41 PM UTC-3, r

[web2py] Re: presenting a manytomany relation for insert

2012-08-06 Thread goabbear
Hi, thanks for your help, I can now have checkboxes in the form, but I can't change the "destinataire" field from "id" to "email" : def sabonner(): abo = db.abonnement abo.mailinglist_id.widget = SQLFORM.widgets.checkboxes.widget form = SQLFORM(abo) return dict(form=form) Where ca

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Bruno Rocha
On Mon, Aug 6, 2012 at 4:19 PM, Felipe Meirelles < fel...@felipemeirelles.com.br> wrote: > Without any model I have a huge drop on the cpu use, from around 300ms to > around 60ms. Still higher than with Django, but its acceptable by the > concept of the framework. Because of that I am using a mo

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
Without any model I have a huge drop on the cpu use, from around 300ms to around 60ms. Still higher than with Django, but its acceptable by the concept of the framework. Ill make some debug on my models and update the topic. On Monday, August 6, 2012 4:05:56 PM UTC-3, rochacbruno wrote: > > What

[web2py] Re: grid not ordering lambda-generated column values correctly

2012-08-06 Thread Cliff Kachinske
Me too. It's one of the reasons I don't use grid/smartgrid. Sorry I don't have an answer. On Monday, August 6, 2012 10:18:07 AM UTC-4, weheh wrote: > > I have an SQLFORM.grid(... orderby=db.host.id ...) where > db.host.id.represent=lambda value, row: int( > db((db.url_queue.host_id == value)

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Bruno Rocha
What do you have in models? All model files runs alphabetically for each request, so we need to know what are you doing on model files. Can you try to test with an empty brand new app, remove all files from models folder and try your simple controller import logging def test(): logging.info

[web2py] Re: presenting a manytomany relation for insert

2012-08-06 Thread Cliff Kachinske
For starters, I'm not sure the syntax is correct for multiple validators. The Web2py manual states they need to be in the form of a list. http://web2py.com/books/default/chapter/29/7#Validators Also notice I have cleaned up the closing parends. db.abonnement.destinataire_id.requires = [ IS_

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
Even the simplest controller give me a high cpu usage: import logging def test(): logging.info("Just making a performace test") ms=559 cpu_ms=612 api_cpu_ms=245 On Monday, August 6, 2012 3:37:38 PM UTC-3, Felipe Meirelles wrote: > > Just compiled the app and deployed again, seems to make

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
Just compiled the app and deployed again, seems to make no diference. App engine uses the bytecode generated on web2py? Did I need to change some config at app.yaml? On Monday, August 6, 2012 3:21:29 PM UTC-3, Felipe Meirelles wrote: > > Pre compiled by the admin interface? Not yet, is there som

[web2py] Re: Copyright with current year in footer - automatic updating - suggestion.

2012-08-06 Thread Cliff Kachinske
Sorry for hijacking this thread, but I feel there's an important point that needs to be made. I've been following technology-related legal issues on groklaw.net since the SCO Group launched its infamous anti-Linux lawsuits. If there's one thing I've learned, it's this: if you want to know how

Re: [web2py] updating web2py src on live site and web2py shutdown/restart

2012-08-06 Thread wdtatenh
True enough - but I'm not running a linux box and bringing up web2py from cmd line is straightforward. Shutting down web2py on a windows box normally hangs. On linux $: kill is issued. However, since it's a live server - one that is not under my control (for darn good reason), I'm simpl

Re: [web2py] Re: Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
Pre compiled by the admin interface? Not yet, is there some impove with the precompiled code? On Mon, Aug 6, 2012 at 3:16 PM, Derek wrote: > Have you compiled your app? > > On Monday, August 6, 2012 10:46:33 AM UTC-7, Felipe Meirelles wrote: >> >> Hi, >> >> I'm using web2py in a project that sta

[web2py] Re: Appengine CPU cycles

2012-08-06 Thread Derek
Have you compiled your app? On Monday, August 6, 2012 10:46:33 AM UTC-7, Felipe Meirelles wrote: > > Hi, > > I'm using web2py in a project that stands on top of a REST api. The > project is write intensive (around 110k requests a day, with all the > requests making at least 2 updates to the data

[web2py] presenting a manytomany relation for insert

2012-08-06 Thread goabbear
Hi all, I have tried django before and I want to give a try to web2py because it looks more language natural, but I run into a problem (sorry if my question is stupid) : in db.py : db.define_table('destinataire', Field

[web2py] Appengine CPU cycles

2012-08-06 Thread Felipe Meirelles
Hi, I'm using web2py in a project that stands on top of a REST api. The project is write intensive (around 110k requests a day, with all the requests making at least 2 updates to the datastore). All my requests seems to uso at least 200 cpu_ms (even dummy requests that only places a item on the

Re: [web2py] updating web2py src on live site and web2py shutdown/restart

2012-08-06 Thread vinicius...@gmail.com
You'll do this in a test environment before, right? ;-) On 08/06/2012 01:37 PM, wdtatenh wrote: I'm about to update the src code on a live site hosted by webfaction. I'm assuming that web2py server must be stopped and restarted. Web2py is running from the original installation script and has n

Re: [web2py] updating web2py src on live site and web2py shutdown/restart

2012-08-06 Thread Jonathan Lundell
On 6 Aug 2012, at 9:37 AM, wdtatenh wrote: > I'm about to update the src code on a live site hosted by webfaction. I'm > assuming that web2py server must be stopped and restarted. > > Web2py is running from the original installation script and has never had to > be shutdown before. I've not g

[web2py] updating web2py src on live site and web2py shutdown/restart

2012-08-06 Thread wdtatenh
I'm about to update the src code on a live site hosted by webfaction. I'm assuming that web2py server must be stopped and restarted. Web2py is running from the original installation script and has never had to be shutdown before. I've not gone through this on a live site performing a manual s

Re: [web2py] Re: Announcement: Open-source meetup.com alternative released

2012-08-06 Thread Samuel Marks
First time I've had a look at it since my presentation. Alright, enabled registrations, simplified group.py controller logic and added a search feature to the events page. Could I please get some advice—i.e.: code-review—and suggestions on how to scale it—e.g.: where+when to cache and how to redu

Re: [web2py-dev] [web2py] Re: strange response.flash

2012-08-06 Thread Massimo DiPierro
Sorry. I misread your email. Massimo On Aug 4, 2012, at 10:53 AM, Anthony wrote: > I see. I think the problem is only with response.flash within Ajax > components. The message is escaped on the server via urllib2.quote, and then > decoded in the browser via decodeURIComponent (see source code)

[web2py] Re: Web2py service won't start on Windows

2012-08-06 Thread joe
Hello Just a note: Even with the error documented above, the service (and apache) still runs. It doesn't seem to be an issue. -Joe On Monday, August 6, 2012 9:45:51 AM UTC-5, joe wrote: > > Hi Ales, > thanks for the suggestion. > > I ran pythonservice.exe with the debug option and discovered t

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Athelionas
This sounds like a nice approach to solve this issue without causing backwards incompatibilities. Thank you for your efforts :) 2012. augusztus 6., hétfő 16:11:22 UTC+2 időpontban Jonathan Lundell a következőt írta: > > On 6 Aug 2012, at 2:33 AM, Athelionas wrote: > > Yes, it seems like that is

[web2py] Re: Web2py service won't start on Windows

2012-08-06 Thread joe
Hi Ales, thanks for the suggestion. I ran pythonservice.exe with the debug option and discovered the first problem was in my options.py file. I copied the options.py text in the web2py manual (http://web2py.com/books/default/chapter/29/13) but the lines: ssl_certificate = " ssl_private_key = "

Re: [web2py] Re: support for list comprehensions and enumerate in template language

2012-08-06 Thread Andreas Christoffersen
Thanks for confirming this. Sincerely Andreas On Mon, Aug 6, 2012 at 4:34 PM, Anthony wrote: > web2py doesn't really have a separate template language -- it's just pure > Python. So yes, you can use list comprehensions. See > http://web2py.com/books/default/chapter/29/5#The-views for details. >

[web2py] Re: support for list comprehensions and enumerate in template language

2012-08-06 Thread Anthony
web2py doesn't really have a separate template language -- it's just pure Python. So yes, you can use list comprehensions. See http://web2py.com/books/default/chapter/29/5#The-views for details. Anthony On Monday, August 6, 2012 10:28:46 AM UTC-4, achristoffersen wrote: > > I just ran my head a

[web2py] Re: grid throws ticket when trying to display virtual field

2012-08-06 Thread Anthony
I'm not sure if any improvements have been made since this solution was originally posted, but here's a workaround: http://stackoverflow.com/questions/9232336/calculated-fields-in-web2py-sqlgrid/9235992#9235992 Anthony On Monday, August 6, 2012 10:05:50 AM UTC-4, weheh wrote: > > I've got a tab

[web2py] support for list comprehensions and enumerate in template language

2012-08-06 Thread Andreas Christoffersen
I just ran my head agains jinja2... Does web2py template language support list comprehensions? Sincerely --

[web2py] How to get HTML 5 Validation for base files - 3 changes - Create New Application wizard.

2012-08-06 Thread Rob_McC
Just a very small point. I made 3 changes to allow me to get HTML validation @ http://validator.w3.org/ I like to validate my code as I go, I seem to forget to close my tags, or silly errors creep in if I don't. I know sometimes, I allow my pages *NOT* to pass http://validator.w3.org/ but o

[web2py] grid not ordering lambda-generated column values correctly

2012-08-06 Thread weheh
I have an SQLFORM.grid(... orderby=db.host.id ...) where db.host.id.represent=lambda value, row: int( db((db.url_queue.host_id == value) & (db.url_queue.removed == None)).count() ) The host.id column displays the correct numbers, but when I click on the column title to order ascending or

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Jonathan Lundell
On 6 Aug 2012, at 2:33 AM, Athelionas wrote: > Yes, it seems like that is the problem. I couldn't find a way of dealing with > this case in routes.py so I guess my only option is to handle these cases > separately in my nginx config. It is a shame, though, that there's not a > simple way of dea

[web2py] Re: Scheduler: help us test it while learning

2012-08-06 Thread Niphlod
I must admit I have no experience on GAE and EC2. On GAE the issues are 2: - no relational db available - is really allowed on GAE to have a long running process that (possibly) never ends ? Is not GAE charging something for every query made on their BigTable db ? I don't think the scheduler wou

[web2py] grid throws ticket when trying to display virtual field

2012-08-06 Thread weheh
I've got a table to which I'm adding a virtual field: db.host.not_removed = Field.Virtual(lambda row: db(db.url_queue.removed == None).count()) I'm then using it in a grid: list=SQLFORM.grid( db.host.id > 0, orderby=db.host.domain, fields=[

Re: [web2py] Re: Scheduler: help us test it while learning

2012-08-06 Thread Yarin Kessler
Alan- the scheduler relies on a normalized table structure that's impossible to implement in GAE, but the GAE has its own task scheduler if I recall. EC2 should be fine as long as you've got a supported DB somewhere. On Mon, Aug 6, 2012 at 9:05 AM, Alan Etkin wrote: > > Feel free to propose feat

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Jonathan Lundell
On 6 Aug 2012, at 2:33 AM, Athelionas wrote: > Yes, it seems like that is the problem. I couldn't find a way of dealing with > this case in routes.py so I guess my only option is to handle these cases > separately in my nginx config. It is a shame, though, that there's not a > simple way of dea

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-06 Thread Massimo Di Pierro
auth.define_tables(username=True) db.auth_user.username.requires.insert(0,IS_MATCH("[a-z].*")) On Monday, 6 August 2012 08:22:07 UTC-5, Rob_McC wrote: > > I notice that several characters are not allowed in web2py user names, > like ~ and !, >but "." (period) and "-" are allowed. > > Quic

[web2py] Re: Copyright with current year in footer - automatic updating - suggestion.

2012-08-06 Thread Annet
> Thanks Annett for *one line* solution. It worked. You're welcome. Annet --

[web2py] Re: Can't run web2py because of socket.gethostbyname problem

2012-08-06 Thread Mobility
No. I downloaded the trunk version of Web2py and got the same message error again: "Premature end of script headers: wsgihandler.py". Only to be clear, I do not have the host name problem mentioned in this discussion. I am using mod_wsgi which came with ML Server. Should I try to compile a new

[web2py] Re: Google maps &

2012-08-06 Thread Annet
Hi Anthony, I cannot reproduce the problem. When I try the code, all the & entities > remain in the rendered source. Thanks for trying to reproduce the problem. Since the iframe solution also had difficulty with near and location I replaced my code with the solution Alec provided, now I have

[web2py] empty jqgrid

2012-08-06 Thread Larry Wapnitsky
Pardon me if I asked this before, but I can't seem to find my prior Q&A: I'm attempting to use jqgrid via the plugin_wiki widget, yet all my tables keep coming up as empty. This is what I'm putting my my html file: {{=plugin_wiki.widget('jqgrid',table='recipient')}} And this is the table def

[web2py] Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-06 Thread Rob_McC
I notice that several characters are not allowed in web2py user names, like ~ and !, but "." (period) and "-" are allowed. Quick Question: Is there an easy way to restrict usernames to only allow a-z as first letter? *Reason:* I will have other uses for the url with . and - in them. *

[web2py] Re: Can't run web2py because of socket.gethostbyname problem

2012-08-06 Thread Mobility
I tried the trunk version of Web2py and still got the same error message: "Premature end of script headers: wsgihandler.py". Only to be clear, I do not have the host name problem mentioned in this discussion. I am using the mod_wsgi which came with the ML Server. Should I try to compile mod_ws

[web2py] Re: Copyright with current year in footer - automatic updating - suggestion.

2012-08-06 Thread Rob_McC
Thanks Annett for *one line* solution. It worked. Rob On Monday, August 6, 2012 1:26:02 AM UTC-4, Annet wrote: > > This is much shorter: > {{=request.now.year}} > Annet. > --

[web2py] Re: Scheduler: help us test it while learning

2012-08-06 Thread Alan Etkin
> Feel free to propose features you'd like to see in the scheduler, I have some time to spend implementing it. Will (or could) scheduler support multi-platform apps? (EC2, GAE, ...)? --

[web2py] Re: Google maps &

2012-08-06 Thread Anthony
I cannot reproduce the problem. When I try the code, all the & entities remain in the rendered source. Anthony On Monday, August 6, 2012 3:58:18 AM UTC-4, Annet wrote: > > In a view I have the following iframe > > marginheight="0" marginwidth="0" src=" > http://maps.google.nl/maps?f=q&source=s_

[web2py] Re: file w2p_apps does not exist

2012-08-06 Thread Anthony
No need to install -- just unzip the source zip file and you're ready to go. Anthony On Monday, August 6, 2012 7:55:33 AM UTC-4, wdtatenh wrote: > > Downloaded latest stable src and ran setup.py install and get error > w2p_apps does not exist. > > Any suggestions as to how to remedy this issue.

Re: [web2py] Google maps &

2012-08-06 Thread Alec Taylor
No worries :) On Mon, Aug 6, 2012 at 10:17 PM, Annet wrote: > Hi Alec, > > >> Quick question, is there a reason you are using a simple iframe rather >> than using the API properly? > > > I thought I could only use the API in production, but from your example I > learn that I can also use it in de

[web2py] Re: Copyright with current year in footer - automatic updating - suggestion.

2012-08-06 Thread Massimo Di Pierro
I fixed this where possible, On Monday, 6 August 2012 00:26:02 UTC-5, Annet wrote: > > Whether or not it's worth adding a copyright date like this: > > {{ >> # adds current year, no updating necessary >> import datetime >> now = datetime.datetime.now() >> =" %d" % now.year >> }} >> > > This is muc

Re: [web2py] Google maps &

2012-08-06 Thread Annet
Hi Alec, Quick question, is there a reason you are using a simple iframe rather > than using the API properly? > I thought I could only use the API in production, but from your example I learn that I can also use it in development (localhost). Thanks for providing me with this solution. Kin

Re: [web2py-dev] [web2py] Re: strange response.flash

2012-08-06 Thread Massimo Di Pierro
I think Anthony is right. His suggested fix is now in trunk. Give it a try. On Sunday, 5 August 2012 23:21:53 UTC-5, Anthony wrote: > > With xmlescape, HTML helpers should still work fine -- xmlescape does not > escape helpers, only the components within the helpers (I think it > basically repli

[web2py] Re: collaborative development of a simple app

2012-08-06 Thread Massimo Di Pierro
Very odd. If you do not have data in there, can I suggest you delete everything in applications/yourapp/databases and access appadmin again? Does it work? On Sunday, 5 August 2012 20:33:50 UTC-5, metaperl wrote: > > Terrence Brannon writes: > > > > > Terrence Brannon writes: > > > > > > >

[web2py] file w2p_apps does not exist

2012-08-06 Thread wdtatenh
Downloaded latest stable src and ran setup.py install and get error w2p_apps does not exist. Any suggestions as to how to remedy this issue. Thanks in advance Bill --

Re: [web2py] Re: plugin_wiki meta-menu

2012-08-06 Thread Martin Weissenboeck
Thank you - nice solution. I have changed it to: elif url.startswith('url:'): url=URL(*(url[4:].split('/'))) Usage: url:application/controller/function All three parts must be supplied. I think, something like this should become part of the plugin_wiki. 2012/8/6 villas > I had a similar prob

[web2py] Re: Problems with showing uploaded thumbnail image or to select one of 3 thumbnail images listed !

2012-08-06 Thread villas
Maybe your difficulty mainly arises from trying to do two things with one form? As a suggestion, this logic might make it easier... Display form1 showing choices of pictures on your server. Display another form2 with an "upload another pic" button. On submit form1: save the record and redirect

[web2py] Re: plugin_wiki meta-menu

2012-08-06 Thread villas
I had a similar problem. My solution was to hack models/plugin_wiki.py. After these lines... elif url.startswith('page:'): url=URL('plugin_wiki','page',args=url[5:]) Add this: elif url.startswith('site:'): url=URL(YOUR_CO

[web2py] plugin_wiki meta-menu

2012-08-06 Thread Martin Weissenboeck
About the meta-menu: I have found in the book *Homepage:home Google http://google.com * But how to go to another application on the same server? There should be something like *To my function URL(f='myfunction',c='mycontroller',a='myapplication')* I have tried *To my func

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Athelionas
Yes, it seems like that is the problem. I couldn't find a way of dealing with this case in routes.py so I guess my only option is to handle these cases separately in my nginx config. It is a shame, though, that there's not a simple way of dealing with this directly in web2py by rewriting outgoi

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Athelionas
Yes, it seems like that is the problem. I couldn't find a way of dealing with this case in routes.py so I guess my only option is to handle these cases separately in my nginx config. It is a shame, though, that there's not a simple way of dealing with this directly in web2py by rewriting outgoi

Re: [web2py] Google maps &

2012-08-06 Thread Alec Taylor
Here's the solution for your specific case: http://maps.googleapis.com/maps/api/staticmap?center=Rhijnspoor+259+2901+LB+Capelle+aan+den+IJssel+Nederland&zoom=13&size=600x300&maptype=roadmap&sensor=false"; alt="Map" /> On Mon, Aug 6, 2012 at 6:10 PM, Alec Taylor wrote: > Quick question, is there

Re: [web2py] Google maps &

2012-08-06 Thread Alec Taylor
Quick question, is there a reason you are using a simple iframe rather than using the API properly? https://developers.google.com/maps/documentation/staticmaps/ On Mon, Aug 6, 2012 at 5:58 PM, Annet wrote: > In a view I have the following iframe > > marginheight="0" marginwidth="0" > src="http:

[web2py] Google maps &

2012-08-06 Thread Annet
In a view I have the following iframe http://maps.google.nl/maps?f=q&source=s_q&hl=nl&q={{=session.address.street}}+{{=session.address.houseNumber}}{{if session.address.houseNumberExtension:}}+{{=session.address.houseNumberExtension}}{{pass}}+{{=session.address.postalCode}}+{{=session.address.lo