being a
problem, because it can easily be restyled: www.fitwise.nl/init/eventlis/bydate
Kind regards,
Annet.
> If there is any open that I missed please ping me.
http://groups.google.com/group/web2py/browse_thread/thread/5702475cd1256677/e5e07824cff40403#e5e07824cff40403
Kind regards,
Annet.
> I like the old one better. This is too busy. Everything looks exactly the
> same. Leads to much confusion on where things I need are.
That's what I thought, so I agree with Thadeus.
Annet.
It's smaller when you build your own download, that's what I did when
I just needed the tabs.
Annet.
Yes, especially when you have a look at how this thread started ...
LOL
Kind regards,
Annet
there a way to solve this problem?"
Could this problem be solved using markmin?
Regards,
Annet
efine a table
in the second application called myTimetable which stores the
company_id and the contents of the two drop boxes and then base the
rendering of a personalized timetable on these data?
Kind regards,
Annet.
oblem ...
Kind regards,
Annet.
Massimo,
Thanks, for taking the time to answer my questions. Now that I know
it's possible, I'll take up building the two apps that each have
different ways of access control.
Kind regards,
Annet
"/Library/Python/2.5/site-packages/web2py_1.87.3/applications/
init/views/locator/businesscard.html", line 45
response.write(IMG(_src=URL(r=request,a='base',c='static',f='base/
card/logos/' + logo[0].link) _width="228px"))
SyntaxError: invalid syntax
The ^ sign is under the h of _width="228px"
Does one of you know the correct syntax?
Kind regards,
Annet.
able to set vertical-align on an img.
Kind regards,
Annet.
@Bruno,
Thanks for providing me with a working solution.
@Denes,
Thanks for explaining me why I got this error.
Kind regards,
Annet.
On Nov 10, 3:20 pm, DenesL wrote:
> Annet, allow me a little explanation on why you got SyntaxError:
> keyword can't be an expression.
> w
Hi Matt,
The IS_IN_SET() should read:
IS_IN_SET([(True,'Yes'),(False,'No')])
Kind regards,
Annet.
h adjustment do I
have to make to get this to work 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@go
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
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 this
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
, every time user 2 navigates to one of the
functions in site.py a flash is displayed: Insufficient privileges.
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 mess
2py this worked 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,
in. Whereas I set
auth.settings.login_next=URL(r=request,c='core',f='index')
Is it possible that the issue described below has something to do
with
the user only being allowed to be a member of one group?
- Show quoted text -
Kind regards,
Annet.
--~--~-~--~~-
File "/Library/Python/2.5/site-packages/web2py_1_63_5/gluon/
tools.py", line 1609, in update
onvalidation=onvalidation):
KeyError: 'id'
Is it possible to revert to the tools.py of version 1.61.4 in version
1.63.5?
Kind regards,
Annet.
--~--~-~--~~-
63_5/gluon/
tools.py", line 895, in retrieve_username
session = self.environment.session
NameError: global name 'response' is not defined
The latter results in a flash being displayed: Function disabled.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You re
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
ython/2.5/site-packages/web2py_1_63_5/gluon/
tools.py", line 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.
--~--~-~--~-
crud record
{{for record in records:}}
{{=record.straat}}
{{=record.huisnummer}}
{{=record.huisnummerextensie}}
{
Massimo,
I sent you a minimal mock app to illustrate the problem. I hope it
works an helps you locate the problem and fix it.
Kind regards,
Annet.
P.S.
I am afraid your profile suffers from the same issue I draw your
attention to in this post:
http://groups.google.com/group/web2py
Massimo,
I sent you a minimal mock app to illustrate the problem. I hope it
works an helps you locate the problem and fix it.
Kind regards,
Annet.
P.S.
I am afraid your profile suffers from the same issue I drew your
attention to in this post:
http://groups.google.com/group/web2py
Massimo,
I just tested the check to delete functionality based on r1006, and it
passe all tests. Thanks for fixing this issues.
Which adjustments did you make to the welcome app I based my
applications on?
Kind regards,
Annet
--~--~-~--~~~---~--~~
You
: http://127.0.0.1:8000/admin/default/design/cms,
instead of core/index
I also bookmarked the login page. When I login I am redirect to core/
index. However, when I logout and login again, I am redirected to
default/index.
So only when I login from outside web2py the login_next works
correc
name
response.flash = self.messages.function_disabled
NameError: global name 'response' is not defined
... and in case of retrieve_password in a flash: function disabled.
What change in 1.63.5 causes these settings to no longer work.
Kind regards,
Annet
--~--~-~--~
Marco,
Did you test this in Sqlite:
db.define_table('table',
db.Field('field',...,ondelete='RESTRICT'),
migrate='table.table')
It does set the ON DELETE to RESTRICT in the foreign key constraint in
Postres.
Annet.
--~--~-~--~~--
ueryui.com/demos/datepicker/
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 f
Massimo,
Uncommenting auth.settings.mailer=mail solved the 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@google
Massimo,
No, you're right, however, I prefer a more straightforward date-picker
to the awkward date- and date-time-picker.
Kind regards,
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web
stent with this behavior. Am I wrong?
No, you are right. What I would like is web2py to always go to the
page set in login_next , so its behaviour is consistent, and not
dependent on being redirected or not.
I hope this can be fixed.
Annet.
--~--~-~--~~~---~--
months, restricting the date
range etc ;-)
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 un
Peter,
Aren't you facing the same problem as I am:
http://groups.google.com/group/web2py/browse_thread/thread/d5083ed08c685e34
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web
I am using NicEdit:
http://nicedit.com/
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
mode
...out, without me providing any clues. Actually I don't.
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@g
Massimo,
I tried the version in trunk. Problem solved, thanks!
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
ncie" violates foreign
key constraint "gemeente_provincie_fkey" on table "gemeente"
DETAIL: Key (id)=(1) is still referenced from table "gemeente".
Isn't displaying a warning message just a matter of 'translating' this
error ticket into a resp
.bedrijf==auth.user.bedrijf)&
(db.openingstijd.dag==db.dag.id))\
.select(db.openingstijd.ALL,db.dag.dag,orderby=db.openingstijd.dag|
db.openingstijd.van_tijd)
return dict(form=form,records=records)
Version r1016 did not break this functionality.
Kind regards,
Annet.
--~--~-~
k, or am I overlooking something that will cause this to
break.
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
k, or am I overlooking something that will cause this to
break. What about moving the static files the applications have in
common to a location outside the applications? What would be the best
location?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message b
/html
Is there a way to fix this?
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 g
I do not know if it is a copy and paste error, but did not you forget
the closing tag.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to
idth=600');
if (window.focus) clubdetailswindow.focus();
return false;
}
In Safari this works flawless, In Firefox the master view works,
however, when I click a link in the table a new browser window opens,
displaying an empty page, no URL, not resized, ...
Kind regards,
Annet.
--~--~
cations folder. I do not
know if this is the right way to proceed, but is works...
Kin regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, se
s=[IS_NOT_EMPTY(),IS_NOT_IN_DB
(db,'provincie.provincie',error_message=T('provincie already in
database'))]
... the notnull=True would be covered at web2py form level by the
IS_NOT_EMPTY() and the unique=True by the IS_NOT_IN_DB(..) validator.
ank' and removed the 'return false';
I do not know why I had to remove 'return false', I got the
information from:
http://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received
es=self.requires)))
This prevents the field from being empty but it does not prevent the
user from adding a duplicate value.
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framew
ions folder. I do not
know if this is the right way to proceed, but is works...
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this
ould. That statement was the work around.
I put the return false back to were it was, and it still works in
Safari and Firefox. So, as a reference this:
http://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow
is not a indicative.
Thanks for pointing
-packages/web2py_1_63_5/applications/
demo/views/site/index.html", line 46
response.write(A('{{=response.companyname)\nresponse.write
('\',_href=URL(r=request,f=\'index\'))}}\n \n \n',escape=False)
^
SyntaxError: unexpected character after line cont
Hans,
Thanks. Problem solved.
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 g
e controllers would solve the
problem, but that would make the whole thing less generic, because in
my view I have:
{{=A(session.comname,_href=URL(r=request,f='index'))}}
I don't see how to solve this problem. I hope one of you does.
Kind regards,
Annet.
--~--~-~--~~--
ion results in an error ticket being issued:
SyntaxError: invalid syntax. I tested the entire controller, the
syntax error is in the given line of code. What is the correct syntax?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you a
Massimo,
Thanks, something else though, how do I increase request.now by 2
months?
db.event.fromdate<=request.now + 2 months
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"we
Massimo,
Thanks, for providing me with the plus_two_months(da) function.
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email
ll these cases the correct comname was displayed. I hope this
justifies the conclusion that my controllers work. If I am overlooking
anything, please let me know.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
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
Massimo,
I tried request.now and it works. Thanks.
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 u
.
As I said, I gave this some thought, in Postgres the sequences are set
to a maximum of 9223372036854775807, so I don't think there is a need
to fill the gaps.
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
RL is displayed as
well, in Safari it is not.
I know I need the return false for IE's sake, how do I solve the
problem in Firefox?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py
details window: http://127.0.0.1:8000/demo/site/eventdetails/2
In Safari the address in the master window reads like:
http://127.0.0.1:8000/demo/site/eventlist
and in the details window it doesn't display, because of the
attributes in the window.open()
ct formulier',_href=URL(r=request,f='contact'))}}
which is displayed as it is, not as a link. What is the correct syntax
to get the link displayed as a link.
Kind regards,
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribe
works on both Safari and Firefox on Mac.
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
r, instead of return dict(content=content[0]) I
have to write content.content out to an html file in the views folder.
I haven't done that before. I'll give it a try.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subsc
:
mon.09:30 - 10.15
mon.10.30 - 11.15
etc.
I would like:
Monday
09:30 - 10.15...
10:30 - 11.15...
Tuesday
10:30 - 11.15...
etc.
I have given it a try but didn't get it right, I hope one of you knows
how to code this.
Kind regards,
time, format it like '%H:%S'
and then do: db.timetable.time>=request.now But a field of type
datetime makes the calendar pop up and that doesn't allow me to enter
times like 09:45.
I wonder whether request.now.hour is able to return the hours in a
different format. Els
str
> (request.now.minute)
> lack of '0' would give you a 'no match' against the database
I'll see if it works tomorrow morning. Thanks for giving an
explanation as well.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this
s the calendar pop up and that doesn't allow me to enter
> times like 09:45.
... to work. Hence, my "mucking about with times in string format" ;-)
Thank you both for your help,
Annet.
--~--~-~--~~~---~--~~
You received this message because yo
nge this message to read
like: must be HH:MM! The time references the time at which a program
starts, so seconds are not relevant.
Finally, in one my views I have:
{{=db.event.from_date.formatter(event.from_date)}}
Is there something equivalent to get the time formatted correctly. i.e
1
Hi Denes,
Perfect. I used the colspan to let the day stand out from the rest.
Thanks.
Kind regards,
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this g
y, importing them and assign them to the fields in the model
file.
In my case, I would create a widgets.py file in the modules folder of
my application, put the widget code in widgets.py, in my model import
the widgets (from modules import widgets) and use it like this:
widget=timep
es)
... and put it the widgets.py
... in the model of my application:
from applications.parent.modules.widgets import*
... and in the function:
form=form_factory(SQLField('place',requires=IS_NOT_EMPTY
(),widget=clubbyplace(clubbyplace,???)))
I gave it a try, but I don't get the wi
radio buttons. I read this AlterEgo item:
http://www.web2py.com/AlterEgo/default/show/170,
but that's based on a table. Is it possible to do this in
form_factory?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
"window.location='%s';"%URL
(r=request,f='index')))
I wonder whether there is a way to keep me from repeating this part of
the function:
form[0][-1][1].append(INPUT(_type='reset',_value='Reset'))
form[0][-1][1].append(INPUT
(_type='button'
rary/Python/2.5/site-packages/web2py_1_63_5/gluon/
globals.py", line 97, in
self._caller = lambda f: f()
File "/Library/Python/2.5/site-packages/web2py_1_63_5/applications/
core/controllers/utilities.py", line 40, in contact
gender.widget=radioboxes
NameError: global name &
ed:
def update_form(table,nxt)
form=crud.update(table,request.args[0],next=(URL
(r=request,f='nxt')))
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick='javascript:history.go(-1)'))
return form
But it doesn't work, do you know why n
ry('')
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 grou
te it in db.py, but that didn't get me any further ...
I hope you can provide me with a skeleton class that I can use to
implement the module ...
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
I'm afraid I don't have time to trace
> through everything above ...
I realise I can't expect anyone to follow my lines of thought. I very
much appreciate all the help I get from you and the others and I have
learnt a lot since I got started with web2py.
Kind regards,
Annet.
--
vent.from_datum>=fromdate)|
(db.event.to_date>=fromdate))&(db.event.from_datum<=todate).select()
I wonder whether this is possible.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&quo
Massimo,
I work on Mac OS X Leopard Server for both development and production,
so problem solved. Thanks.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" grou
view is displayed I would like the input field to have the
focus. How do I set the focus in case of from_factory?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framew
they call it auto_completion because you can add
your own modules to it.
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@goog
Problem solved. Thanks.
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
John,
Thanks for drawing my attention to Fran's solution. It also comes in
handy to solve another problem I was facing.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web
oblem described above, because
I set the focus per field. However when I set the focus on a field of
type date I run into the same problem.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
In my application I allow users to upload images. I would like to
validate the images on size (xx KB) and dimensions (width xxx and
height xxx). I wonder whether any one has done this before, and what
is the best way to proceed.
Kind regards,
Annet
I would have to set the focus on each first field in every form
separately. I thought input:text meant input fields of type text only,
and that it would exclude input fields of type date.
I had hoped there would be a way to use Denes' code to take care of
these two exceptions.
you try?
> jQuery(document).ready(function(){ jQuery
> ("input:text:first:visble").focus(); });
No I put:
jQuery("input:text:first:visble").focus();
in the function web2py_ajax_init() in the file web2py_ajax.html. Which
is called in:
jQuery(document).ready(web2py_a
, css
and js keeping structure, style and action separated, something none
of these IDE's complied with.
I hope web2py will stay as 'clean' as it is, and not become another
'NetBeansese' IDE.
Annet.
--~--~-~--~~~---~--~~
You received thi
cord the image isn't deleted from the uploads folder. What property
do I have to set to delete the image file from the uploads folder.
I came across an example in which the developer stores the image in
the database in a blob field, what are the pros and cons of storing
the image in the
bject:
facilityrows=db(db.faciliteit.in_widget==True).select
(db.faciliteit.faciliteit)
The widget should go in a module:
def facilitywidget(field,value,options):
id='%s_%s' % (field._tablename,field.name)
else: raise SyntaxError, &qu
x27;))
return dict(club=club[0],address=address[0],nfas=nfas)
i.e. adding:
if not club:
redirect(URL(r=request,c='default',f='index'))
... solves the problem, but leaves me puzzled as to why this:
if not (club or address or nfas): redirect(URL
(r=request,c='defau
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,
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
, 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 yo
201 - 300 of 1659 matches
Mail list logo