[web2py:19648] Re: WARNING:root:unable to import dbhash (only from external cron)

2009-04-12 Thread Yarko Tymciurak
...and even worse, the shell could be any number of applications (well - python or ipython at least...) On Wed, Apr 8, 2009 at 11:26 AM, mdipierro wrote: > > No. It is just not obvious to me. Moreover I did not create the shell > code myself so I am not sure about details. > > Massimo > > On Apr

[web2py:19647] Re: how to do autoindex for directories & serve static html files

2009-04-12 Thread Yarko Tymciurak
Note: If you serve static files like this, you will run into (potentially) one problem: If (as is common) a link to someplace in the static place _assumes_ index.htm or index.html, and the link is only to a directory, it will not work on web2py (it will work probably everyplace else in the web wo

[web2py:19646] Re: french translation breaking datetime field widget in SQLForm

2009-04-12 Thread desfrenes
Thank you ! On Apr 13, 6:30 am, mdipierro wrote: > fixed in trunk > > On Apr 12, 4:00 pm, desfrenes wrote: > > > Hi! > > > The translation string used in fr-fr for the datetime (%d-%m-%Y- %H:%M: > > %S) breaks the compatibility with the calendar widget (because db > > wants %Y-%m-%d %H:%M:%S).

[web2py:19645] Re: make validator ignore empty string

2009-04-12 Thread Yarko Tymciurak
On Tue, Apr 7, 2009 at 9:43 AM, Michal Jursa wrote: > > Whops, sorry, didn't know that, won't do it any more. > > Michal You can do - the thread name doesn't need to have an ID number (text is enough) so you can reply, change subject ... just change _completely_ ;-) > > > AchipA wrote: > > >

[web2py:19644] Re: Ajax Auth and Multiple Single Signon

2009-04-12 Thread suiato
The page (https://rpxnow.com/docs) has example code in C#, Java, PHP and RoR. Not in Python, but supposedly the program in C# or Java can be called by Python... ? --- Teru --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[web2py:19643] RFC auto fields

2009-04-12 Thread mdipierro
In trunk you can now do db.define_table('person : Name, Birthday date, Telephone') db.define_table('dog: Name, Owner person, Picture upload') Is this useful? Look at the source. Is the syntax reasonable? Massimo --~--~-~--~~~---~--~~ You received this message bec

[web2py:19642] Re: web2py @ twitter.com

2009-04-12 Thread Yarko Tymciurak
??? On Mon, Apr 6, 2009 at 11:24 AM, mdipierro wrote: > > Thanks Michael Thamm! > > 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 w

[web2py:19641] Re: important about ajax forms

2009-04-12 Thread Yarko Tymciurak
This contains a brief description of intents on Android (as I promised): http://www.openexpo.ch/fileadmin/documents/2008Zuerich/Slides/33_Printemps.pdf On Sun, Apr 5, 2009 at 11:25 PM, mdipierro wrote: > > Here is one more demo: > > http://www.web2py.com/events/default/index > > Here is the so

[web2py:19640] Re: New App - hope you like it

2009-04-12 Thread mdipierro
Can you send me a patch? On Apr 13, 12:59 am, Iceberg wrote: > Nothing wrong, but it seems people tends to forget pressing the > cleanup button before packing, at least I've downloaded some apps in > the open repository (http://mdp.cti.depaul.edu/appliances) and find > some of them include unnec

[web2py:19639] Re: New App - hope you like it

2009-04-12 Thread Iceberg
Nothing wrong, but it seems people tends to forget pressing the cleanup button before packing, at least I've downloaded some apps in the open repository (http://mdp.cti.depaul.edu/appliances) and find some of them include unnecessary errors/* and sessions/* Shall we look at this in a different an

[web2py:19637] Re: routes.py update without restart webserver

2009-04-12 Thread mdipierro
This is not an easy one. The problem is that the routes code is outside any app. Currently if there is a bug in routes, web2py does not start. If you allow changes at runtime: 1) you make web2py slower because changes have to be monitored; 2) what happens if there is a bug in routes? Massimo On

[web2py:19638] Re: web2py legacy databases, 'id' field requirement

2009-04-12 Thread Yarko Tymciurak
Thanks for the update, David. On Mon, Apr 6, 2009 at 8:51 AM, David Niergarth wrote: > > On Apr 1, 9:20 pm, Yarko Tymciurak wrote: > > > http://www.postgresql.org/docs/8.3/interactive/sql-createrule.html > > > > and looking at this, it seems fairly straight forward: > > Yes it does. The manual

[web2py:19636] Re: Can't seem to control number of apache procs

2009-04-12 Thread mdipierro
If you use web2py with WSGI, web2py does not start any thread. WSGI is responsible for all thread handling. I am not sure I understand the problem anyway. Why not set a smaller number of minsparethereads and mintreadsperchild? Massimo On Apr 12, 4:39 pm, Skip Montanaro wrote: > I'm trying to g

[web2py:19635] Re: french translation breaking datetime field widget in SQLForm

2009-04-12 Thread mdipierro
fixed in trunk On Apr 12, 4:00 pm, desfrenes wrote: > Hi! > > The translation string used in fr-fr for the datetime (%d-%m-%Y- %H:%M: > %S) breaks the compatibility with the calendar widget (because db > wants %Y-%m-%d %H:%M:%S). > The translated string should probably not be used with SQLForm.

[web2py:19634] google trends today

2009-04-12 Thread mdipierro
http://www.web2py.com/examples/static/the_pass.png --~--~-~--~~~---~--~~ 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 g

[web2py:19633] Re: Controller & sub-folders

2009-04-12 Thread Yarko Tymciurak
just as a point of curiosity - is a single web2py _appliction_ with multiple folders in controllers more (?) useful (and I wonder how you will correlate controllers to views, etc) more useful than a web2py installation with multiple cooperating apps within? On Mon, Apr 6, 2009 at 12:06 AM, m

[web2py:19632] web2py 1.61 is out

2009-04-12 Thread mdipierro
web2py 1.61 is out. The main reason is that 1.60 *may* have been broken on GAE. This is not because of a bug in web2py but because web2py relied on a bug on GAE (lack of imp.get_magic()) to detect GAE. That bug may have been fixed (according to Guido at Pycon) so I used Robin's suggestion of not t

[web2py:19631] Re: GAE help

2009-04-12 Thread mdipierro
OK. done. check the trunk and let me know what you think. I am also reposting this as 1.61 for now because 1.60 may be broken on GAE. Massimo On Apr 12, 12:35 pm, Robin B wrote: > There is a problem, GAE does not allow setting os environ variables > (they are read only for security). > > os.env

[web2py:19630] routes.py update without restart webserver

2009-04-12 Thread Álvaro Justen [Turicas]
Hello, is there an way to web2py 'feel' that routes.py changed and reload it? Always I restart webserver (even using CherryPy or Apache with WSGI) to web2py reload routes.py. It can be a big problem if we think in hosting companies: how a client (normal user) can restart the whole webserver, only

[web2py:19629] Re: New App - hope you like it

2009-04-12 Thread mdipierro
What is wrong with pressing the cleanup button before the pack all button? I think any file delettion has to be explicit. Massimo On Apr 12, 9:33 pm, Iceberg wrote: > By the way, I always hope the pack function in web2py admin can do an > automatical cleanup before packing. > > Hopefully Massim

[web2py:19628] Re: New App - hope you like it

2009-04-12 Thread Iceberg
By the way, I always hope the pack function in web2py admin can do an automatical cleanup before packing. Hopefully Massimo is reading this post. :-) On Apr13, 10:01am, Speedbird wrote: > That has been fixed since Beta 2 ;). Thanks. > > http://www.pyforum.org/pyforum/default/view_topic/27 > > O

[web2py:19627] Re: New App - hope you like it

2009-04-12 Thread Speedbird
That has been fixed since Beta 2 ;). Thanks. http://www.pyforum.org/pyforum/default/view_topic/27 On Apr 12, 4:38 pm, Boris Manojlovic wrote: > small suggestion about beta release (and other releases), > > please remove pyforum/sessions/* and pyforum/errors/* > (or just before packing applicat

[web2py:19626] Memory issues w/ web2py on Apache?

2009-04-12 Thread Skip Montanaro
(I posted this a few hours ago but after checking a couple times never saw it. Sorry if this is a duplicate.) I have an Ubuntu Intrepid virtual server (1gb RAM, 50gb disk). I installed web2py today and followed the directions here to run it behind Apache using wsgi: http://jdoe.asidev.com

[web2py:19625] GET forms without _formname

2009-04-12 Thread virhilo
Hello:) I want to send a form using get method, so i make form like this: form=FORM('Package name: ', INPUT(_name='name', requires=IS_LENGTH(25), value=''), 'Arch: ', SELECT(OPTION('Wszystkie', _value='all'), OPTION('i686', _value='32'), OPTION('x86_64', _value='64'), requ

[web2py:19624] Can't seem to control number of apache procs

2009-04-12 Thread Skip Montanaro
I'm trying to get web2py installed and running w/ WSGI on an Ubuntu Intrepid virtual server. Apache by itself was working just fine. After installing WSGI and setting up web2py using these instructions: http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_w

[web2py:19623] Re: New App - hope you like it

2009-04-12 Thread Boris Manojlovic
small suggestion about beta release (and other releases), please remove pyforum/sessions/* and pyforum/errors/* (or just before packing application from web interface press cleanup) as it will put size from 2 mb to less than 150k (after gzipping it of course :) ) On Mon, Apr 13, 2009 at 12:14

[web2py:19622] Re: New App - hope you like it

2009-04-12 Thread Speedbird
Correct, however I'd suggest read the topics in the "pyForum Help and Announcements (Official)" forum at http://www.pyforum.org/pyforum/default/view_forum/2 Thanks, On Apr 12, 1:28 pm, Angel Cruz wrote: > Wow.  The links are very quick as well.  Looks promising. > > One thing I need clarificat

[web2py:19621] Re: New App - hope you like it

2009-04-12 Thread Speedbird
Right, please see "What will it take to take the forum out of beta status" at http://www.pyforum.org/pyforum/default/view_topic/26 Thanks! On Apr 12, 1:55 pm, Álvaro Justen [Turicas] wrote: > On Sun, Apr 12, 2009 at 5:16 PM, Speedbird wrote: > > OK, folks, beta 1 of pyforum downloadable now, p

[web2py:19620] french translation breaking datetime field widget in SQLForm

2009-04-12 Thread desfrenes
Hi! The translation string used in fr-fr for the datetime (%d-%m-%Y- %H:%M: %S) breaks the compatibility with the calendar widget (because db wants %Y-%m-%d %H:%M:%S). The translated string should probably not be used with SQLForm. Of course it's trivial to change in the admin but since it's the

[web2py:19619] Re: New App - hope you like it

2009-04-12 Thread Álvaro Justen [Turicas]
On Sun, Apr 12, 2009 at 5:16 PM, Speedbird wrote: > OK, folks, beta 1 of pyforum downloadable now, please read the topics > here: > > http://www.pyforum.org/pyforum/default/view_forum/2 If I click in link in your nick on a post, pyForum sends me to: http://www.pyforum.org/pyforum/default/message

[web2py:19618] Re: New App - hope you like it

2009-04-12 Thread Angel Cruz
Wow. The links are very quick as well. Looks promising. One thing I need clarification on the install instructions: " Create your SQL database and add the appropriate users and permissions to it. pyForum currently uses MySQL 5.0" This does not preclude me from using PostgreSQL, correct? On

[web2py:19617] Re: New App - hope you like it

2009-04-12 Thread Speedbird
OK, folks, beta 1 of pyforum downloadable now, please read the topics here: http://www.pyforum.org/pyforum/default/view_forum/2 To get started, Cheers On Apr 10, 2:25 pm, Speedbird wrote: > Here's the last of my "pets", I present you with pyForum, the FIRST > message board written exclusivel

[web2py:19616] Re: Threaded Based discussion examples

2009-04-12 Thread Speedbird
I think this is your problem: prodj=db(db.prodj.id==request.args[0]).select()[0] and then doing this: discuss=db(db.discuss.prodj==prodj).select .. should it not be discuss=db(db.discuss.prodj==prodj.id).select (or whatever column is designed to hold the LONG variable) cheers, Julio On

[web2py:19615] Checkbox gets selected during field validation

2009-04-12 Thread DJ
Hi there, I am not sure if I am doing anything wrong with my controller code. Here's the behavior - User tries to submit a form and has to enter atleast 3 fields (Name, Notebook, Page). Other fields like Project, Source and Resistance are pre-selected from database. When the user tries to submit

[web2py:19614] Re: GAE help

2009-04-12 Thread Robin B
There is a problem, GAE does not allow setting os environ variables (they are read only for security). os.environ['WEB2PY_RUNTIME'] = "GOOGLE" # will not have any effect. Instead of os.environ, how about a web2py.environ global dict which serves the same purpose and works on GAE? Also the logs

[web2py:19613] Re: GAE help

2009-04-12 Thread mdipierro
I did what you suggest. Please give it a try. If the imp.get_magic works on gae then web2py may have been slower on GAE that it is supposed to be. This should fix it. Massimo On Apr 11, 7:59 pm, Robin B wrote: > I am not sure if that is true or not. > > To test for GAE, I would set 'is_gae' to

[web2py:19612] Re: dropbox in form_factory

2009-04-12 Thread mdipierro
The only other way is by making a widget SQLField(...widget=...) there are some examples in gluon/sqlhtml.py but your way of doing it is the easiest way. Massimo On Apr 12, 11:13 am, annet wrote: > In a form_factory form I created a drop box using the following lines > of code: > > keywordrow

[web2py:19611] dropbox in form_factory

2009-04-12 Thread annet
In a form_factory form I created a drop box using the following lines of code: keywordrows=db().select (db.event.sleutelwoord,distinct=True,orderby=db.event.sleutelwoord) keywordlist=[keywordrows[i]['sleutelwoord'] for i in range(len (keywordrows))] form=form_factory(SQLField ('sleutelwoord',lab

[web2py:19610] Re: dataTables and date

2009-04-12 Thread mdipierro
I think the problem is that there are two places date is manipulated: serverside (and you have taken care of it) and clientside (by the popup calendar). a) The quick fix is to edit the views/web2py_ajax.html and set the date format to be the same DD-MM-. b) The best way is to let the locale

[web2py:19609] Re: dataTables and date

2009-04-12 Thread jmvermeer
Massimo, Happy Easter to you too. Your reply solved my problem, however, I encountered another problem. The function of this use case reads like: def byplace(): form=form_factory(SQLField('plaats',requires=IS_NOT_EMPTY(),\ widget=lambda self, value:INPUT (_id='eventbyplace',_name='plaa

[web2py:19608] Re: dataTables and date

2009-04-12 Thread mdipierro
replace {{=event.datum}} with {{=db.event.datum.format(event.datum)}} happy Easter. Massimo On Apr 12, 10:12 am, annet wrote: > I have got the following model: > > db.define_table('event', >     SQLField('bedrijf', db.bedrijf, default='', notnull=True), >     SQLField('event', length=54, defau

[web2py:19607] dataTables and date

2009-04-12 Thread annet
I have got the following model: db.define_table('event', SQLField('bedrijf', db.bedrijf, default='', notnull=True), SQLField('event', length=54, default='', notnull=True), SQLField('datum', type='date', default='', notnull=True,), SQLField('einddatum', type='date'), SQLField(

[web2py:19606] Re: Flow of execution

2009-04-12 Thread jmvermeer
Thanks that was helpful. I followed your advice. Annet. --~--~-~--~~~---~--~~ 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