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

2010-04-06 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 wrote: > Hi pals, > > Havn't used cron feature for quite some while, and knowing it has been > under refactoring in recent several major versions of web2

[web2py] Re: Vim snippets for web2py

2010-04-06 Thread Benigno
Wow, big big thanks to Leonardo. Everything is in there... Muchas gracias. Benigno. On Apr 6, 4:27 am, DenesL 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 the API of web2py

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

2010-04-06 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 hardcro

[web2py] Re: GAE querying question.

2010-04-06 Thread Matt
Yup all good... Working now. Thanks again, Matt On Apr 7, 5:56 pm, Matt wrote: > Massimo, > > Ok Cool... Thanks for fixing it so quickly. > > Will checkout the trunk, > Matt > > On Apr 7, 5:29 pm, mdipierro wrote: > > > Thanks Matt, > > > it is a bug. I think I fixed it in trunk just now, but p

[web2py] Re: GAE querying question.

2010-04-06 Thread Matt
Massimo, Ok Cool... Thanks for fixing it so quickly. Will checkout the trunk, Matt On Apr 7, 5:29 pm, mdipierro wrote: > Thanks Matt, > > it is a bug. I think I fixed it in trunk just now, but please give it > a try. > > Massimo > > On Apr 6, 11:10 pm, Matt wrote: > > > I'm trying to use GAE w

[web2py] Re: web2py and windows binary need testers

2010-04-06 Thread Iceberg
Hi Massimo, I have just downloaded web2py "1.76.5 (2010-03-11 15:19:08)" from official download page. Turns out that one line of my old code is broken. import logging.handlers Then I found the binary build's library.zip contains not enough logging/*.pyc Please check it. Btw, this might be a

[web2py] Re: What is this mean?

2010-04-06 Thread mdipierro
can you open a regular python shell and run import os print os.path.abspath(os.path.join('applications/admin/','hello')) ? looks like a python issue, it cannot determine os.getcwd() On Apr 7, 12:23 am, drayco wrote: > I have web2py 1.76.5 with red hat 5.5 enterprise linux 5.5 at 64 bits. > I up

[web2py] Re: GAE querying question.

2010-04-06 Thread mdipierro
Thanks Matt, it is a bug. I think I fixed it in trunk just now, but please give it a try. Massimo On Apr 6, 11:10 pm, Matt wrote: > I'm trying to use GAE with web2py and I'm having a few small teething > problems. > > If I do the following: > > db.define_table('company', >     db.Field('name',

[web2py] What is this mean?

2010-04-06 Thread drayco
I have web2py 1.76.5 with red hat 5.5 enterprise linux 5.5 at 64 bits. I updated web2py and when I try to go to admin i got this error. What is this mean? Traceback (most recent call last): File "/home/drayco/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment F

[web2py] GAE querying question.

2010-04-06 Thread Matt
I'm trying to use GAE with web2py and I'm having a few small teething problems. If I do the following: db.define_table('company', db.Field('name', 'string')) db.define_table('shop', db.Field('company', db.company), db.Field('address', 'string')) company = db.company.insert(name = 'S

[web2py] Re: there is a git hg plugin

2010-04-06 Thread mdipierro
Thank you. I will look into this. Massimo On Apr 6, 6:27 pm, dspiteself wrote: > then to set it up. > > $ cd web2py # (a Mercurial repository) > $ hg bookmark -r default master # make a bookmark of master for > default, so a ref gets created > $ hg push git+ssh://@github.com:web2py/web2py.gi

[web2py] Re: recaptcha in LOAD not working

2010-04-06 Thread mdipierro
we had a recent thread about this with more details and the answer is, not always. There is some browser dependence as well. On Apr 6, 5:54 pm, Thadeus Burgess wrote: > I was under the impression that if the js code was in script tags it > would execute it when inserted into the DOM ? > > There i

[web2py] Re: GAE native types.

2010-04-06 Thread mdipierro
Good question. I do not know. Probably you lose the DAL layer but I am not sure. It probably depends on the specific case. Mind that gluon.contrib.gql.gae IS google.appengine.ext.db Massimo On Apr 6, 5:43 pm, Matt wrote: > Thanks :) I should have noticed that as well. > > Also one final questio

[web2py] Re: there is a git hg plugin

2010-04-06 Thread dspiteself
then to set it up. $ cd web2py # (a Mercurial repository) $ hg bookmark -r default master # make a bookmark of master for default, so a ref gets created $ hg push git+ssh://g...@github.com:web2py/web2py.git # assuming you use your old github account $ hg push you may have to delete the existing f

[web2py] Re: there is a git hg plugin

2010-04-06 Thread dspiteself
Run easy_install hg-git, then add make sure the following is in your ~/.hgrc: [extensions] hgext.bookmarks = hggit = On Apr 5, 6:08 pm, mdipierro wrote: > hmmm. I do not object but I do not want to do any extra work. I do not > use a client except the shell one. If you send me a script to do it,

Re: [web2py] Re: recaptcha in LOAD not working

2010-04-06 Thread Thadeus Burgess
I was under the impression that if the js code was in script tags it would execute it when inserted into the DOM ? There is always exec. -Thadeus On Tue, Apr 6, 2010 at 5:04 PM, mdipierro wrote: > Now I understand. The problem is not the ajax trap. The problem is > that browsers do not exec

[web2py] Re: GAE native types.

2010-04-06 Thread Matt
Thanks :) I should have noticed that as well. Also one final question. Is it possible to mix and match "app engine" specific code like: from google.appengine.ext import db class person(db,Expando): With the DAL? Or by doing this have I effectively lost the use of the DAL layer. Matt

[web2py] Re: second form.accepts returns false, and no custom classes in session variables

2010-04-06 Thread Yarko Tymciurak
On Apr 6, 4:38 pm, Kevin Butler wrote: > On Apr 2, 6:28 pm, mdipierro wrote: > > > #1 > > > form.accepts is a filter that moves request.vars into form.vars after > > parsing and also populates form.errors. accepts should never be called > > twice. Without getting into this, a class behavior (acc

[web2py] Re: recaptcha in LOAD not working

2010-04-06 Thread mdipierro
Now I understand. The problem is not the ajax trap. The problem is that browsers do not execute JS code in ajax loaded context. This is not a web2py issue but I can see the problem. Let me give this some thought. On Apr 6, 3:39 pm, Kuba Kucharski wrote: > Massimo, > > Isn't this the same issue? >

[web2py] Re: second form.accepts returns false, and no custom classes in session variables

2010-04-06 Thread Kevin Butler
On Apr 2, 6:28 pm, mdipierro wrote: > #1 > > form.accepts is a filter that moves request.vars into form.vars after > parsing and also populates form.errors. accepts should never be called > twice. Why do you want to do it? I am sure there is a different way to > achieve what you need. I ran into

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread Mengu
oh, it asks to create if it doesn't exist. it doesn't create automatically. On 6 Nisan, 22:10, "mr.freeze" wrote: > That works but you must confirm it at the command line. > > On Apr 6, 2:06 pm, Mengu wrote: > > > > > so python web2py.py -S newapp is working? > > > thanks by the way. i need this

Re: [web2py] Re: recaptcha in LOAD not working

2010-04-06 Thread Kuba Kucharski
Massimo, Isn't this the same issue? http://groups.google.com/group/web2py/browse_thread/thread/a907fdafd432636c?pli=1 -- 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

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread mr.freeze
That works but you must confirm it at the command line. On Apr 6, 2:06 pm, Mengu wrote: > so python web2py.py -S newapp is working? > > thanks by the way. i need this for my IDE's project creation. > > On 6 Nisan, 21:43, mdipierro wrote: > > > It should go in the comments. > > > I would not add

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread Mengu
so python web2py.py -S newapp is working? thanks by the way. i need this for my IDE's project creation. On 6 Nisan, 21:43, mdipierro wrote: > It should go in the comments. > > I would not add a new -g because we are running out of command line > options. > > Massimo > > On Apr 6, 12:55 pm, Kuba

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread mdipierro
It should go in the comments. I would not add a new -g because we are running out of command line options. Massimo On Apr 6, 12:55 pm, Kuba Kucharski wrote: > > You can also do 'python web2py.py -S newapp' and it will prompt to > > create the app if it doesn't exist > > shouldn't this go into p

[web2py] Re: custom registration form problem

2010-04-06 Thread mdipierro
I think we can fix in tools.py. Will look into it. On Apr 6, 10:09 am, salbefe wrote: > Hello, > > I'm trying to do my custom registration form. I have some problems > with the password_two field.In my custom registration form > form.custom.widget.password_two does not work (when it renders I get

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread mr.freeze
I think it should have both. On Apr 6, 12:55 pm, Kuba Kucharski wrote: > > You can also do 'python web2py.py -S newapp' and it will prompt to > > create the app if it doesn't exist > > shouldn't this go into python web2py.py -h in a "-S" section > ? > > or we could add new option "-g" (generate)

Re: [web2py] Re: Creating New Applications From Console

2010-04-06 Thread Kuba Kucharski
> You can also do 'python web2py.py -S newapp' and it will prompt to > create the app if it doesn't exist shouldn't this go into python web2py.py -h in a "-S" section ? or we could add new option "-g" (generate) witha description "creates new application" just wondering. -- Kuba -- You recei

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread mr.freeze
You can also do 'python web2py.py -S newapp' and it will prompt to create the app if it doesn't exist. On Apr 6, 12:05 pm, Kuba Kucharski wrote: > hi > > you don't need python to do that > you just have to create basic app folder structure > like here:http://gluonframework.wordpress.com/2010/03/

Re: [web2py] Creating New Applications From Console

2010-04-06 Thread Kuba Kucharski
hi you don't need python to do that you just have to create basic app folder structure like here: http://gluonframework.wordpress.com/2010/03/02/shell-only-web2py/ or just # cp welcome/ your_app/ -- Kuba On Tue, Apr 6, 2010 at 5:58 PM, Mengu wrote: > Hi, > > Is it possible to create new

[web2py] Creating New Applications From Console

2010-04-06 Thread Mengu
Hi, Is it possible to create new applications from console via web2py.py? -- 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+unsubs

[web2py] Re: custom registration form problem

2010-04-06 Thread salbefe
I have notice that the welcome application has the same problem. -- 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...@goog

[web2py] custom registration form problem

2010-04-06 Thread salbefe
Hello, I'm trying to do my custom registration form. I have some problems with the password_two field.In my custom registration form form.custom.widget.password_two does not work (when it renders I get a None value) and as I could read on other thread (on august 2009) it is said that "password_tw

[web2py] Re: Problem with MANY-MANY relationship

2010-04-06 Thread mdipierro
This can only be done if insert and delete is done via crud. crud.settings.create_onaccept = f crud.settings.update_onaccept = f crud.settings.delete_onaccept = f where f is any function that takes the submitted form. On Apr 6, 5:34 am, Ishbir wrote: > Thanks for your help, although I had to tw

[web2py] Re: Problem with MANY-MANY relationship

2010-04-06 Thread Ishbir
Thanks for your help, although I had to tweak the code to get it working. It finally works! Thank you. And by the way, do you know any way by which behaviours can be defined? For e.g. if a record is added, then do something, if record is deleted then do something. Can stuff like that be implemente

[web2py] Re: GAE native types.

2010-04-06 Thread mdipierro
my mistake: should be Field('name',gae.StringListProperty() ) #YES instead of Field('name',gae.StringListProperty ) #NO On Apr 5, 11:39 pm, Matt wrote: > Just had a quick look into gql.py and yes in the _create method around > line 214 I've got those lines you mentioned. > > I'm running web