[web2py:23313] UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 299: ordinal not in range(128)

2009-06-04 Thread NewBeen
Hi, Its me again, now when I put the code in the production(Linux box) server i get this error, but in the computer i use to develop(Windows xp) this don't happen. Here i leave the error some idea?? PS: I double check the charset in the database 10 time already :S # ERROR ##

[web2py:23584] Crud.create and Keep values

2009-06-08 Thread NewBeen
Greetings, How can i do this put keepvalues=True when i use the function crud.create() i already try: ### CODE ### form = crud.create('databasedp',onvalidation=lambda form:r(form)) def r(form): if form.accepts(request.vars,session,keepvalues=True): response.flash="Accept form" ###

[web2py:23591] Re: Crud.create and Keep values

2009-06-08 Thread NewBeen
efault/ index'}) ### But work fine in before this last update! On 8 Jun, 12:45, mdipierro wrote: > in thunk in 5 minutes > > crud.settings.keepvalues=True before calling crud.update() > > On Jun 8, 5:14 am, NewBeen wrote: > > > Greetings, > > > How ca

[web2py:21230] crud problems log events

2009-05-05 Thread NewBeen
Greetings I'm trying to log the events when a create a table with crud but i always get the same error my code is in the model crud.settings.logger=auth in the controller i try already @auth.requires_login() def customcreate(): form = crud.create('databasedp', log='Record %(id)s created'

[web2py:21266] Re: crud problems log events

2009-05-06 Thread NewBeen
Any news about this 8-) Thanks in advance Rui Gomes On 5 Maio, 16:16, mdipierro wrote: > It may be a bug. I will look into it and fix it tonight. > > On May 5, 10:21 am, NewBeen wrote: > > > Greetings I'm trying to log the events when a create a table with crud &

[web2py:21616] Re: crud problems log events

2009-05-11 Thread NewBeen
date if st_date!="All": q_date=db_date==st_date else: q_date=db_date==db_date if st_store!="All": q_store=db_store==st_store else: q_store=db_store==db_store if st_reason!="All": q_reason=db_reason==st_re

[web2py:22422] crud.create() get the id of last create record

2009-05-22 Thread NewBeen
I'm using the crud.create() function but i can not get the id of the last create record, I try to do like this in the controller ### CODE ### response.flash='last id is %s' % form.vars.id # Always return None --~--~-~--~~~---~--~~ You received this message

[web2py:22424] Re: crud.create() get the id of last create record

2009-05-22 Thread NewBeen
> -wes > > On Fri, May 22, 2009 at 1:18 PM, NewBeen wrote: > > > I'm using the crud.create() function but i can not get the id of the > > last create record, > > > I try to do like this in the controller > > > ### CODE ### > > > re

[web2py:22889] SyntaxError: Object exists and cannot be redefined

2009-05-29 Thread NewBeen
This is working fine but when i update to the last version in the svn start give this error Error traceback # Traceback (most recent call last): File "H:\python\web2py_win\web2py_source\svn\gluon\restricted.py", line 107, in restricted exec ccode in environment File

[web2py:22892] Re: SyntaxError: Object exists and cannot be redefined

2009-05-29 Thread NewBeen
t see any connection! On May 29, 2:38 pm, mdipierro wrote: > Just so that I understand, this works fine with 1.63 stable but not > 1.63 intrunk? > Seems like an odd error, can you email me your code so that I can do > some debugging? > > Massimo > > On May 29, 9:21 am, Ne

[web2py:22895] Re: SyntaxError: Object exists and cannot be redefined

2009-05-29 Thread NewBeen
ntaxError, 'Object exists and cannot be redefined' > > with > > raise SyntaxError, 'Object %s exists and cannot be redefined' % key > > and let me know what the error looks like. > > It would also be useful to know with some confidence if a change in > web2

[web2py:23103] Re: SyntaxError: Object exists and cannot be redefined

2009-06-02 Thread NewBeen
gt; > @auth.requires_login() > > def customread(): > >     id_order=request.args[0] > >     return dict(crudread=crud.read(db.databasedp, int(id_order))) > > > @auth.requires_login() > > def customupdate(): > >     id_order=request.args[0] > >     crud_

[web2py] Class in the session

2011-03-24 Thread NewBeen
Hello guys, I have this class in a model, Class Order: def __init__(self): self.basket={"product":{},"quantity":{}} def addProduct(self, Item): self.basket["product"]["name"]=item["name"] session.order=Order() So far so good, but when I execute this, the class is always