LOL
On Feb 1, 9:42 pm, Thadeus Burgess wrote:
> Because the web2py community is made up of people who use python for
> real world work and have real world jobs to make money. Django fanboys
> have nothing better to do all day than write docs in their parents
> basement:)
>
> -Thadeus
>
> On Mon,
Hi All,
We have found a little bug in this function. Should use the following
line :
if request.env.http_accept and request.env.http_accept.find('text/
vnd.wap.wml')>=0:
instead:
if request.env.http_accept and request.env.http_accept.find('text/
vnd.wap.wml'):
Cheers.
On Jan 28, 9:25 pm, mdipi
Hmmm...The error you got was related to encoding:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
57: ordinal not in range(128)'
What language are you using?
Can you post some code?
On Feb 1, 1:25 pm, yamandu wrote:
> First: I tried to write comment on web2pyslices but it gi
Because the web2py community is made up of people who use python for
real world work and have real world jobs to make money. Django fanboys
have nothing better to do all day than write docs in their parents
basement:)
-Thadeus
On Mon, Feb 1, 2010 at 6:21 PM, mdipierro wrote:
> rsonally, I co
I tried it just before I left work and it did not help. The
permissions are set right too. I'll look more at it tomorrow.
-wes
On Mon, Feb 1, 2010 at 6:39 PM, mdipierro wrote:
> was this solved?
>
> Massimo
>
> On Feb 1, 5:09 pm, Wes James wrote:
>> When I try to compile my app with 1.74.9 I
The site provides editing and proofreading services. The service is
designed with
non-native English speakers in mind and offers very fast turn-around
times (think business emails
and blog posts).
http://standardminds.com
I'm offering free proofreading to beta testers! PM me for a coupon.
Please
was this solved?
Massimo
On Feb 1, 5:09 pm, Wes James wrote:
> When I try to compile my app with 1.74.9 I get:
>
> Cannot compile: there are errors in your app. Debug it, correct errors
> and try again.
>
> I've been poking around my app, but haven't come across any errors in
> the code. Is it
This issue comes up very often. Currently we have:
web2py.com/AlterEgo
wiki.web2py.com
web2pyslices.com
In the past people have volunteered to setup moimoin and trac. I
always agreed to link a new resource to the main web page. I do not
think this is a technological problem. I think there is not
Thanks for replying.
I bought the book and I agree, it's great. But what I'm asking is some help
from the community to start an official "wiki", because the one that exists
is not openly editable, or at least, make it openly editable
What would be great for the web2py project (and its users) is i
oops. gone. it did not belong there.
On Feb 1, 5:51 pm, Richard wrote:
> Very neat!
>
> ("Change Layout" link is broken)
>
> On Feb 2, 4:27 am, mdipierro wrote:
>
> >http://web2py.com/plugins
>
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group
It will be tomorrow before I can try it. Have a concert to go to
tonight.
Cheers,
Mike
On Feb 1, 6:43 pm, mdipierro wrote:
> I did found a problem with cron and I just fixed it in trunk. Could
> you please check that?
>
> Massimo
>
> On Feb 1, 4:58 pm, mdipierro wrote:
>
> > I notice that too b
Achipa is helping refactor cron. This should go in the todo list.
On Feb 1, 5:51 pm, MikeEllis wrote:
> It's a interesting question. If the cron processes are children of
> the the main process, then I'd vote for having the main process send a
> SIGTERM to each child and wait() for a reasonable
The first version of the new DAL is just a more modular version of the
current DAL. It will be easy to add this feature when done.
On Feb 1, 5:42 pm, Richard wrote:
> I just experienced the same problem using "app" on Google App Engine,
> which wasted some time - it will be neat when the new DAL
Very neat!
("Change Layout" link is broken)
On Feb 2, 4:27 am, mdipierro wrote:
> http://web2py.com/plugins
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from thi
It's a interesting question. If the cron processes are children of
the the main process, then I'd vote for having the main process send a
SIGTERM to each child and wait() for a reasonable length of time
before giving up. Makes things easier to manage. Obviously, a cron
process written by a user
I did found a problem with cron and I just fixed it in trunk. Could
you please check that?
Massimo
On Feb 1, 4:58 pm, mdipierro wrote:
> I notice that too but I cannot figure out why yet.
>
> I am not sure that killing the main web2py process should also kill
> the cron processes. I think I know
I just experienced the same problem using "app" on Google App Engine,
which wasted some time - it will be neat when the new DAL takes care
of these problems! (It will, right?)
On Feb 2, 8:48 am, mdipierro wrote:
> Hi Andreas,
>
> you have
>
> Field("date", 'date', unique = True)
>
> "date" is a
I think I just added tat to trunk. Please give it a try. No matter how
hard I try I cannot write an app that cannot compiled.
Massimo
On Feb 1, 5:09 pm, Wes James wrote:
> When I try to compile my app with 1.74.9 I get:
>
> Cannot compile: there are errors in your app. Debug it, correct errors
>
It might be a permission issue. If web2py does not have permissions to
save to the folder it cannot compile.
-Thadeus
On Mon, Feb 1, 2010 at 5:09 PM, Wes James wrote:
> When I try to compile my app with 1.74.9 I get:
>
> Cannot compile: there are errors in your app. Debug it, correct errors
When I try to compile my app with 1.74.9 I get:
Cannot compile: there are errors in your app. Debug it, correct errors
and try again.
I've been poking around my app, but haven't come across any errors in
the code. Is it possible to put what file the error was in in a later
version of appamin?
I
I notice that too but I cannot figure out why yet.
I am not sure that killing the main web2py process should also kill
the cron processes. I think I know how to change that but I am not
sure what the preferred behavior should be.
On Feb 1, 4:48 pm, MikeEllis wrote:
> One funniness remains. I ca
One funniness remains. I can't kill the web2py process with -SIGTERM
any more. Have break out the heavy artillery and use -9. Also,
killing the web2py process doesn't croak the cron processes. Have to
kill them individually.
Cheers,
Mike
On Feb 1, 5:00 pm, Thadeus Burgess wrote:
> we might h
Thanks for catching that, Massimo. The pw is changed.
Actually, I will be using cron in the near future when we start
processing gobs of real data, but it's good to be reminded of how to
turn it off.
Cheers,
Mike
On Feb 1, 5:00 pm, Thadeus Burgess wrote:
> we might have his admin password, but
This should work but, assuming the file is there you can also do
T2 = local_import('t2').T2
It is cleaner
On Feb 1, 4:07 pm, Wes James wrote:
> I downloaded your latest source and moved my app in to place and I get:
>
> exec(\'from applications.%s.modules.t2 import T2\' % request.application)
>
This one:
http://www.web2py.com/examples/static/web2py_src.zip
On Mon, Feb 1, 2010 at 3:12 PM, mdipierro wrote:
> please tell us more: binary source windows mac python version
>
> On Feb 1, 4:07 pm, Wes James wrote:
>> I downloaded your latest source and moved my app in to place and I get:
>>
>
please tell us more: binary source windows mac python version
On Feb 1, 4:07 pm, Wes James wrote:
> I downloaded your latest source and moved my app in to place and I get:
>
> exec(\'from applications.%s.modules.t2 import T2\' % request.application)
> File "", line 1, in
> ImportError: No module
I downloaded your latest source and moved my app in to place and I get:
exec(\'from applications.%s.modules.t2 import T2\' % request.application)
File "", line 1, in
ImportError: No module named applications.cnrsa.modules.t2
I move it back to 1.74.8 - no problem.
-wes
On Mon, Feb 1, 2010 at 12
Hi
Thanks for the reply. I see your point.
Would using "auth.settings.logout_next" be a good place to do this?
-sveinh
On Feb 1, 10:42 pm, Thadeus Burgess wrote:
> Not necessarily, what if you set session tokens to visitors as well ?
> You would not want to clear these out.
>
> Since a session
we might have his admin password, but he doesn't have ssl!! :)
-Thadeus
On Mon, Feb 1, 2010 at 3:57 PM, mdipierro wrote:
> 173.203.204.205
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googleg
This should have worked before but somehow did not. If you are not
using cron:
nohup python web2py/web2py.py -N -argrap -i173.203.204.205 &
You just told us your admin password. Please check it. Use
nohup python web2py/web2py.py -N -a '' -i173.203.204.205
&
so that it does not appear in
Hi Tiago,
Your right, things are a bit scattered around. That was one of my
first observations as well. That said a wealth of documentation can be
found, but it is "scattered". The following list of resources that
gets updated fairly regularly (a big Thank You Denesl!) should get you
started.
Go
Can you give us details on the exploit? I would like to run my own
tests. If you don't want to disclose it publicly, can you send an
email?
On Feb 1, 3:42 pm, mdipierro wrote:
> I runs some tests. This affects 1.74.8 and 1.74.7 ONLY. It does not
> affect previous versions.
>
> Massimo
--
You re
Just upgraded to 1.74.9 After restarting the server I noticed two
persistent cron processes. My app isn't using cron. App seems to be
running fine, just wondering why the extra processes. I'm sure
they've never been there before. Similar results after upgrading
under Snow Leopard on a Mac.
Her
Hi Andreas,
you have
Field("date", 'date', unique = True)
"date" is a reserved keyword and cannot be the name of a field/
column.
Massimo
On Feb 1, 3:37 pm, baloan wrote:
> Hello,
>
> I'm using PostgreSQL. Changing db.py from
>
> db.define_table('position',
> Field("day", 'dat
Not necessarily, what if you set session tokens to visitors as well ?
You would not want to clear these out.
Since a session is not tied to auth, a session is tied to the client
visiting the website, you should clear these out manually in your
logout function.
-Thadeus
On Mon, Feb 1, 2010 at
I runs some tests. This affects 1.74.8 and 1.74.7 ONLY. It does not
affect previous versions.
Massimo
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group,
If you know where it is in the code you can always: bzr blame
That will give you the revision number. From that you should be able to
determine the date and then version number.
On 2/1/2010 3:36 PM, mdipierro wrote:
I am trying to find out. I know it is not in 1.74.1.
On Feb 1, 3:23 pm, Ti
Hi
Thanks for the update.
Regarding 2), I'm not talking about auth-tokens in Session, but
whatever other tokens the programmer has entered into session. Should
these not also be cleared?
sveinh
On Feb 1, 8:49 pm, mdipierro wrote:
> Entering panic mode!
>
> You are correct about 1). There is a
Hello,
I'm using PostgreSQL. Changing db.py from
db.define_table('position',
Field("day", 'date', unique = True),
Field("quantity", "double"),
)
to
db.define_table('position',
Field("date", 'date', unique = True),
F
I am trying to find out. I know it is not in 1.74.1.
On Feb 1, 3:23 pm, Timothy Farrell wrote:
> Which version was the bug introduced in? My production environment runs
> an older version than my dev environment.
>
> On 2/1/2010 1:56 PM, mdipierro wrote:
>
> > User sveinh has discovered a major
thanks Villas. I had missed this in the second edition.
On 1 February 2010 18:42, villas wrote:
> If you wish to create a table which can refer to itself, see the
> manual:
> 6.13 Self-Reference and Aliases page 177.
>
> --
> You received this message because you are subscribed to the Google Gr
Which version was the bug introduced in? My production environment runs
an older version than my dev environment.
On 2/1/2010 1:56 PM, mdipierro wrote:
User sveinh has discovered a major security hole in 1.74.8. This is
really major and you should immediately upgrade to 1.74.9.
I apologize
mdipierro wrote:
> What do you mean? if response.flash='' it does not show.
Dooh, of course. Thank you.
>
> On Feb 1, 1:55 pm, Tomas Pelka wrote:
>> Tomas Pelka wrote:
>>> Hi everybody,
>>> have a weird problem with displaying my page in gecko. Seems that my
>>> response._vars are displayed eve
Does this apply to <= 1.74.7?
-Thadeus
On Mon, Feb 1, 2010 at 1:56 PM, mdipierro wrote:
> User sveinh has discovered a major security hole in 1.74.8. This is
> really major and you should immediately upgrade to 1.74.9.
>
> I apologize for this.
>
> Massimo
>
> --
> You received this message
What do you mean? if response.flash='' it does not show.
On Feb 1, 1:55 pm, Tomas Pelka wrote:
> Tomas Pelka wrote:
> > Hi everybody,
>
> > have a weird problem with displaying my page in gecko. Seems that my
> > response._vars are displayed even if they shouldn't be. Same as I type
> > {{=BEAUTI
User sveinh has discovered a major security hole in 1.74.8. This is
really major and you should immediately upgrade to 1.74.9.
I apologize for this.
Massimo
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to w
Tomas Pelka wrote:
> Hi everybody,
>
> have a weird problem with displaying my page in gecko. Seems that my
> response._vars are displayed even if they shouldn't be. Same as I type
> {{=BEAUTIFY(response._vars)}} into my view.
>
> Should be more obvious from attached screenshots(same page in gesc
Entering panic mode!
You are correct about 1). There is a major bug in 1.74.8. One line in
tools.py appears to be missing. I must have accidentally while
applying the "remember me" patch.
I have fixed this in trunk. I have posted 1.74.9.
!!! EVERYONE PLEASE UPGRADE. THIS IS A MAJOR SECURITY ISSU
First: I tried to write comment on web2pyslices but it gives me an
error.
Well, I got webgrid working.
Then stopped.
I restarted web2py and it worked again.
And now it stopped again no matter what I do.
The error is the following:
NameError: global name 'T' is not defined
on line 32:
self.message
So if I wanted to copy tables over, but set unique=False
I ended up with the following
audit_table = [copy.copy(f) for f in table]
for i in range(len(audit_table)):
audit_table[i].unique = False
db.define_table(table.table_name + '_auditlog', Audit.audit_template,
*audit_
Hi
I'd like to report two things I have encountered regarding
authentication:
1) Login with no (or wrong) password
I have made no changes to the source, open the Welcome application,
register a new user, then login. When logging in, I use the same e-
mail as when registering, and password blank.
If you wish to create a table which can refer to itself, see the
manual:
6.13 Self-Reference and Aliases page 177.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe fro
This is bad. You have postgresql <= 8.1. It does not follow the
official SQL convention for string escaping and does not allow
changing it. Your web2py app is vulnerable to serious SQL injections
unless you upgrade to postgresql 8.2 or later.
On Feb 1, 11:58 am, Leandro - ProfessionalIT
wrote:
Massimo,
After update my web2py with the last source version(tar.gz) I'm
receiving this error message:
OperationalError: parameter "standard_conforming_strings" cannot be
changed
Ps: My database is postgreSQL.
--
You received this message because you are subscribed to the Google Group
Create your models/controllers/views/static files etc everything as
you normally would, But append the word "plugin_" in front of it
so
models/plugin_test.py
controllers/plugin_test.py
views/plugin_test/index.html
static/plugin_test/logo.png
But also follow the database/global def namespace conv
Sounds nasty.
reading from the disk will always be faster than querying that database again.
It seems the following should work for you then?
t=cache.ram('from_sql_server',lambda:cache.disk('from_sql_server',
lambda:myobject(),time_expire=5),time_expire=5)
This way if its
http://web2py.com/plugins
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, visit t
I think you have an old web2py version.
On Feb 1, 10:37 am, Leandro - ProfessionalIT
wrote:
> Massimo,
>
> > db.define_table('product cost',
> > Field('quote_products_id', db.quote_products, requires=IS_IN_DB
> > (db,
> > 'quote_products.id', lambda row: row.product.description')),
>
> Th
Will some one tell me, how to make a plugin?
For example a layout plugin, or an OAuth plugin, or anything like
that.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe fr
Massimo,
> db.define_table('product cost',
> Field('quote_products_id', db.quote_products, requires=IS_IN_DB
> (db,
> 'quote_products.id', lambda row: row.product.description')),
This field generate a error of string expected.
> Field('quote_products_id', db.quote_products, requi
Primary source of help: web2py groups
-
http://groups.google.com/group/web2py/topics
http://groups.google.com/group/web2py-developers/topics
http://groups.google.com/group/web2py-users-brazil/topics
Tips on searching the users group
-
As said at jQuery TOOLS web:
Other JavaScript UI libraries focus on desktop-like features such as
> drag-and-drop, sliders, sortable tables or draggable windows. They are meant
> to build "rich internet applications" (RIAs) such as email clients, task
> managers, CRM software, image organizers or
> Why not use a chained cache.disk inside a cache.ram.
I think I like just using the cache.ram and pre-loading each
processes. The structure is large and I'm not sure how reading from
disk (especially with a fair amount of users) would affect
performance. I'm going to have to profile this when I
Instead of customizing an SQLFORM, I've made my own FORM and handled
the insert in form.accepts. Works as expected.
On Feb 1, 7:55 pm, DenesL wrote:
> On Jan 29, 12:50 am, Adi wrote:> Ok, I removed the
> SELECT entirely to see if the form submits, but it
> > still doesn't. Now I'm doing this:
>
ah... a 'forward' reference;excellent! thanks weheh
On Feb 1, 1:32 pm, weheh wrote:
> Try this:
> db.defint_table(...
> Field('previous_planet','reference planet'),
> ...)
>
> Then after the table definition:
> db.planet.previous_planet.requires=IS_NULL_OR(IS_IN_DB
> (db.db.planet.id))
>
> On Feb
Why not use a chained cache.disk inside a cache.ram.
This way it caches to both, so if it doesn't have cached in ram, it
can always pull from the disk.
I'm curious, what is the object your trying to cache ? I would think
any object that had to persist in a thread-safe way like your
requirements s
Gotcha! I have to put the response.render file in app/views/ and not
in app/views/default/
Thanks for clarifying.
--D
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe
python web2py.py -S yourapp -M
>>> import glob
>>> from gluon.contrib.simplejson import load
>>> for f in glob.glob('*.json'):
>>> data = load(open(f,'rb'0))
>>> db.yourtable.insert(**data) ###
### assuming the json data is a dictionary with the same keys as the
columns in db.yourtable.
O
Hi, thank you for your reply.
On Mon, Feb 1, 2010 at 2:43 PM, DenesL wrote:
> Hi tiago,
>
> On Feb 1, 7:45 am, tiago almeida wrote:
> > Hello all,
> >
> > I really like web2py but allow me to say that the documentation in
> general
> > is a bit lacking.
> > For instance, the wiki looks to be u
Use simplejson to decode the JSON file into the appropriate array,
dictionary whatever. It's included in contrib.
On Feb 1, 3:22 am, Al wrote:
> Hi,
>
> I am using web2py to build an application to read a few .JSON files
> which are updated periodically (every 300s), the information within
> th
On Jan 29, 12:50 am, Adi wrote:
> Ok, I removed the SELECT entirely to see if the form submits, but it
> still doesn't. Now I'm doing this:
>
> 1. created a read-only SQLFORM
> 2. did form[0].append(TR(, button>))
>
> But the Add Another button doesn't submit. Firebug shows html to be
> OK. How
Hi tiago,
On Feb 1, 7:45 am, tiago almeida wrote:
> Hello all,
>
> I really like web2py but allow me to say that the documentation in general
> is a bit lacking.
> For instance, the wiki looks to be unmantained for a long time. Also, I
> don't see a way to create pages there.
You have to register
:-)
On Feb 1, 5:46 am, villas wrote:
> One of the best examples of a picture being worth a thousand words!
> Thanks.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe f
I just tried and work well
In views/test.html
{{=myvar}}
In views/default/test2.html
{{=outstr}}
In controllers/default.py
def test2(): # note test2.html does not exist
outstr = response.render('test.html',dict(myvar='MyVarTest'))
return dict(outstr=outstr)
No layout. Just '
yes but it assumes 1) you know which table and field 2) no
authentication. While the idea is general the implentation is
specific. As you can see, it can be done in a few lines.
The current mechanism that uses the download() is more general and
should be preferred.
On Feb 1, 3:19 am, pistacchio
Good points. Perhaps we should integrate your function with fetch.
On Feb 1, 2:38 am, Richard wrote:
> If I understand correctly, fetch() was added to web2py because at the
> time GAE did not support urllib2.
> Now GAE does support urllib2 which makes fetch() sort of redundant,
> but we need to k
what db? The left=... only works on rdbms, not on GAE.
On Feb 1, 1:50 am, ceriox wrote:
> thanks for help but for the first solution i have a syntax error
>
> Traceback (most recent call last):
> File "gluon/restricted.py", line 171, in restricted
> File "G:/web2py/applications/Siltel/contro
sorry my mistake, link is up, strange wlan here
On Feb 1, 2:34 pm, selecta wrote:
> cool I want to have that but the link is dead!
>
> On Jan 31, 6:03 pm, mdipierro wrote:
>
>
>
> >http://www.web2py.com/plugins
--
You received this message because you are subscribed to the Google Groups
"web2
Are you using sqlite?
Do the other apps use the same database engine?
Is the showdown during the imports or also after the imports are
computed?
On Feb 1, 12:54 am, Jason Brower wrote:
> It's interesting, but now that my little import tool works.. I have
> noticed with very large imports 16,000
Sorry for the late reply, but it does not work still. Here are my
settings:
routes_in=[ ('/w2p/', '/myapp/default/index/'), ('/w2p/(?P.*)$','/
\g')]
routes_out=[('/(?P.*)$','/w2p/\g')]
I still get unknown ticket on plain /w2p/
On Jan 29, 9:31 pm, mdipierro wrote:
> This route alone
>
> routes_
cool I want to have that but the link is dead!
On Jan 31, 6:03 pm, mdipierro wrote:
> http://www.web2py.com/plugins
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe fr
Try this:
db.defint_table(...
Field('previous_planet','reference planet'),
...)
Then after the table definition:
db.planet.previous_planet.requires=IS_NULL_OR(IS_IN_DB
(db.db.planet.id))
On Feb 1, 7:12 am, Carl wrote:
> If I want a planet record to point to another planet record?
>
> If I use t
Hi,
I am using web2py to build an application to read a few .JSON files
which are updated periodically (every 300s), the information within
the files will be decoded and used to update a database as well update
some screens. As I am new to all web2py and python, could anyone tell
me how I can lo
I suspect it may be because you don't have python 2.5 installed. What
OS?
On Feb 1, 6:23 am, tiago almeida wrote:
> Do you have easy_install instaled? Try easy_install -U hashlib (without
> 2.3). Does it give you the same error?
> --
>
>
>
> On Sun, Jan 31, 2010 at 12:17 PM, weheh wrote:
Thanks, that did the trick. All fixed.
On Feb 1, 12:33 am, mdipierro wrote:
> yes, same problem as above.
>
> On Jan 31, 10:29 pm, weheh wrote:
>
>
>
> > After I dropped the assignment__tmp column, I still got a ticket from
> > web2py and this time it's complaining about a duplicate column name
Hello all,
I really like web2py but allow me to say that the documentation in general
is a bit lacking.
For instance, the wiki looks to be unmantained for a long time. Also, I
don't see a way to create pages there.
As someone pointed out a few days ago, having only the pdf as a
documentation sour
If I want a planet record to point to another planet record?
If I use the following...
db.define_table('planet',
Field('radius', 'integer'),
Field('previous_planet', db.planet, requires=IS_NULL_OR
(IS_IN_DB(db,db.planet.id,'%(id)s'
I get KeyError: 'planet' whi
One of the best examples of a picture being worth a thousand words!
Thanks.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsub
After more experiments, I have encountered some unexpected
behaviour. This is what I did:
Create: test.html
{{=myvar}}
def test():
response.render('test.html',dict(myvar='MyVarTest'))
return dict()
Result ... default/test2: MyVarTest (OK and expected)
def test():
outstr = res
Do you have easy_install instaled? Try easy_install -U hashlib (without
2.3). Does it give you the same error?
--
On Sun, Jan 31, 2010 at 12:17 PM, weheh wrote:
> Oh, I forgot to mention that I ran easy_install-2.3 -U hashlib and the
> OS returned
>
> 'easy_install-2.3' is not recognized
you could use pylint to check for style consistency automatically
On Feb 1, 9:33 am, Richard wrote:
> > There are few catch-all except left and they should be removed.
>
> $ grep "except:" gluon/*py | wc -l
> 133
>
> On Feb 1, 2:28 pm, mdipierro wrote:
>
>
>
> > We have done throught many pep8 r
ok its done, new version and screenshot up
http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p
http://jaguar.biologie.hu-berlin.de/~fkrause/screenshot_webfolder.png
On Jan 31, 11:55 pm, selecta wrote:
> yes, good idea, will do that as soon as i find time for it
>
> On Jan 31,
hi massimo,
thanks for the suggestion, i'll try it as soon as i can. shouldn't
this be added to the framework as a standard feature? i think
retrieving images by their url is a common task.
On Jan 31, 8:28 pm, mdipierro wrote:
> I would do:
>
> def show():
> import os
> response.headers['
If I understand correctly, fetch() was added to web2py because at the
time GAE did not support urllib2.
Now GAE does support urllib2 which makes fetch() sort of redundant,
but we need to keep it for backward compatibility.
I found that urllib2 on GAE does not handle cookies as normal, so have
been
> There are few catch-all except left and they should be removed.
$ grep "except:" gluon/*py | wc -l
133
On Feb 1, 2:28 pm, mdipierro wrote:
> We have done throught many pep8 revisions but things like this happen.
> I will take patches to clean-up.
>
> There are few catch-all except left and t
95 matches
Mail list logo