[web2py] Re: GAE querying question.

2010-04-07 Thread Matt
Yup all good... Working now. Thanks again, Matt On Apr 7, 5:56 pm, Matt mjwat...@gmail.com wrote: Massimo, Ok Cool... Thanks for fixing it so quickly. Will checkout the trunk, Matt On Apr 7, 5:29 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thanks Matt, it is a bug. I think I fixed

[web2py] Cron: Disabled because no file locking (on Windows)

2010-04-07 Thread Iceberg
Hi pals, Havn't used cron feature for quite some while, and knowing it has been under refactoring in recent several major versions of web2py. Today I try to pick it up, but then notice a warning message keeps showing up on console. C:web2py -a1 WARNING:root:no file locking Starting

[web2py] Re: Vim snippets for web2py

2010-04-07 Thread Benigno
Wow, big big thanks to Leonardo. Everything is in there... Muchas gracias. Benigno. On Apr 6, 4:27 am, DenesL denes1...@yahoo.ca wrote: Leonardo Vidarte, one of the users in the spanish language group, has created some snippets [0] for Vim, for the snipMate plugin [1] to be exact, with all

[web2py] Re: Cron: Disabled because no file locking (on Windows)

2010-04-07 Thread mdipierro
You need to install the win32 extensions. web2py without sessions may cause data loss if you store data in sessions. On Apr 7, 1:21 am, Iceberg iceb...@21cn.com wrote: Hi pals, Havn't used cron feature for quite some while, and knowing it has been under refactoring in recent several major

[web2py] Re: Flatpages plugin

2010-04-07 Thread selecta
I like it alot but how do I create new wiki pages? On Apr 6, 6:32 am, Mariano Reingart reing...@gmail.com wrote: Hi, attached is plugin_flatpages, a dynamic wiki/html user editable pages plugin. It supports:  * page edition by users (in the same page)  * page history  * preview  * format

[web2py] Re: Vim snippets for web2py

2010-04-07 Thread Doxaliber
Fantastic! Thank you! On 7 Apr, 08:25, Benigno bca...@albendas.com wrote: Wow, big big thanks to Leonardo. Everything is in there... Muchas gracias. Benigno. On Apr 6, 4:27 am, DenesL denes1...@yahoo.ca wrote: Leonardo Vidarte, one of the users in the spanish language group, has

[web2py] Re: recaptcha in LOAD not working

2010-04-07 Thread DenesL
Hi selecta, can you send me a test app?. I have been testing and documenting ajax in web2py 1.76.3 in my spare time. Which jQuery, browser and web2py versions are you using?. On Apr 5, 5:05 pm, selecta gr...@delarue-berlin.de wrote: I tried to use Recaptcha in a LOAD div but I does not work

[web2py] Re: Problem with MANY-MANY relationship

2010-04-07 Thread Ishbir
What you mentioned is only for crud forms. Isn't there anything like a database wide on add/remove/update function definition? If no, don't you think it would be good to implement it? For e.g. say I have tags and tag count. I want to increment tag count on each post update/ addition/removal. That

[web2py] How to install and run web2py on Jython ?

2010-04-07 Thread JC11
Hello, Are there instructions anywhere for installig and running web2py on Jython ? A few questions I have so far: + which version of web2py (source code ?) + how and where to install database drivers ? - my attempt fails to find psycopg2. Does one use python db drivers or java drivers ?

Re: [web2py] How to install and run web2py on Jython ?

2010-04-07 Thread Kuba Kucharski
Hi, here they are: http://web2py.com/book/default/section/12/9 + use newest stable -- Kuba -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread JC11
Thanks, I am sure I searched in the 'book', how silly of me not to find it. What about Oracle and Jython ? The last line of the entrie reads: 'You will be able to use DAL('sqlite://...') and DAL('postgres://...') only.' John C. On Apr 7, 11:54 am, Kuba Kucharski kuba.kuchar...@gmail.com

[web2py] Can't download file with IE8

2010-04-07 Thread szimszon
Hello, I have an Internet Explorer cannot download ...f783273687326762357523675236785237623786.pdf from some domain. Internet Explorer was not able to open this Internet site. The requested site is either unavailabla or cannot be found. Please try again later. With Chrome and FF it works. The

Re: [web2py] Can't download file with IE8

2010-04-07 Thread Timothy Farrell
Are you on a HTTPS connection? On 4/7/2010 6:29 AM, szimszon wrote: Hello, I have an Internet Explorer cannot download ...f783273687326762357523675236785237623786.pdf from some domain. Internet Explorer was not able to open this Internet site. The requested site is either unavailabla or

[web2py] Re: Can't download file with IE8

2010-04-07 Thread szimszon
yes On ápr. 7, 14:50, Timothy Farrell tfarr...@swgen.com wrote: Are you on a HTTPS connection? On 4/7/2010 6:29 AM, szimszon wrote: Hello, I have an Internet Explorer cannot download ...f783273687326762357523675236785237623786.pdf from some domain. Internet Explorer was not

[web2py] Re: Problem with MANY-MANY relationship

2010-04-07 Thread mdipierro
Right now the DAL does not provide it because the goal is to keep it as close as possible to SQL layer. Nevertheless you have a good point and I would like to see a few proposals for possible API extension. On Apr 7, 5:33 am, Ishbir ishbi...@gmail.com wrote: What you mentioned is only for crud

[web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread mdipierro
Some people have reported problems with Jython due to a bug in Java regex. I tried Jython2.5rc2 and it worked for me. Let us know. On Apr 7, 6:14 am, JC11 john.c...@gmail.com wrote: Thanks, I am sure I searched in the 'book', how silly of me not to find it. What about Oracle and Jython ?  The

[web2py] Re: Can't download file with IE8

2010-04-07 Thread mdipierro
Are you using 1.76.5 or earlier and the built-in web server? that is known to truncate large files over https. You should now have that problem with the web2py in trunk which uses rocket or if you use another web server. On Apr 7, 8:09 am, szimszon szims...@gmail.com wrote: yes On ápr. 7,

[web2py] prevent sqltable from clipping longs text in table cell

2010-04-07 Thread neo
its pretty basic but i cant seem to find a way to prevent SQLTABLE from clipping long text in a table cell. it just shows first 16 characters. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: prevent sqltable from clipping longs text in table cell

2010-04-07 Thread mdipierro
SQLTABLE(,truncate=1024) On Apr 7, 9:51 am, neo utkarsh.a.mung...@gmail.com wrote: its pretty basic but i cant seem to find a way to prevent SQLTABLE from clipping long text in a table cell. it just shows first 16 characters. -- You received this message because you are subscribed to the

[web2py] Re: Can't download file with IE8

2010-04-07 Thread szimszon
I use 1.76.5 and mod_wsgi... But the question about ssl... hmmm... I'll try some trick with IE8 to accept the cert first :-D I'll report back... On ápr. 7, 16:15, mdipierro mdipie...@cs.depaul.edu wrote: Are you using 1.76.5 or earlier and the built-in web server? that is known to truncate

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 7:14 AM, mdipierro wrote: Some people have reported problems with Jython due to a bug in Java regex. I tried Jython2.5rc2 and it worked for me. Let us know. One or two of the regex patches a while back (URL checking IIRC) was aimed at preventing excessive backtracking under

Re: [web2py] Re: Vim snippets for web2py

2010-04-07 Thread Thadeus Burgess
This is nice! I should learn how to use vim :P Could anybody convert this to a gedit snippet? -Thadeus On Wed, Apr 7, 2010 at 5:02 AM, Doxaliber salingro...@gmail.com wrote: Fantastic! Thank you! On 7 Apr, 08:25, Benigno bca...@albendas.com wrote: Wow, big big thanks to Leonardo.

[web2py] UTF-8 on a JSON request

2010-04-07 Thread Tito Garrido
Hi folks, I'm using extjs (www.extjs.com) to build a form and when I'm getting the json request to fill it I can't get accented characters. I'm not sure if this is something that I should configure on web2py or on extjs... it's only occurring when I fill the form using json. Anybody got a similar

[web2py] When and how to use command line option -f FOLDER?

2010-04-07 Thread Iceberg
Hi, do you pals know when and how to use command line option -f FOLDER? I hope to hear some experience. My major web2py develop environment used to be a web2py source version freshly from latest trunk, on Windows XP, but without win32 extention (why bothers). But today I have to use a web2py

Re: [web2py] UTF-8 on a JSON request

2010-04-07 Thread Vasile Ermicioi
don;t know if it helps, but when I used php the problems was solved only by changing file encoding from ANSI to utf-8, try to change controller file encoding -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread JC11
I am getting the dreaded error: RuntimeError: maximum recursion depth exceeded I am using web2py vsn. 1.76.5, jython version 2.5.1 on Windows XP. I have altered the web2py 'welcome' application defaault controller to: return 'Hello World' rather than return dict(message=T('Hello World')).

Re: [web2py] When and how to use command line option -f FOLDER?

2010-04-07 Thread Thadeus Burgess
In windows if you are using NTFS there is something called a Junction Point which is a hard link. It works like linux `ln`. http://en.wikipedia.org/wiki/NTFS_junction_point You have to BE CAREFUL, hard links work like folders! If you delete a hard link, you delete the file You have to delete

[web2py] Web2Py Database Web Interface

2010-04-07 Thread cesmiga
All: At one time I thought I saw a project available for a Web2Py Database Web Interface. Does anyone know if one exists? Thanks. Christopher -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 9:55 AM, JC11 wrote: I am getting the dreaded error: RuntimeError: maximum recursion depth exceeded I am using web2py vsn. 1.76.5, jython version 2.5.1 on Windows XP. I have altered the web2py 'welcome' application defaault controller to: return 'Hello World'

Re: [web2py] Re: Flatpages plugin

2010-04-07 Thread Mariano Reingart
On Wed, Apr 7, 2010 at 4:57 AM, selecta gr...@delarue-berlin.de wrote: I like it alot but how do I create new wiki pages? You could create a wiki function in controller default.py: def wiki(): return plugin_flatpage() And then, create pages under that controller/function (args[0] is the page

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
Traceback (most recent call last): File /home/tburgess/Applications/web2py/gluon/restricted.py, line 173, in restricted exec ccode in environment File /home/tburgess/Applications/web2py/applications/pms/views/default/index.html, line 62, in module thead File

[web2py] submit record row col3

2010-04-07 Thread Jonathan Lundell
OK, I'm feeling too lazy to look this up, and I'm hoping someone will just tell me. How do I inject text into the col3 TD of the submit_record_row of an SQLFORM? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email

Re: [web2py] Re: Can't download file with IE8

2010-04-07 Thread Timothy Farrell
IE has a cache problem with HTTPS. I don't use the download function but this would apply if the download function doesn't handle it. I have this in my code in several places: # Die IE! Die! Die! Die! # ( http://support.microsoft.com/kb/323308 ) response.headers['Pragma']=private

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread John Cobo
I have not written any regular expressions. So far I am just trying to run the web2py welcome app. The only reg. exp. is what creates the welcome page view. Thanks. On 7 Apr 2010 19:29, Jonathan Lundell jlund...@pobox.com wrote: On Apr 7, 2010, at 9:55 AM, JC11 wrote: I am getting the

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread mdipierro
need more info On Apr 7, 1:36 pm, Thadeus Burgess thade...@thadeusb.com wrote: Traceback (most recent call last):   File /home/tburgess/Applications/web2py/gluon/restricted.py, line 173, in restricted     exec ccode in environment   File

[web2py] Re: submit record row col3

2010-04-07 Thread mdipierro
form[0][-1][2][0].append('I think this is right') there may be a more elegant way On Apr 7, 1:59 pm, Jonathan Lundell jlund...@pobox.com wrote: OK, I'm feeling too lazy to look this up, and I'm hoping someone will just tell me. How do I inject text into the col3 TD of the submit_record_row

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 12:44 PM, John Cobo wrote: I have not written any regular expressions. So far I am just trying to run the web2py welcome app. The only reg. exp. is what creates the welcome page view. No traceback? Thanks. On 7 Apr 2010 19:29, Jonathan Lundell jlund...@pobox.com

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
It comes from the line db.TableB[value].name -Thadeus On Wed, Apr 7, 2010 at 3:19 PM, mdipierro mdipie...@cs.depaul.edu wrote: need more info On Apr 7, 1:36 pm, Thadeus Burgess thade...@thadeusb.com wrote: Traceback (most recent call last):   File

Re: [web2py] UTF-8 on a JSON request

2010-04-07 Thread Tito Garrido
How can I change the controller file encoding? Regards, Tito On Wed, Apr 7, 2010 at 12:50 PM, Vasile Ermicioi elff...@gmail.com wrote: don;t know if it helps, but when I used php the problems was solved only by changing file encoding from ANSI to utf-8, try to change controller file

[web2py] enum types

2010-04-07 Thread Thadeus Burgess
Does the DAL support database ENUM types? -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

Re: [web2py] enum types

2010-04-07 Thread Kuba Kucharski
hi, thadeus there was whole thread about this: http://www.mail-archive.com/web2py@googlegroups.com/msg10329.html -- Kuba On Wed, Apr 7, 2010 at 10:55 PM, Thadeus Burgess thade...@thadeusb.com wrote: Does the DAL support database ENUM types? -Thadeus -- You received this message

Re: [web2py] enum types

2010-04-07 Thread Thadeus Burgess
This is necessary for connecting to a legacy MySQL database. -Thadeus On Wed, Apr 7, 2010 at 4:06 PM, Kuba Kucharski kuba.kuchar...@gmail.com wrote: hi, thadeus there was whole thread about this: http://www.mail-archive.com/web2py@googlegroups.com/msg10329.html -- Kuba On Wed,

[web2py] Re: GAE querying question.

2010-04-07 Thread howesc
THANKS matt and massimo!! i did not report this cause i thought it was not supported on GAE! you guys just made my week! cfh On Apr 6, 11:10 pm, Matt mjwat...@gmail.com wrote: Yup all good... Working now. Thanks again, Matt On Apr 7, 5:56 pm, Matt mjwat...@gmail.com wrote: Massimo,

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Timothy Farrell
I've looked at this problem extensively and I'm convinced that the solution is to re-implement template.py without complicated regexps or remove the claim of Jython support. The exact problem is related to the size of a view that is run through the template module. The re_strings as it is

[web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread mdipierro
And I do not think Oracle will do a better job at it. On Apr 7, 4:28 pm, Timothy Farrell tfarr...@swgen.com wrote: I've looked at this problem extensively and I'm convinced that the solution is to re-implement template.py without complicated regexps or remove the claim of Jython support. The

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread mdipierro
This db.TableA.id_TableB.represent = lambda value: %s % db.TableB[value].name should be db.TableA.id_TableB.represent = lambda value: (db.TableB[value] or {}).get('name','anonymous') On Apr 7, 1:36 pm, Thadeus Burgess thade...@thadeusb.com wrote: Traceback (most recent call last):  

[web2py] Re: What is this mean?

2010-04-07 Thread drayco
Good afternoon Dr.Massimo: I fixed the problem. Previously I had done the following: I Removed web2py I downloaded and unzipped all I passed my application But I forgot to stop the previous process of web2py And I only restarted this process and it recovered, and now, everything works well. On

[web2py] Re: What is this mean?

2010-04-07 Thread drayco
Good afternoon Dr.Massimo: I fixed the problem. Previously I had done the following: I Removed web2py I downloaded and unzipped all I passed my application But I forgot to stop the previous process of web2py And I only restarted this process and it recovered, and now, everything works well. On

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 2:28 PM, Timothy Farrell wrote: I've looked at this problem extensively and I'm convinced that the solution is to re-implement template.py without complicated regexps or remove the claim of Jython support. The exact problem is related to the size of a view that is run

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
No. For dal.py to be accepted it has to work exactly like sql.py Therefore I cannot make ANY code changes if we want a new DAL. -Thadeus On Wed, Apr 7, 2010 at 5:31 PM, mdipierro mdipie...@cs.depaul.edu wrote: This    db.TableA.id_TableB.represent = lambda value: %s %

[web2py] Trouble starting web2py

2010-04-07 Thread Alexei Vinidiktov
Hello, I'm having trouble starting web2py.py on my local machine. I'm using web2py 1.76.5, Python 2.5.4 on Windows 7. I have simplejson 2.1.1 installed in site-packages. If I remove it, web2py.py launches fine. Here's the traceback: Traceback (most recent call last): File

[web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread mdipierro
Do you still have the patch. I remember applying one patch from you and rejecting one that I thought would break certain expressions. If you resend it I will double check. On Apr 7, 7:43 pm, Jonathan Lundell jlund...@pobox.com wrote: On Apr 7, 2010, at 2:28 PM, Timothy Farrell wrote: I've

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 6:33 PM, mdipierro wrote: Do you still have the patch. I remember applying one patch from you and rejecting one that I thought would break certain expressions. If you resend it I will double check. You applied the patch to test_template.py, which was also broken. I need to

[web2py] Re: When and how to use command line option -f FOLDER?

2010-04-07 Thread Iceberg
Thanks for the tip, I'll consider it. But it seems dangerous. BTW, what on earth is the web2py.py -f FOLDER for? -Iceberg On Apr8, 1:03am, Thadeus Burgess thade...@thadeusb.com wrote: In windows if you are using NTFS there is something called a Junction Point which is a hard link. It works

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 6:40 PM, Jonathan Lundell wrote: On Apr 7, 2010, at 6:33 PM, mdipierro wrote: Do you still have the patch. I remember applying one patch from you and rejecting one that I thought would break certain expressions. If you resend it I will double check. You applied the

Re: [web2py] Re: How to install and run web2py on Jython ?

2010-04-07 Thread Jonathan Lundell
On Apr 7, 2010, at 6:48 PM, Jonathan Lundell wrote: On Apr 7, 2010, at 6:40 PM, Jonathan Lundell wrote: On Apr 7, 2010, at 6:33 PM, mdipierro wrote: Do you still have the patch. I remember applying one patch from you and rejecting one that I thought would break certain expressions. If

[web2py] Re: Trouble starting web2py

2010-04-07 Thread mdipierro
Can you as web2py to print the sys.path? On Apr 7, 8:26 pm, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: Hello, I'm having trouble starting web2py.py on my local machine. I'm using web2py 1.76.5, Python 2.5.4 on Windows 7. I have simplejson 2.1.1 installed in site-packages. If I

[web2py] Re: When and how to use command line option -f FOLDER?

2010-04-07 Thread mdipierro
It should do what you expect but it is possible it is broken since nobody uses it. I will take a look. massimo On Apr 7, 8:44 pm, Iceberg iceb...@21cn.com wrote: Thanks for the tip, I'll consider it. But it seems dangerous. BTW, what on earth is the web2py.py -f FOLDER for? -Iceberg On

Re: [web2py] Re: Trouble starting web2py

2010-04-07 Thread Alexei Vinidiktov
I'm not sure I used the right way to obtain the path. I just stuck these lines in the welcome app's default/index.html view to get the sys.path: {{import sys}} {{=sys.path}} The simplejson library is located at: C:\Python25\Lib\site-packages\simplejson-2.1.1-py2.5-win32.egg I installed it via

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
I am defining this function. db.define_table('person', Field('name')) db.define_table('dog', Field('nickname'), Field('owner', db.person)) db.dog.owner.represent = lambda value: %s % db.owner[value].name This works in sql.py This does not work in dal.py You said you made changes, I tested,

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Massimo Di Pierro
I assume it is db.dog.owner.represent = lambda value: %s % db.person[value].name The stacktrace you get is because one of your records has owner==None hence db.person[value] is also None and None has no .name. It is not a bug. You are doing different queries or using different datasets.

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Massimo Di Pierro
I guess my question is why does it not throw an exception in sql.py? It should since db.dog.owner.represent = lambda value: %s % db.person[value].name when called with value==None should always result in the error you see in dal.py. Can you help me debug this? My problem is not why it

[web2py] Re: When and how to use command line option -f FOLDER?

2010-04-07 Thread Iceberg
Thanks in advance! And after that, please come back and confirm which folder is needed for this option, is it -f /home/another_web2py or -f /home/another_web2py/applications -iceberg On Apr8, 10:33am, mdipierro mdipie...@cs.depaul.edu wrote: It should do what you expect but it is possible

Re: [web2py] Re: Trouble starting web2py

2010-04-07 Thread Alexei Vinidiktov
Thanks, Massimo. I've replaced the lines that you cited in your email in encoder.py. In decoder.py there were only these lines: from scanner import make_scanner try: from simplejson._speedups import scanstring as c_scanstring except ImportError: c_scanstring = None I replaced the try:

[web2py] Re: When and how to use command line option -f FOLDER?

2010-04-07 Thread mdipierro
I only took a quick look and I think I fixed it but please take a second look. The syntax is: -f /home/another_web2py Massimo On Apr 7, 11:30 pm, Iceberg iceb...@21cn.com wrote: Thanks in advance! And after that, please come back and confirm which folder is needed for this option, is it  

[web2py] Re: Trouble starting web2py

2010-04-07 Thread mdipierro
another possible issue is that this is the order of your sys.path 'C:\\Python25\\lib\\site-packages', '../gluon', while I'd be more comfortable with '../gluon', 'C:\\Python25\\lib\\site-packages' you can try change in web2py.py if not path in sys.path: sys.path.append(path) os.chdir(path)