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 wrote:
> try form.vars.filename.new_filename
try form.vars.filename_newfilename
> the pattern is:
>
> form.vars..new_filename
the CORRECT pattern (as it be
I believe it is:
auth.settings.expiration = SECONDS
Richard
On Aug 14, 3:29 pm, weheh 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 occur
On Aug 14, 6:29 am, weheh 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 be mentioned in the new
On Fri, Aug 14, 2009 at 1:59 AM, Richard wrote:
>
> On Aug 14, 3:10 pm, Yarko Tymciurak wrote:
> > try form.vars.filename.new_filename
> >
> > the pattern is:
> >
> > form.vars..new_filename
>
> are you sure about that? I've been accessing form.vars. fieldname>.filename instead
Richard - this
On Fri, Aug 14, 2009 at 2:00 AM, Yarko Tymciurak wrote:
> 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 wrote:
>
>> try form.vars.filename.new_filename
>
>
> try form.vars.filename_newfilename
>
>
>>
On Fri, Aug 14, 2009 at 2:07 AM, Yarko Tymciurak wrote:
>
>
> On Fri, Aug 14, 2009 at 2:00 AM, Yarko Tymciurak wrote:
>
>> 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; I was looking at
an ol
Now (in trunk) if a meny item is selected is the has a class web2py-
menu-selected
On Aug 13, 9:59 am, mdipierro wrote:
> I am putting this in MENU now.
>
> On Aug 13, 6:09 am, "Sebastian E. Ovide"
> wrote:
>
> > Hi Massimo,
>
> > by "override layout.html " you mean to replace the "MENU" functi
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 th
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 wrote:
> I'm using SQLFORM.factory as follows:
>
> form = SQLFORM.factory(Field('filename
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)), orderby
from a standard welcome boilerplate...
On Fri, Aug 14, 2009 at 2:30 AM, mdipierro 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 Aug 13, 11:46
On Fri, Aug 14, 2009 at 2:39 AM, Yarko Tymciurak 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 2:30 AM, mdipierr
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 cookie
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 wrote:
> hello,
>
> I want to automate some interaction with my web2py a
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.
31445f312e74
-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 (GNU/Li
I agree with Yarko...
On Fri, Aug 14, 2009 at 6:52 AM, Yarko Tymciurak 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
> priority assig
On Fri, Aug 14, 2009 at 3:17 AM, weheh 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 subscribed to the Google Grou
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 wrote:
>
>> We should change the templat
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 wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello,
>
> there is a multiuser web2py site. I'd like
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
--
Sebasti
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 c
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 B%}bbb{%end
What error do you get when you visit http://.../ver/[id] ?
On Aug 14, 4:39 am, Carlos Aboim 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
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
we
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 logo
I don't get any error! The values from variables do not apear in the redered
page!
Aboim
2009/8/14 mdipierro
>
> What error do you get when you visit http://.../ver/[id] ?
>
> On Aug 14, 4:39 am, Carlos Aboim wrote:
> > Hi group
> >
> > This is my trouble: I can't get the data of an item of a
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 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 view. It onl
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
>
>
>
> On Aug 14, 5:39 am, Carlos Aboim wrote:
> > Hi group
> >
> > This is my trouble: I can't get the data of an item of a li
What do you refer to as "current logo"?
On Aug 14, 8:57 am, Miguel Lopes 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 because you are subsc
> On Aug 14, 3:39 am, "Sebastian E. Ovide"
> 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 ? someth
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
m
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 th
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, to
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
db.dogs.owner_id.represent=lambda owner_id: db.users[owner_id].name
On Aug 14, 9:59 am, Carlos Aboim 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:
>
> db.define_table('user
if q1, q2, q3, ... are elementary queries like
db.table.field==value
db.table.field wrote:
> 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. Unfortunat
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 "Wednesda
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 "Wednesda
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 wrote:
> On Aug 14, 2009, at 9:15 AM, __future__ wro
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 wrote:
> Hello.
>
> Thanks
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__ 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 co
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 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 locale is not thread
On Fri, Aug 14, 2009 at 1:34 PM, mdipierro 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 opted for 2
If you find a way let me know.
On Aug 14, 1:37 pm, Yarko Tymciurak 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 wrote:
>
> > This is a problem.
>
> > You must set the locale:
> >http://docs.python.org/
I did not choose. I just posted some options for people here to
choose.
Massimo
On Aug 14, 1:41 pm, Yarko Tymciurak wrote:
> On Fri, Aug 14, 2009 at 1:34 PM, mdipierro 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
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:
request.env.http_accept_lan
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 wrote:
>
> I did not choose. I just posted some options for people here to
> choose.
>
> Massimo
>
> On Aug 14, 1:41 pm, Yarko Tymciurak wrote:
> > On Fri, A
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
i
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 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 as
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
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:
>>> r9=db(q2)( (db.Section.id==7767) | (db.Section.id==75
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 wrote:
> http://www.w3.org/International/questions/qa-accept-lang-locales
>
> Discusses a starting point, while (application responsibility) warning
I am sure he is reading this so I hope he will post a sample here.
On Aug 14, 2:00 pm, Yarko Tymciurak 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 wonderful
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 wrote:
> Thanks Massimo, that's a great
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 threa
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 wrote:
> done.http://www.web2py.com/AlterEgo/default/show/247
>
> On Aug 3, 10:19 pm, mdipierro wrote:
>
>
>
> > Dan,
>
> > can you post a
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 s
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 fu
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 wrote:
> Two issues:
>
> 1) I created the key and certificate
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 whils
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 ema
@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 of
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 wrote:
>
> T
Hi Jim,
There is only one controllers folder in
web2py/applications//controllers
Into that folder you place all your Python controller files.
Each controller file can contain one or more functions.
For example
web2py/applications//controllers/default.py
may contain functions such as
def index()
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 cre
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 d
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 naform.accepts(r
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 wrote:
>
> Yarko, Massimo - I'm becoming suspicious of my installation. I copied
> Yarko's exa
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 wrote:
> B
>
> Although A looks better at the mo
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 co
I like A. Lots of respect to both designers for the time they put in.
On Aug 14, 12:00 pm, Yarko Tymciurak 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 wond
I guess mercurial API broke backward compatibility. I will remove the
debug flag.
Massimo
On Aug 14, 2:39 pm, Jonathan Lundell wrote:
> I turned on Mercurial, and when I click the 'versioning' link, I get
> the following ticket:
>
> Error ticket for "admin"
>
> Ticket 127.0.0.1.2009-08-14.12-
Unfortunately for many parameters (such as locale, pythonpath, logging
level) python relies too much on the os, therefore they are not per
thread but per process. This is a problem for web apps. This is a
major design flaw in my view.
Massimo
On Aug 14, 7:19 pm, Francisco wrote:
> Well after re
form.vars.id
On Aug 14, 7:56 pm, Jonathan Lundell wrote:
> 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=[
I am not sure the _newfilename is available in the "stable"
1.65.11 but it is available in trunk. I will post 1.66 soon (perhaps
tomorrow) and it will be there. You can fix this by copying gluon/
sqlhtml.py form trunk.
Massimo
On Aug 14, 8:44 pm, weheh wrote:
> I just did an absolutely fresh in
83 matches
Mail list logo