will look into this asap.
On Jul 29, 1:54 am, Alastair Medford
wrote:
> After wandering around in the source, I think I've found the culprit
> code.
> In html.py -> Input class -> _post_processing function, there's the
> following condition:
>
> elif t == 'radio':
> if str(self['value']) == s
After wandering around in the source, I think I've found the culprit
code.
In html.py -> Input class -> _post_processing function, there's the
following condition:
elif t == 'radio':
if str(self['value']) == str(self['_value']):
self['_checked'] = 'checked'
else:
self['_ch
I'm also wondering if there's any plan to try to keep the online
version of the book more up-to-date as new features are added rather
than revising only once a year. Seems like that would be a big help if
it's feasible.
Anthony
On Jul 27, 6:49 am, mdipierro wrote:
> This is very very preliminary
Regarding content, it looks like the focus of the book revision has
been documenting all the newer features, and that should certainly be
the priority. Perhaps this is beyond the intended scope of the current
revision, but at some point I think it would also be helpful to expand
the discussion of s
On Jul 28, 6:26 am, René wrote:
> I've experienced the same behaviour, and I noticed something that
> probably is the solution. I have a website that provides several
> quizes and questionaires, and all radio buttons created using the
> INPUT() method have the "checked" attribute set by default.
It would be a blast to have a debug mode. That way if you are the local user it
will automatically take you to the error. But that could get nast if you use
alot of ajax calls.
Best regards... J
- Original message -
> look at post #5 in this thread
> http://groups.google.com/group/web2py
The one "leak" process per hour coincident is "coincidently" matching
the one run per hour of admin/cron/expire_sessions.py
That really raises my concern, cause I just gonna use cron as a trick
to touch my app's cache frequently. :-/
By the way, which os is Mike Ellis using? I did not observe sam
Nevermind,
I Solved using this way:
_href=URL(request.application,'plugin_wiki','page',args=[row,])
.load is not appended to the link.
Tks
2010/7/29 Bruno Rocha
>
> ##plugin_wiki
> There was some change in the URL() helper, from 1.81.4 to 1.81.5?
>
> To the search widget in <
> http://web2py
##plugin_wiki
There was some change in the URL() helper, from 1.81.4 to 1.81.5?
To the search widget in <
http://web2pybrasil.appspot.com/cursoweb2py/default/index>
before, in 1.81.4 I did this:
return UL(*[LI(*[A(db(db.plugin_wiki_page.slug==row)\
.select(db.plugin_wiki_page.title)[0].title,\
Okay, if you have any question or suggestion please tell me. :)
On Jul 29, 4:46 am, mdipierro wrote:
> No. like inclusion in web2py_src.zip as it is.
>
> On Jul 28, 11:42 am, keitheis wrote:
>
>
>
> > like inclusion_login_form.py ?
>
> > On Jul 28, 12:50 am, mdipierro wrote:
>
> > > +1. I am th
>
> By The Way
> There are many differences between plugin_wiki and c2p? which are most
> important?
>
> 2010/7/28 Bruno Rocha
> >
> > TKS.
> >
> > Explained a lot to me,
> > I'd be posting a thread pointing an error to render the sidebar in
> plugin_wiki.
> > now I'll get with a widget.
> > (Addi
TKS.
Explained a lot to me,
I'd be posting a thread pointing an error to render the sidebar in
plugin_wiki.
now I'll get with a widget.
(Addicting in widgets)
2010/7/28 mdipierro
> mind that plugin_wiki in itself does not uses meta-header nor meta-
> footer not meta-sidebar.
>
> cube2py uses the
SORRY! =D
--
Thadeus
On Wed, Jul 28, 2010 at 6:22 PM, mdipierro wrote:
> WOW. Uploading to trunk. Now I need to revise the book again. :-(
>
> On Jul 28, 5:51 pm, Thadeus Burgess wrote:
>> >>> URL(r=request, c='hello', f='world', args=['hi'],
>> >>> vars={'q':'greetings'}, anchor='the_worl
Sorry for my delay in testing. The gluon/tools.py seems to be
compatible now and the rocket patch seems to work also. However, the
hashlib issue still exists as I'm still getting this error:
AttributeError: 'builtin_function_or_method' object has no attribute
'new'
I think Opera does as well. You can download a plugin for IE that can
serve in a limited functionality too, at least enough to figure out
why IE likes to mess everything up =)
--
Thadeus
On Wed, Jul 28, 2010 at 6:19 PM, MikeEllis wrote:
> Same approach also works with the built-in Chrome Dev
WOW. Uploading to trunk. Now I need to revise the book again. :-(
On Jul 28, 5:51 pm, Thadeus Burgess wrote:
> >>> URL(r=request, c='hello', f='world', args=['hi'], vars={'q':'greetings'},
> >>> anchor='the_world')
>
> '/welcome/hello/world/hi#the_world?q=greetings'>>> URL(c='hello', f='world',
Same approach also works with the built-in Chrome DevTools if you're
using that browser.
On Jul 28, 6:11 pm, Thadeus Burgess wrote:
> use firebug, set a breakpoint in the javascript and look at the
> current stack at that point using firebug.
>
> --
> Thadeus
>
>
>
> On Wed, Jul 28, 2010 at 4:41
>>> URL(r=request, c='hello', f='world', args=['hi'], vars={'q':'greetings'},
>>> anchor='the_world')
'/welcome/hello/world/hi#the_world?q=greetings'
>>> URL(c='hello', f='world', args=['hi'], vars={'q':'greetings'},
>>> anchor='the_world')
'/welcome/hello/world/hi#the_world?q=greetings'
Attache
look at post #5 in this thread
http://groups.google.com/group/web2py/browse_thread/thread/5fd5303e6a2fa5c5/d7d7073ee2241bdb
(also by me). i used to to create a custom view on google app engine
for reading tickets. (i don't use it anymore because i just use the
google logs), but you might be able
unfortunately this is still a google problem. i'd love for them to
solve it (and my clients would be willing to pay for the service)
cfh
On Jul 28, 8:27 am, Vidul Petrov wrote:
> Does this mean that GAE SSL support is practically useless for now?
> Because one should either stick to subdoma
ok
On Jul 28, 4:52 pm, Thadeus Burgess wrote:
> For a little more advanced version of what Massimo just posted:
>
> This allows you to use both.
>
> URL(r=request, c=, f=.)
> and
> URL(c=, f=.)
>
> http://packages.python.org/web2py_utils/init.html#gurlhttp://hg.thadeusb.com/Web/web2py_uti
No. We are thinking about it.
On Jul 28, 3:26 pm, SaveTheRbtz wrote:
> PostgreSQL has a very useful feature: ARRAY
> (http://www.postgresql.org/docs/8.4/static/arrays.html) data type.
>
> Does web2py supports this type?
mind that plugin_wiki in itself does not uses meta-header nor meta-
footer not meta-sidebar.
cube2py uses them because it has a special payout that does things
like
{{=plugin_wiki.embed_page('meta-header') or XML('%s%s' % (response.title, response.subtitle))}}
So when
PostgreSQL has a very useful feature: ARRAY (
http://www.postgresql.org/docs/8.4/static/arrays.html ) data type.
Does web2py supports this type?
I make an application, that i developed in last two weeks. Where i
submit or mail to anyone?
On Jul 22, 12:28 pm, NetAdmin wrote:
> Web2py ApplicationExhibition
>
> Do you have a Web2py app that you'd like to show the world?
> If so, you may be interested in the Web2py ApplicationExhibition.
>
>
There clearly is a problem with the cron processes.
Massimo
On Jul 28, 4:10 pm, MikeEllis wrote:
> Update: (Summarizes a couple of emails exchanged with Massimo)
>
> Yesterday I found that my instance of web2py appeared be "leaking"
> processes at about 1 per hour. Massimo suggested running wit
use firebug, set a breakpoint in the javascript and look at the
current stack at that point using firebug.
--
Thadeus
On Wed, Jul 28, 2010 at 4:41 PM, Kenneth wrote:
> Hello,
>
> I'm trying to make a ajax call but keep getting
> document.getElementById(t) is null from row 32 in web2py_ajax.h
For a little more advanced version of what Massimo just posted:
This allows you to use both.
URL(r=request, c=, f=.)
and
URL(c=, f=.)
http://packages.python.org/web2py_utils/init.html#gurl
http://hg.thadeusb.com/Web/web2py_utils/file/697470f78d16/web2py_utils/utils.py#l11
The reason we
Hello,
I'm trying to make a ajax call but keep getting
document.getElementById(t) is null from row 32 in web2py_ajax.html.
How can I debug what t is in the getElementById(t)?
Kenneth
Massimo provided excellent examples of meta-menu and meta-code on
Vimeo. However, could someone post examples of meta-header, meta-
sidebar, and meta-footer?
Thanks!
Update: (Summarizes a couple of emails exchanged with Massimo)
Yesterday I found that my instance of web2py appeared be "leaking"
processes at about 1 per hour. Massimo suggested running with -N to
disable cron. I started two instances this way -- one under winpdb
and another directly. They've
1) It is a bit more complex because of static, appadmin, and admin.
You can map
/function/var1/var2
into
/app/controller/function/var1/var2
using a file routes.py
--- begin file
routes_in=[
('/admin/$anything','/admin/$anything'),
('/static/$anything','/app/static/$anything'),
('/app
In trunk now
On Jul 28, 1:58 pm, mwolfe02 wrote:
> There's a generic except: in dal.py/sql.py that prevents SyntaxErrors
> from being reported.
>
> For example,
>
> db = DAL('mssql://user:p...@127.0.0.1/')
>
> results in:
>
> RuntimeError: Failure to connect to DB. Tried 5 times
>
> instead of:
No. like inclusion in web2py_src.zip as it is.
On Jul 28, 11:42 am, keitheis wrote:
> like inclusion_login_form.py ?
>
> On Jul 28, 12:50 am, mdipierro wrote:
>
> > +1. I am thinking about inclusion
>
> > On Jul 27, 11:37 am, keitheis wrote:
>
> > > No problem.
>
> > > It extends the built-in l
hello,
when an error occurs, a nice formatted page with something like "Invalid
request" appears.
Then you have to got to the error messages,
try to open that ( for which an adminstrators password is required).
Isn't it possible to get the content of the error message right away insted of
"In
I'm a newbie, so my questions probably have easy answers, but anyway.
Among a few things, there are two I don't understand and think can be
simplified.
1. this url: app/controller/function/var1/var2
For me at least, most of the time I probably have only one
controller. If there is one control
There's a generic except: in dal.py/sql.py that prevents SyntaxErrors
from being reported.
For example,
db = DAL('mssql://user:p...@127.0.0.1/')
results in:
RuntimeError: Failure to connect to DB. Tried 5 times
instead of:
SyntaxError: Invalid URI string in SQLDB: mssql://user:p...@127.0.0.1/
Thank you... It's rock.
I just add a check if fieldlable is different of None to not getting
blank field name... ;-)
for fieldname in db.atable.fields:
if labels[fieldname]!=None:
db.atable[fieldname].label = labels[fieldname]
#.get('fieldname',fieldname)
else:
db.ata
Very helpful. One small problem, though -- links from index terms that
are single letters (e.g., A, B, P), common words (e.g., CODE), or
parts of common words (e.g., CAS) end up highlighting lots of words in
the chapter that were not intended by the search (e.g., the link for
the A helper highlight
like inclusion_login_form.py ?
On Jul 28, 12:50 am, mdipierro wrote:
> +1. I am thinking about inclusion
>
> On Jul 27, 11:37 am, keitheis wrote:
>
>
>
> > No problem.
>
> > It extends the built-in login form with external login form.
>
> > Like the bottom of the
> > slicehttp://www.web2pyslice
Very nice! I especially like the yellow highlighting of the search
terms. Maybe this is nitpicking or you just haven't gotten that far
yet, but I think the index should be in case-insensitive alphabetical
order.
Also, I don't know if you're taking feedback on specific content yet,
but I think th
This is not a web2py issue.
http://aralbalkan.com/1632
unless things have changed.
Massimo
On Jul 28, 10:27 am, Vidul Petrov wrote:
> Does this mean that GAE SSL support is practically useless for now?
> Because one should either stick to subdomain.appspot.com or use no
> SSL.
>
> On Jul 28, 6
No because the function has no way to know it is being access by CRON.
Moreover if the function requires login it probably assumes the
existence of a user. In case of cron who is the user? What if no user
yet registered with the app?
On Jul 28, 10:24 am, Iceberg wrote:
> I am digging out an old
Does this mean that GAE SSL support is practically useless for now?
Because one should either stick to subdomain.appspot.com or use no
SSL.
On Jul 28, 6:23 pm, mdipierro wrote:
> This is a security hazard
>
> On Jul 28, 10:15 am, Vidul Petrov wrote:
>
>
>
> > Is there a way the Auth methods to r
I am digging out an old thread, quoted at the of this post, (up side
down).
I can confirmed Mika's problem does exist. In fact, not to mention
cron feature, even a normal request from browser will be intercepted
by any presence of @auth.requires(...)
For example:
@auth.requires(True) # or aut
This is a security hazard
On Jul 28, 10:15 am, Vidul Petrov wrote:
> Is there a way the Auth methods to run over GAE SLL (https://my-
> domain.appspot.com) and return to the hosted domain the same session?
>
> If, for example, users are logged in onhttps://my-domain.appspot.com
> they are still n
That works perfectly, thanks Massimo.
On Wed, Jul 28, 2010 at 4:12 PM, mdipierro wrote:
> If you use the db.table.field.store(...) function to handle the file
> safely you can still do
>
>
> {{=A('download',_href=URL(r=request,c='default',f='download',args='the.file.name.'))}}
>
> On Jul 28, 9:2
Is there a way the Auth methods to run over GAE SLL (https://my-
domain.appspot.com) and return to the hosted domain the same session?
If, for example, users are logged in on https://my-domain.appspot.com
they are still not logged on http://www.my-domain.com.
Does web2py support such cross-domain
If you use the db.table.field.store(...) function to handle the file
safely you can still do
{{=A('download',_href=URL(r=request,c='default',f='download',args='the.file.name.'))}}
On Jul 28, 9:29 am, Andrew Buchan wrote:
> Hello,
>
> Very simple, yet the documentation doesn't quite show how to d
Hello,
Very simple, yet the documentation doesn't quite show how to do it: I
want to show a download link to a file which is uploaded via SQLFORM,
but the form from which it will be downloaded from is a standard FORM.
Any pointers?
Thanks
Mind you can still create regular models.
On Jul 28, 9:16 am, Bruno Rocha wrote:
> Thank you, I'll put my whole code into meta-code
>
> 2010/7/28 mdipierro
>
>
>
> > No. only meta-code with IF and ONLY IF plugin_wiki_level=3 (the
> > default)
> > if you set level to 2 you can use widgets but not
Thank you, I'll put my whole code into meta-code
2010/7/28 mdipierro
> No. only meta-code with IF and ONLY IF plugin_wiki_level=3 (the
> default)
> if you set level to 2 you can use widgets but not code and if you
> lower to 1 no widgets, no code, only markmin.
>
> On Jul 28, 9:02 am, Bruno Roch
OK. Try the new General Index and Search features:
http://web2py.com/book2/default/index
On Jul 27, 5:49 am, mdipierro wrote:
> This is very very preliminary:
>
> http://web2py.com/book2
>
> It is not editable (yet) and I am still adding material but it does
> address a lot of issues.
> Pleas
No. only meta-code with IF and ONLY IF plugin_wiki_level=3 (the
default)
if you set level to 2 you can use widgets but not code and if you
lower to 1 no widgets, no code, only markmin.
On Jul 28, 9:02 am, Bruno Rocha wrote:
> At plugin_wiki index there is:
>
> InfoPages started with undescore are
Sorry I misunderstood the problem. There is no way cron can rely on
the existence of a web server running. yet there should be an option
to do what you suggest (but the URL would have to be provided).
On Jul 28, 8:46 am, Iceberg wrote:
> That is not the case. Let me better clarify my purpose in p
yes. there is a problem. I will take a look asap.
On Jul 28, 8:34 am, _po wrote:
> Hi,
>
> I am using radios and (checkboxes) in a form, but errors (when submit)
> are not displayed correctly.
> The error is put in the middle of the radio field. Take a look here
> :http://povauboin.free.fr/0aa08
At plugin_wiki index there is:
InfoPages started with undescore are considered system pages. In particular:
>>> Can I create a page started with _ ? e.g _mycustomsystempage ?
- meta-code must contain code
and it will be executed for every page.
- meta-menu must contain a
descripti
Thanks Massimo, however, using set() I assure distict elements, using your
LAMBDA solution, entries may duplicate.
SEARCH to plugin_wiki is running here :
http://web2pybrasil.appspot.com/cursoweb2py/
I need to search in different fields using a %LIKE% operator, my code now
needs some improvement t
That is not the case. Let me better clarify my purpose in pseudo code.
How about changing line 277~282 of gluon/newcron.py from:
elif action:
commands.extend(('-P',
'-N',models,
'-S',app+'/'+command,
Hi,
I am using radios and (checkboxes) in a form, but errors (when submit)
are not displayed correctly.
The error is put in the middle of the radio field. Take a look here :
http://povauboin.free.fr/0aa08aed-8a1e-47a5-ad98-5a8fbecad4aa/radio.png
Firebug gives me :
value not allowed
Mineur
At
Haha, works like a charm!! Thank you Massimo!
On Jul 28, 2:48 pm, mdipierro wrote:
> db(db.poll.id == 12).update(image
> =db.poll.image.store(request.vars.upload_file.file,request.vars.upload_file
> .filename))
>
> On Jul 28, 6:05 am, Zhe Li wrote:
>
>
>
> > Hello everyone!
>
> > I am try to up
> desired. But after the form submits, page refreshes etc, the lastradiobuttons
> in the list are selected. IE, rather than defaulting to
> the first element selected as it did the first time, it defaults to
> the last. As this form will be submitted many times in a row, and the
> first option is
db(db.poll.id == 12).update(image
=db.poll.image.store(request.vars.upload_file.file,request.vars.upload_file.filename))
On Jul 28, 6:05 am, Zhe Li wrote:
> Hello everyone!
>
> I am try to upload some pictures from safari on iPod, using this
> methodhttp://www.cliqcliq.com/support/quickpic/#web-a
You can do what you suggest. You cant find the post in
request.env.server_port
You see all variables here :
http://web2py.com/examples/simple_examples/status
yet I feel there may be a better way using a queue and a background
process (without CRON). It depends on what this is really for.
On Jul
Hello everyone!
I am try to upload some pictures from safari on iPod, using this
method
http://www.cliqcliq.com/support/quickpic/#web-app-integration
and uploads are sent using standard POST multipart/form-data encoding.
This is my code for receiving submissions:
But cache.ram is theoretically faster than cache.disk.
Besides, what is the pros and cons of using urllib.urlopen('http://
localhost:8000/myapp/...').read() to visit an action? My draft:
Pros:
- There is no need to app's environment for the cron job to run, hence
avoids potential locking problems
Thanks michele,
I was just reading up on all that (windows logging is another thing I have
no clue about :-) .
I already have pywin32 extensions, which was necessary for some other part
of web2py to run. I think my errors are being sent to the event viewer as
information from web2py does show up t
I see the problem. There must have been an error in building the win
distribution. This takes me some time so I cannot fix it overnight.
Meanwhile, can you run it from source? It should work.
On Jul 28, 4:16 am, Iceberg wrote:
> Hi, did anyone who successfully uses web2py_win.zip and your app nee
http://sourceforge.net/projects/pywin32/
2010/7/28 Michele Comitini
> I do not use win since ages ( :) ), but i remember that using pywin32
> extensions it was easy to debug sending error from the application
> running as a service to the windows logging service.
>
>
>
> 2010/7/28 Andrew Buc
oops I see the post now.
On Jul 28, 2010, at 5:06 AM, Massimo Di Pierro wrote:
The solution is cache.disk
> PS: Using cache.disk() is not (yet) a workaround for
web2py_win.zip. I
> report a bug about that in another post.
I do not recall this. Can you tell us more and point to the post?
It was never evaled but I can see roblems with length being a
string. ;-)
On Jul 28, 3:49 am, Lionel Barret wrote:
> Hi Massimo, I spent the night on this and I think I got it.
>
> The problem, it is indeed the length but with a twist.
>
> In the table I showed you (see above), the length is spec
You must configure apache to do it but I have a security objection.
If you go on the clear (http) for all the other pages you are passing
the session cookie in the clear. If an attacker has the session
cookie, he can access the change_password page via https.
This is not a web2py specific issue.
The solution is cache.disk
> PS: Using cache.disk() is not (yet) a workaround for
web2py_win.zip. I
> report a bug about that in another post.
I do not recall this. Can you tell us more and point to the post?
Massimo
On Jul 28, 2010, at 4:48 AM, Iceberg wrote:
Scenario: In one of my sma
I do not use win since ages ( :) ), but i remember that using pywin32
extensions it was easy to debug sending error from the application
running as a service to the windows logging service.
2010/7/28 Andrew Buchan
> Massimo,
>
> Where is this meant to print to? I'm running the whole thing as
>
Massimo,
Where is this meant to print to? I'm running the whole thing as
a windows service so there's no command line open. Also there's tool.py and
tools.pyc, I can only edit tools.py, but I'm thinking it's the pyc file
which is being read? Do I need to recompile or do something similar? If so,
I
Scenario: In one of my small enterprise app, my action is time
consuming, so I use cache. Furthermore, I setup a cron job to "touch"
this action frequently, hoping that other real users will be benefited
by always have cache hits. Example as below.
@cache(request.env.path_info,time_expire=1800,cac
I have solved the problem.
Thanks alot to you all!
Hello,
1. I want to create my own registration page as I want to create group
memberships at the same time, but what function do I call to add a new
user (I presume a straight insert into auth_user won't do the trick?)
2. How do I make it so the user doesn't have to login every time they
visit the
Hi, did anyone who successfully uses web2py_win.zip and your app needs
a cache.disk()?
I just tried that but encountered following error. I guess the problem
is due to missing dbhash.py in web2py's windows builder. Massimo
please take a look.
Version 1.81.5 (2010-07-22 23:56:21)
Database drivers
Hi Massimo, I spent the night on this and I think I got it.
The problem, it is indeed the length but with a twist.
In the table I showed you (see above), the length is specified as a
string : length="128".
But in the Field documentation, the length is an int.
I suppose the length was eval'd bef
very nice: +1
2010/7/27 mdipierro
> http://github.com/saucelabs/monocle#readme
>
> simple yet effective
How do I setup web2py to use https for all authentications and user
registration but normal http for the rest of the url's?
Regards
Johann
--
"Be not deceived; God is not mocked: for whatsoever a
man soweth, that shall he also reap."
Galatians 6:7
On Jul 27, 8:49 pm, mdipierro wrote:
> This is very very preliminary:
>
> http://web2py.com/book2
>
> It is not editable (yet) and I am still adding material but it does
> address a lot of issues.
> Please use this thread to add comments in particular:
>
> What sections are missing?
> What ne
Thanks !
On Wed, Jul 28, 2010 at 06:46, mdipierro wrote:
> in trunk
>
> On Jul 27, 4:37 am, _po wrote:
> > Hi Massimo,
> > I sent you this last week :
> > I hope the patch is still up to date...
> >
> > With this patch, radio widget can use 'cols' attribute ; As previously
> > done for
> > chec
84 matches
Mail list logo