determine options
opts+=[OPTION(v,_value=k) for k,v in options]
return SELECT(*opts,**dict
(_id=id,_class=field.type,_name=field.name,value=value,requires=field.requires))
I hope one of you knows how to build this widget.
Kind regards,
Annet
puzzled as to why this:
if not (club or address or nfas): redirect(URL
(r=request,c='default',f='index'))
... doesn't prevent the ticket from being issued.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Just what I have been looking for, much appreciated.
Two questions (no crticism ;-) ): why don't image validators validate
file size. I would like the file size of an image not to exceed 50KB.
Why not validate images in JavaScript?
Kind regards,
Annet
regards,
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 this group, send email to
web2py+unsubscr
, address
and nfa all contain values
if (p and q and r) would accomplish that (1 and 1 and 1) evaluates to
true.
But that doesn't make any difference to the ticket being issued.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you
/div !-- cld_footer --
div id=closeWin
{{=INPUT(_type='button',_value='Venster
sluiten',_onclick=javascript:window.close())}}
/div !-- closeWin --
/div !-- cld_container --
/div !-- cld_page --
I hope this solves the problem your brought up.
Kind regards,
Annet
the correctness of the form.
Kind regards,
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 this group
does work?
Kind regards,
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 this group, send email
Where did you put this line of code;
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick=window.location='%s';%URL
(r=request,f='index')))
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Problem solved, I had to restart web2py from the terminal. Thanks for
your reply.
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
.
Kind regards,
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 this group, send email to
web2py
use from db.py. I do not foresee any
problem, am I overlooking something?
Kind regards,
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
Yarko,
Thanks for your reply, indeed I set the migrate=False.
Kind regards,
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
regards,
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 this group, send email to
web2py+unsubscr
,
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 this group, send email to
web2py+unsubscr
.date%29%3Afirst%3Avisble%22%29.focus%28%29pli=1
... and doesn't have anything to do with web2py_ajax.html.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post
doesn't return to the previous page.
What changed between those versions? How do I get this to work again?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post
It is not just the check to delete that doesn't work, when I update
the record and click submit the update isn't being executed either.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py
as does removing the first
part of the validator. How do I get this to work?
Kind regards,
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
Massimo,
Problem solved. Thanks.
By the way: I couldn't find a link on the web2py site to
bazaar.launchpad.net, did I overlook it or is it just not there?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
are similar
one another.
Kind regards,
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 this group
the next create form to keep the day and facility
i.e. Monday and Creche. Both fields are drop boxes.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post
dataTables being straightforward to use, Alan, just like
Massimo, answers your questions immediately.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group
']
=db.bedrijfactiviteit.activiteit.requires is Dutch for:
db.companyactivity.activity.widget['requires']
=db.companyactivity.activity.requires
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post
the values, whereas I only want to keep
specific values.
Kind regards,
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 solving this problem.
Kind regards,
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 this group, send
, in accepts
if fields[fieldname] != None:
KeyError: 'activity'
Kind regards,
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
=(URL(r=request,f=nxt)))
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick='javascript:history.go(-1)'))
return form
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
(r=request,f=nxt)))
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick='javascript:history.go
(-1)'))
return form
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py
...you mean a list of fields, correct? Anyway, that is what Annet is
asking for I think.
Yes, a list of fields that should keep their previous values when the
form reloads.
Something like keepvalues=[field2,field4]
Annet.
--~--~-~--~~~---~--~~
You received
I am using Xcode, not as beautiful an IDE as WingIDE, but it suits me.
When you're on OS X, NodeBox is fun to experiment with while you're
learning Python.
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
, original_filename)
AttributeError: 'SQLField' object has no attribute 'store'
Does that mean that I have to add a field store to my table
definition?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Massimo,
It looks to me you have a new version of globals.py but an old version
of sql.py. Is this possible?
Yes, after upgrading to version 1.65.7 the upload field worked.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you
:
level.image.aef56e3f826179e6.677265656e5f646f742e706e67.png is being
displayed. Why is that?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe
regards,
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 this group, send email to
web2py+unsubscr
on a production server the answer
to this question has become much more important.
I wonder whether it is a good idea to put the database model in the
init application and copy and paste it to the applications that make
use of the model and set migrate to False?
Best regards,
Annet
in the
query.
I hope one of you can point me in the right direction to get this
working.
Kind regards,
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email
a clue how to solve this problem...
Kind regards,
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
:
r='%s%s\n'%(r,row.region)
return r
Does this have anything do to with region being of type integer, if
so, how do I solve the problem, if not, why isn't this working?
Thanks,
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed
, but that would
introduce another if statement ...
I hope one of you can help me fix this flaws in the flow of execution.
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group
--
/div !-- primarycolumn --
the date reads like 2009-04-26. The html table above is linked with
the dataTables plugin on jQuery. Does one of you know how to get the
date formatted correctly in this case?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You
',label='Selecteer een sleutelwoord',requires=IS_IN_SET
(keywordlist))
I wonder whether there is another way to create a drop box in a
form_factory form.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
varies. Do you have any idea, how
to solve this problem?
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
also have
a field of type date which is not required, in this case leaving the
field empty results in the form not passing validation. How do I solve
this problem?
Furthermore, I have fields with an IS_MATCH() validator, does IS_MATCH
() implicate IS_NOT_EMPTY() as well?
Kind regards,
Annet
=club[0],address=address[0],nfas=nfas)
This function is not working, the error references the if statement, I
have been tinkering with it, but then, even though the status of a
club is not 0 the function redirects.
What am I doing wrong?
Best regards,
Annet
, and if so, how do I code the buttons?
Best regards,
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
,
line 722, in lambda
self._execute = lambda *a, **b: self._cursor.execute(*a,**b)
IntegrityError: duplicate key value violates unique constraint
superactiviteit_pkey
What is the cause of this behaviour?
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received
questions,
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 this group, send email to
web2py+unsubscr
In t2 you could do:
@t2.requires_login(next='login')
In tools.py
@auth.requires_login(next='../authtool/login')
doesn't work:
TypeError: requires_login() got an unexpected keyword argument 'next'
What's the equivalent of t2.requires_login(next='login') in tools.py?
Kind regards,
Annet
/login, but
there is no function user and args login. Whereas it should redirect
me to http://127.0.0.1:8000/mock/authtool/login I thought I would
solve this using the next attribute...
Kind regards,
Annet
--~--~-~--~~~---~--~~
You received this message because you
,
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 this group, send email to
web2py+unsubscr
login and membership of the group 'site'.
When do I use @auth.requires_permission() or auth.has_permission
('create','adres'):
In my case permissions do not reference a user.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you
' % repr(request.vars.get
(password,None)),error_message=self.messages.mismatched_password)))
besides, the password2 field doesn't display a label.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
with objects and
tables I don't want.
Why has this default behaviour been introduced with version 1.62rc2?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post
Is it possible to combine decorators using logical operators? e.g.
executing a function requires membership of the group 'site' or
membership of the group 'core'
@auth.requires_membership('site') OR auth.requires_membership('core')
Kind regards,
Annet
: SQLRows: no such row
So, if record==[]: is the cause of a syntax error, what is the correct
syntax of this statement?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group
In a view I defined the following link:
td
{{=A(row.adressoort,_href=URL(r=request,f='update_address',args=
[row.id]))}}
/td
I wonder whether it is possible to display the URL without the args
being displayed. I guess _method='post' doesn't work in case of an a
tag.
Kind regards,
Annet
='crud_address')))
return dict(form=form)
returns a form with a Check to delete check box. I wonder whether I
can use the crud.update() function without the check box showing up in
the form.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you
=lambda self,
value:INPUT
(_id='place',_name='plaats',_class='ac_input',_type='text')]
^
SyntaxError: invalid syntax
In the original trace-back the ^ sign is under the = sign of
widget=lambda.
Annet
.
Kind regards,
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 this group, send email to
web2py+unsubscr
:
if not record:
redirect(URL(r=request,f='crud_address'))
up in de code, but I am not sure where it should go to finally solve
this problem. If so, why did the current code partially solve my
problem.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You
wonder whether it is possible to add the
comment to the second column of the table instead of displaying it in
the third.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group
,label='Gemeente *
',default='',notnull=True,ondelete='RESTRICT'),
migrate=False)
...
db.plaats.gemeente.requires=IS_IN_DB(db, db.gemeente.id,'%(gemeente)
s')
... does the IS_IN_DB(..) suffice to prevent and empty field?
Annet.
--~--~-~--~~~---~--~~
You
, shipping
address.
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 this group, send email to
web2py
:%M:%S
When I insert an event using appadmin the calendar enter a datetime:
%d-%m-%Y %H:%M:%S
... instead of a date:
%d-%m-%Y
My code worked flawless in 1.61.4, what do I have to do to repair it
in 1.63?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received
properly?
Kind regards,
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 this group, send email to
web2py
the only one facing this problem? Is there a way
to solve it?
Kind regards,
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
Massimo,
On Mac OS X Leopard, your solution works. I noticed that you also
uploaded the welcome app, do I have to change anything in my existing
apps that are based on the previous welcome app?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received
Massimo,
Thanks, in that case I won't face any problems.
Kind regards,
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
.
Will I get this to work in web2py 1.63.1 or will I have to downgrade
to 1.61.4?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email
all flawless. In web2py 1.63.1 only core.py and
core_navigation work all right. When user 2 logs in both menu's are
displayed, however, every time user 2 navigates to one of the
functions in site.py a flash is displayed: Insufficient privileges.
Kind regards,
Annet
in version
1.63.5?
Kind regards,
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 this group, send email
= self.environment.session
NameError: global name 'response' is not defined
The latter results in a flash being displayed: Function disabled.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web
Massimo,
I resolved the behaviour issue myself. I provided the group_id instead
of the role, I changed the group_id to role and now it works as it did
before. I have no idea why group_id did not work.
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received
1609, in update
onvalidation=onvalidation):
KeyError: 'id'
Since the check to delete worked in version 1.61.4 I do not think the
error is caused by an error in our code.
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you
the command line run python web2py.py.
Do I have to add -upgrade to this command? Will my applications still
live in their respective folders?
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web
like:
baad9f5d408d4a2d4066d47905e9fddf_company.table. I wonder whether I
will run into trouble when I remove the first part of the generated
filename including the underscore, so that the filename will be
company.table.
Best regards,
Annet.
--~--~-~--~~~---~--~~
You
Massimo,
Thanks, I didn't encounter any problems renaming the files.
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
==db.companyLOB.company))
Furthermore, while reading the manual I came across the following
line:
thispage=db.(db.page.id==request.args[0]).select() [0]
and I wonder what the last [0] means.
Annet.
--~--~-~--~~~---~--~~
You received this message because you
there
are any downsides to using it.
Best regards,
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 this group
Thanks for your advise. I have just downloaded DataTables, and it's
exactly what I have been looking for.
Voltron, I guess my tables and column names gave away my nationality!
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you
=communication).
I suppose return
dict(club=clubs,address=addresses,communication=communication) will
have the same outcome.
Does one of you know what causes the TypeError: SQLSet object is
unindexable?
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received
Timothy,
Thanks for your reply, but what about opening a new window when
clicking an a/a element.
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email
Massimo,
Thanks, your reply solved my problem.
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
, whereas my layout view does have a head/head element, the
view in question does not. So, where do I insert the above script into
my code.
Is there anything else I should now about dataTables in web2py?
Thanks,
Annet.
--~--~-~--~~~---~--~~
You received this message
the $
(document).ready(function() {}) and insert the $
('#example').dataTable(); in there.
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
Massimo,
But what about the !-- --, doesn't that mean everything in between
this is commented out?
So basically I could just put my $('#example').dataTable(); line of
code right after the $(document).ready(function() { ...
in web2py_ajax.html.
Annet
out of curiosity,
are you a Germany based developer? I am learning Python from two books
written by Michael Weigend.
Best regards,
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group
of
the search.
I am looking forward to your answers to these questions.
Best regards,
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
question is: if it is possible, how do I implement auto-complete
functionality in a form_factory form. I think I save myself a lot of
trouble using form_factory forms instead of html forms, because
form_factory forms are self-aware.
Best regards,
Annet
the one on the production server. When I redeploy my application on
the production server, the files that make up the model match my
development database, but not my production database. How does web2py
deal with these differences?
I hope one of you can reassure me.
Best regards,
Annet
return dict(form=form,clubs=clubs)
UnboundLocalError: local variable 'clubs' referenced before assignment
I do understand why it does but I do not know how to solve this
problem. I hope one of you does.
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received
,'training.training','%
(training)s')),
,however, this line results in an error, does one of you know how to
implement a drop down list in FORM?
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py
, but it isn't. I hope providing you with the code, helps solve
this problem.
Best regards,
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
Massimo,
I finally solved this problem, thanks for your help.
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
Massimo,
I solved this problem building the form in form_factory.
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
Massiomo,
Indeed I have notnull columns without defaults, I had a look at them
and for most of them I cannot think of a suitable default, so I wonder
whether setting the default with an empty string will suffice to solve
the problem.
Annet
'
clubs=[]
return dict(form=form,clubs=clubs)
I do not know much about JavaScript and AJAX, so your help is much
appreciated.
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group
('ctl_that_returns_plaatsnaamlist',
['plaatsnaam'],'plaatsnaamlist')),DIV(_id=plaatsnaamlist)
In the web2py manual, Massimo mentions a jQuery auto-complete plugin,
at the jQuery site I found 4 of them, however, I haven't got a clue
whether I am better of using a plugin than using a widget , what do
you think?
Annet
, just the plaatsnaam will do, I guess the
implementation will be a bit easier than what you describe in your
post on the pengoworks auto-complete.
Best regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
301 - 400 of 1573 matches
Mail list logo