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 ##
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"
###
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
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'
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
&
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
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
> -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
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
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
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
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_
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
13 matches
Mail list logo