Hi weheh -
Thanks for asking this - it was a good review of the draft of the book:
On Fri, Aug 14, 2009 at 12:10 AM, Yarko Tymciurak yark...@gmail.com wrote:
try form.vars.filename.new_filename
try form.vars.filename_newfilename
the pattern is:
form.vars.upload fieldname.new_filename
I believe it is:
auth.settings.expiration = SECONDS
Richard
On Aug 14, 3:29 pm, weheh richard_gor...@verizon.net wrote:
I know I saw this written somewhere, maybe in some doc, maybe in some
sample code, but I can't find it again for the life of me. Where/how
do I specify the amount of time
On Aug 14, 6:29 am, weheh richard_gor...@verizon.net wrote:
I know I saw this written somewhere, maybe in some doc, maybe in some
sample code, but I can't find it again for the life of me. Where/how
do I specify the amount of time before auth logout occurs? MDP, I
think this should probably
On Fri, Aug 14, 2009 at 1:59 AM, Richard richar...@gmail.com wrote:
On Aug 14, 3:10 pm, Yarko Tymciurak yark...@gmail.com wrote:
try form.vars.filename.new_filename
the pattern is:
form.vars.upload fieldname.new_filename
are you sure about that? I've been accessing form.vars.upload
On Fri, Aug 14, 2009 at 2:07 AM, Yarko Tymciurak yark...@gmail.com wrote:
On Fri, Aug 14, 2009 at 2:00 AM, Yarko Tymciurak yark...@gmail.comwrote:
Hi weheh -
Thanks for asking this - it was a good review of the draft of the book:
apologies - this was already correct in the 2nd ed. draft;
Now (in trunk) if a meny item is selected is the has a class web2py-
menu-selected
On Aug 13, 9:59 am, mdipierro mdipie...@cs.depaul.edu wrote:
I am putting this in MENU now.
On Aug 13, 6:09 am, Sebastian E. Ovide sebastianov...@gmail.com
wrote:
Hi Massimo,
by override layout.html you
I don't know Yarko. I may be doing something wrong, but I copied your
code verbatim and I get two things:
1) the flash upon successful upload says the new filename is None
2) the vars says I've got an FieldStorage object
What I really want is to know the name of the file that was created
under
The new name is stored in form.vars.[fieldname]_newfilename
The original filename is in request.vars.[fieldname].filename and it
is b16encoded into the uuid of the new filename.
On Aug 13, 11:46 pm, weheh richard_gor...@verizon.net wrote:
I'm using SQLFORM.factory as follows:
form =
Are you sure this does not work?
c=db.concert
cp=db.concert_purchases
a=db.artist
db(cp.auth_user==3)(c.id==cp.concert)(cp.expires'2009-08-08
09:46:23').select(c.name, c.id, cp.date, a.name, v.name, c.date,
af.file,left=(c.on(c.value==v.id),cp.on(cp.concert==c.id),a.on
(a.id==c.artist)),
from a standard welcome boilerplate...
On Fri, Aug 14, 2009 at 2:30 AM, mdipierro mdipie...@cs.depaul.edu wrote:
The new name is stored in form.vars.[fieldname]_newfilename
The original filename is in request.vars.[fieldname].filename and it
is b16encoded into the uuid of the new filename.
On Fri, Aug 14, 2009 at 2:39 AM, Yarko Tymciurak yark...@gmail.com wrote:
from a standard welcome boilerplate...
that is from also changing the last line in my example to mimic what weheh
had:
return dict(form=form, filename=form.vars.filename_newfilename)
On Fri, Aug 14, 2009 at
hello,
I want to automate some interaction with my web2py application web
interface but am having trouble logging in.
I am using the builtin auth login form.
Has anyone succeeded in building such a script, or can see what is
wrong with my script below?
import urllib
import urllib2
import
The _formkey they you send has to be the same you receive.
If you accept(request.vars,formname=None)
without passing a session there is no _formkey, no _formname and no
worry about it.
Massimo
On Aug 14, 2:52 am, Richard richar...@gmail.com wrote:
hello,
I want to automate some interaction
This isn't working for me. I see Yarko's screenshot and that is
exactly what I want.
I'm running 1.65.11. The only difference is that I'm trying to upload
an ASCII .txt file, but that shouldn't make a difference. The ascii
file is being uploaded to no_table.filename.8151ed45a69a545e.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
there is a multiuser web2py site. I'd like to be able to show, who is
online just now. Please, is there a way to drain the information, maybe
from the stored sessions?
Thanks!
David
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9
I agree with Yarko...
On Fri, Aug 14, 2009 at 6:52 AM, Yarko Tymciurak yark...@gmail.com wrote:
We should change the template, to let you select a suggested label from a
list in the comments area - bug, enhancement, etc.
Once it is accepted, the issue should have the appropriate label and
On Fri, Aug 14, 2009 at 3:17 AM, weheh richard_gor...@verizon.net wrote:
How do I embed a screenshot in here?
... if you reply to email (or send email to the group) you can attach a
file.
--~--~-~--~~~---~--~~
You received this message because you are
just vote for http://code.google.com/p/web2py/issues/detail?id=44 clicking
on the star
On Fri, Aug 14, 2009 at 9:26 AM, Sebastian E. Ovide
sebastianov...@gmail.com wrote:
I agree with Yarko...
On Fri, Aug 14, 2009 at 6:52 AM, Yarko Tymciurak yark...@gmail.comwrote:
We should change
Look into the kpax application. Is has a keepalive ajax that keeps
track how is editing a certain wiki page. You can use the same
mechanism.
Massimo
On Aug 14, 3:17 am, David Zejda d...@atlas.cz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
there is a multiuser web2py site.
Hello all,
I was wondering if it is possible to override multiple blocks from an
extended template. Example:
http://docs.djangoproject.com/en/dev/topics/templates/#templates
if not, what do you think to implement it ? something like {{include bloc_
name}} bla bla bla {{pass}}
thanks
--
Hi group
This is my trouble: I can't get the data of an item of a list stored
in the database
I have a list of several items, wich one of them have several data
fields (that's normal :-) )
but I am not getting that data in the view. It only shows plain text,
all variables do not cross from the
The concepts of blocks as implemented in Django, in my view, has a
logical problem. Consider this Dango example
#layout.html
{% block A %}nothing{%end block%}...X...{%block B%}nothing{%end block
%}
#someview.html
{% extends 'layout.html' %}
{% block A %}aaa{%end block%}...Y...{%block
What error do you get when you visit http://.../ver/[id] ?
On Aug 14, 4:39 am, Carlos Aboim abo...@gmail.com wrote:
Hi group
This is my trouble: I can't get the data of an item of a list stored
in the database
I have a list of several items, wich one of them have several data
fields
A
It's clean and more WEB 2.0 style.
--~--~-~--~~~---~--~~
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 from this group, send email to
This works visually to display nice checkboxes instead of the multi
select list, but no checked values are saved in the table.
Any suggestions?
Thanks.
I added this code into t2.py method
def base_table(db,tablename):
t=SQLTable(db,'t2_person',
:
I think you're missing all the over-whelming votes for A. The mix
that you propose looks lop-sided (what to do with that big, black
space). I too like A the best with the sans-serif font.
If you have space to fill in a new website design, then your better
bet is to add some detail to the A
I don't get any error! The values from variables do not apear in the redered
page!
Aboim
2009/8/14 mdipierro mdipie...@cs.depaul.edu
What error do you get when you visit http://.../ver/[id] ?
On Aug 14, 4:39 am, Carlos Aboim abo...@gmail.com wrote:
Hi group
This is my trouble: I can't
I also prefer A.
But I like the current logo better and think that it should have been
included in the pool?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to
On Aug 14, 5:39 am, Carlos Aboim abo...@gmail.com wrote:
Hi group
This is my trouble: I can't get the data of an item of a list stored
in the database
I have a list of several items, wich one of them have several data
fields (that's normal :-) )
but I am not getting that data in the
Ohh My good!! In fact!!
I blame myself for such failure.
You are absolutly wright!
Thank you!
I will be back for sure! I am a rookie!
Carlos Aboim
2009/8/14 DenesL denes1...@yahoo.ca
On Aug 14, 5:39 am, Carlos Aboim abo...@gmail.com wrote:
Hi group
This is my trouble: I can't get
What do you refer to as current logo?
On Aug 14, 8:57 am, Miguel Lopes mig.e.lo...@gmail.com wrote:
I also prefer A.
But I like the current logo better and think that it should have been
included in the pool?
--~--~-~--~~~---~--~~
You received this message
On Aug 14, 3:39 am, Sebastian E. Ovide sebastianov...@gmail.com
wrote:
Hello all,
I was wondering if it is possible to override multiple blocks from an
extended template.
Example:http://docs.djangoproject.com/en/dev/topics/templates/#templates
if not, what do you think to implement it ?
Hi folks!
I am here again as promised. (just kidding)
I whould like to know how to access a cross reference model name.
For example to clarify,
I got:
db.define_table('users',
Field('name'),
Field('email'))
# ONE (users) TO MANY (dogs)
db.define_table('dogs',
On Aug 14, 2009, at 5:40 AM, Massimo Di Pierro wrote:
What about this compromise (assuming the two authors agree)?
It's pretty busy, and misses the elegant simplicity of A. (Do you
really need the URL in the logo? The TM?)
If you really need to put the A logo in a square space, try just
In my last post I said r2=f1(db.Section.schoolYear==2009).select() -
works fine.
But I'm still struggling with SQLSets. I've read through the web2py
book and looked at examples online. Unfortunately I can't find
examples that clarify complex SQLSet syntax. I don't know how best to
present all
I don't think that is a bug but I could be wrong.
I wouldn't mind a lighter font but I still think A is the best of the
2. The font in Massimo's compromise is a better than the look of the
original B font which is just too plain, IMO.
Overall, I don't like the compromise version. Too big, too
On Aug 14, 2009, at 9:15 AM, __future__ wrote:
I don't think that is a bug but I could be wrong.
By 'bug' I mean (in this example) the stylized W, minus the 'web2py'
text.
I wouldn't mind a lighter font but I still think A is the best of the
2. The font in Massimo's compromise is a
db.dogs.owner_id.represent=lambda owner_id: db.users[owner_id].name
On Aug 14, 9:59 am, Carlos Aboim abo...@gmail.com wrote:
Hi folks!
I am here again as promised. (just kidding)
I whould like to know how to access a cross reference model name.
For example to clarify,
I got:
if q1, q2, q3, ... are elementary queries like
db.table.field==value
db.table.fieldvalue
db.table.field==db.table.otherfield+1
etc.
a SQLSet is
db(q1)
db(q1q2)same as db(q1)(q2)
db(q1|q2)
and | are the logical operators. You should not use and and
or.
On a SQLSet you can call
Hello.
Thanks for the advise. I have tried what you said and now my
application is in Spanish, but weekdays and month names are still
displayed in English. When I use the following code from within my
view:
{{=consulta.fecha_consulta.strftime(%A %d %B %Y)}}
the date is displayed as Wednesday
Hello.
Thanks for the advise. I have tried what you said and now my
application is in Spanish, but weekdays and month names are still
displayed in English. When I use the following code from within my
view:
{{=consulta.fecha_consulta.strftime(%A %d %B %Y)}}
the date is displayed as Wednesday
That is what I thought you were referring to. Do you think it looks
like a bug? I thought it looked like 3 people. I guess it could be
bug... I think our Rorschach results would be quite different :)
On Aug 14, 11:33 am, Jonathan Lundell jlund...@pobox.com wrote:
On Aug 14, 2009, at 9:15
This is a problem.
You must set the locale:
http://docs.python.org/library/locale.html
the problem is that you cannot setting the locale is not thread safe.
It does not break your app but once you set it it affects all the
apps.
Massimo
On Aug 14, 1:06 pm, Francisco
Yes those are definitively 3 people forming a W and that is what makes
it great.I do not think t looks like a bug at all.
On Aug 14, 1:12 pm, __future__ wrigh...@gmail.com wrote:
That is what I thought you were referring to. Do you think it looks
like a bug? I thought it looked like 3
it would seem there should be some way to set it based on client, per
session...
On Fri, Aug 14, 2009 at 1:32 PM, mdipierro mdipie...@cs.depaul.edu wrote:
This is a problem.
You must set the locale:
http://docs.python.org/library/locale.html
the problem is that you cannot setting the
On Fri, Aug 14, 2009 at 1:34 PM, mdipierro mdipie...@cs.depaul.edu wrote:
Yes those are definitively 3 people forming a W and that is what makes
it great.I do not think t looks like a bug at all.
I agree - the more I see this over the months, the more appealing it is...
One quetion, though
If you find a way let me know.
On Aug 14, 1:37 pm, Yarko Tymciurak yark...@gmail.com wrote:
it would seem there should be some way to set it based on client, per
session...
On Fri, Aug 14, 2009 at 1:32 PM, mdipierro mdipie...@cs.depaul.edu wrote:
This is a problem.
You must set the
I did not choose. I just posted some options for people here to
choose.
Massimo
On Aug 14, 1:41 pm, Yarko Tymciurak yark...@gmail.com wrote:
On Fri, Aug 14, 2009 at 1:34 PM, mdipierro mdipie...@cs.depaul.edu wrote:
Yes those are definitively 3 people forming a W and that is what makes
it
http://www.w3.org/International/questions/qa-accept-lang-locales
Discusses a starting point, while (application responsibility) warning to be
sure to let the user set their locale.
I think, Francisco, this is your answer. You can find what you need to get
started in:
my point is still: why did you not request consitency in the fonts of the
two configurations?
On Fri, Aug 14, 2009 at 1:45 PM, mdipierro mdipie...@cs.depaul.edu wrote:
I did not choose. I just posted some options for people here to
choose.
Massimo
On Aug 14, 1:41 pm, Yarko Tymciurak
or put another way - this can still be updated:
since there was a majority of preference for the font of the squared
configuration,
would you ask the author of the wonderful icon to match? or (as I did) have
the author
of the latter do an overlay of the horizontal logo with the same font used
in
not to tell you what to do with your Logo, Massimo - just my request to
consider...
On Fri, Aug 14, 2009 at 2:00 PM, Yarko Tymciurak yark...@gmail.com wrote:
or put another way - this can still be updated:
since there was a majority of preference for the font of the squared
configuration,
On Aug 14, 2009, at 11:12 AM, __future__ wrote:
That is what I thought you were referring to. Do you think it looks
like a bug? I thought it looked like 3 people. I guess it could be
bug... I think our Rorschach results would be quite different :)
I'm sorry I ever used the term. I mean
This does not solve the problem the in Python local is set per process
and not per-thread. Am I wrong?
Massimo
On Aug 14, 1:51 pm, Yarko Tymciurak yark...@gmail.com wrote:
http://www.w3.org/International/questions/qa-accept-lang-locales
Discusses a starting point, while (application
I am sure he is reading this so I hope he will post a sample here.
On Aug 14, 2:00 pm, Yarko Tymciurak yark...@gmail.com wrote:
or put another way - this can still be updated:
since there was a majority of preference for the font of the squared
configuration,
would you ask the author of the
Thanks for sharing your thought on this. This is an important issue. I
will try address it in the book.
Do you use web2py for teaching or development? Which one if your
school if you do not mind sharing the infomation?
Massimo
On Aug 14, 2:20 pm, Michael mafed...@gmail.com wrote:
Thanks
On Aug 14, 2009, at 12:20 PM, Michael wrote:
Thanks Massimo, that's a great help. I'm starting to get the hang of
it.
I had trouble with the following:
r9=db(q2)(db.Section.id==7767|db.Section.id==7540).select()
but realized that I needed to enclose the filters in parentheses:
Two issues:
1) I created the key and certificate files for SSL but when I start
web2py with them I get:
WARNING:root:OpenSSL libraries unavailable. SSL is OFF
openssl is installed.
2) Even without any clients this is showing up in the console
periodically (but not often):
Exception in thread
Thanks, Dan. I didn't know about the difference between dev and
production or the admin interface so that was helpful.
Cheers,
David
On Aug 5, 1:24 pm, Dan danbr...@gmail.com wrote:
done.http://www.web2py.com/AlterEgo/default/show/247
On Aug 3, 10:19 pm, mdipierro mdipie...@cs.depaul.edu
Hello once again
In the controller area there is a default folder and then a test
folder.
Do you create new folders at this level or -- do you create sub
folders within default
---and---
how do you address them??
I have the app MED
and a prescription table, auth_user and specialiity as you
Once again thanks for the help.
I have used setlocale before. But the thing is where would be the
right place to call the setlocale function? For the moment I just want
the whole application to be in Spanish, so setting the locale on a per
user basis seems overkill to me. Calling the setlocale
This is really cool! Good Job!
Perhaps you can get around 1 by having Apache handle the encryption
and 2 by not using cron?
I can't wait for the how-to. I'd love to have this working on our
AS400.
-tim
On Aug 14, 2:50 pm, DenesL denes1...@yahoo.ca wrote:
Two issues:
1) I created the key
B
Although A looks better at the moment B has, in my opinion, more
potential to evolve into sth unique and memorable.
The appeal of A (and I was initially going to vote for A) might just
be that it captures web2.0 fashion very well.
But why look like everyone else?
I feel that A is static
Perhaps my notes on installing on CentOS 5 might offer some help:
http://www.web2py.com/AlterEgo/default/show/239
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send
@massimo: We've communicated before about our application... but It's
been a while. ;) I'm a teacher at Friends Central School in PA. In
addition to teaching web development and python, I'm working with
another programmer to re-build our existing intranet application that
handles a wide range
According to http://docs.python.org/library/i18n.html
it's even worse than that, saying some implementations core-dump on changing
locale...
How do other web frameworks deal with this? As it is, it seems that it's up
to the
applicatiion.
On Fri, Aug 14, 2009 at 2:26 PM, mdipierro
Hi Jim,
There is only one controllers folder in
web2py/applications/your_app/controllers
Into that folder you place all your Python controller files.
Each controller file can contain one or more functions.
For example
web2py/applications/your_app/controllers/default.py
may contain functions
I've got a table with two fields, an account name and a user id.
They're both required.
I want something like this:
naform = SQLFORM(db.acct, fields=['acct_name'],
hidden=dict(user_id=auth.user.id))
if naform.accepts(request.vars, session):
response.flash = 'Account %s
Well after reading more and more about locale I realize that it's kind
of very problematic to set the locale and encoding the right way while
not breaking something else.
So I decided to use a dirty hack to get the expected result. I wrote a
very simple function inside my view that would turn a
On Aug 14, 2009, at 4:31 PM, Jonathan Lundell wrote:
I've got a table with two fields, an account name and a user id.
They're both required.
I want something like this:
naform = SQLFORM(db.acct, fields=['acct_name'],
hidden=dict(user_id=auth.user.id))
if
Yarko, Massimo - I'm becoming suspicious of my installation. I copied
Yarko's example to the Welcome app and did exactly what he's doing and
got exactly the same problem that I've been seeing, which is nothing
for the new and old filenames. And yet, the file is being uploaded
because I can see it
Yarko, Massimo - I'm becoming suspicious of my installation. I copied
Yarko's example to the Welcome app and did exactly what he's doing
and
got exactly the same problem that I've been seeing, which is nothing
for the new and old filenames. And yet, the file is being uploaded
because I can see it
why don't you minimize the variables -
get the source, and make a brand new installation (don't overwrite anything)
and
then try the simple changes on just that.
On Fri, Aug 14, 2009 at 8:22 PM, weheh richard_gor...@verizon.net wrote:
Yarko, Massimo - I'm becoming suspicious of my
I just did an absolutely fresh installation from scratch. No
overwriting. Installed from source. Tried your example by adding the
upload function to the default controller and then ran it with a
text file upload. Still same problem as I was reporting earlier. No
filename visible.
Well I like more logo A, it's more simple (as everybody has already
pointed out).
Yet I think the logo fails to describe what web2py is. Well I'm no
designer though, so I just might not get it.
But the logo is very web 2.0.
On 14 ago, 15:29, hcvst hcv...@googlemail.com wrote:
B
Although A
I am having a problem using SQLFORM with tables that have been
generated from an xml file. The error I'm getting is a key error, from
trying to SQLFORM(getattr(db, tablename)). I'm pretty sure this is
because the tables being generated in the model have not been
'finalized' so to speak when the
I like A. Lots of respect to both designers for the time they put in.
On Aug 14, 12:00 pm, Yarko Tymciurak yark...@gmail.com wrote:
or put another way - this can still be updated:
since there was a majority of preference for the font of the squared
configuration,
would you ask the author
77 matches
Mail list logo