That is better, but still not good enough because form.accepts(...,
keepvalues=True) has no effect.
Anyway, Massimo gave enough hint for the correct direction. Here comes
my patch to html.py
__all__.append('OPTGROUOP') # Finally we have native OPTGROUP support!
class OPTGROUP(DIV):
tag = 'opt
Can somebody explain to me why the following does not cause the
copyright notice to be centered?
Copyright © 2009 -
Powered by http://www.web2py.com";>web2py
Regards
Johann
--
"Finally, brethren, whatsoever things are true, whatsoever things
Hi
when trying to get the rss feeds to work I made something like :
'title' : T('my_title')
'link' : ''
'description':T('my_description')
'created_on' : '',
'entries'
But I gor that error " no rss, so I opened my generic.rss file and
printed the exception error message
I got the error :
l
in views/web2py_ajax.html add the 'error' part
function web2py_ajax_page(method,action,data,target) {
...
'success': function(text) {
jQuery('#'+target).html(text);
web2py_trap_form(action,target);
web2py_ajax_init();
},
'error': function(xhr, textStatus, errorThrown) {
That will center the contents within the div. However, the div
auto-sizes to it's content unless you give it other style properties.
You are assuming that your div is the full width of the browser window.
To do what you want, set two more styles on the div:
width: 100%; /* Force the width to
Thanks Tim,
> You shouldn't need the tags. They only confuse the matter since you're
> doing direct formatting.
That was actually the line in the default web2py layout.html. I
removed the and the text was centering ...
Regards
Johann
--
"Finally, brethren, whatsoever things are true, what
very useful. Thank you.
On Apr 21, 12:30 am, howesc wrote:
> I have adapted the GAEMA code to allow my applications to authenticate
> with Google, Facebook, and/or Twitter. Though lightly tested, I
> believe this to work with GAE and in a "normal" web2py install.
>
> Check out the details
> her
I do not know what is calling "publish" it is not web2py. Perhaps the
rss module. Try:
'title' : str(T('my_title'))
'link' : ''
'description':str(T('my_description'))
'created_on' : '',
'entries'
On Apr 21, 7:04 am, "hamdy.a.farag" wrote:
> Hi
>
> when trying to get the rss feeds to work I ma
What do other people think about this? I never needed it because I use
firebug. Pros? Cons?
On Apr 21, 7:50 am, selecta wrote:
> in views/web2py_ajax.html add the 'error' part
>
> function web2py_ajax_page(method,action,data,target) {
> ...
> 'success': function(text) {
> jQuery('#'+target)
awesome thanks!
On Apr 19, 2010, at 9:29 AM, mdipierro wrote:
> NOO!
>
> URL(r=request, f='gripe',anchor=comments,args=gripe.id)
>
>
>
> On Apr 19, 9:12 am, Thadeus Burgess wrote:
>> You probably want,
>>
>> XML('#comments', sanitize=False)
>>
>> --
>> Thadeus
>>
>> On Mon, Apr 19, 20
Worked :) thanks
On Apr 21, 4:11 pm, mdipierro wrote:
> I do not know what is calling "publish" it is not web2py. Perhaps the
> rss module. Try:
>
> 'title' : str(T('my_title'))
> 'link' : ''
> 'description':str(T('my_description'))
> 'created_on' : '',
> 'entries'
>
> On Apr 21, 7:04 am, "ham
Mmmmh, my bad you have to create the environment without the site packages
:
mkvirtualenv --no-site-packages web2py
(It probably worked on my side because I've reinstalled python-simplejson,
after creating the environment ...)
Hope this helps...
-Mathieu
On Mon, Apr 19, 2010 at 13:58, szimszon
Massimo,
Is it possible to have this as a trigger/checkbox in admin as an
OPTIONAL behaviour for all errors(not only LOAD components)?
this way we left the default behaviour and allow alternate.
I personally hate opening new tab/window for error browsing since it
almost always takes <1sec to fin
On Apr 21, 8:31 am, Johann Spies wrote:
> Thanks Tim,
>
> > You shouldn't need the tags. They only confuse the matter since you're
> > doing direct formatting.
>
> That was actually the line in the default web2py layout.html. I
> removed the and the text was centering ...
If you look at base.
I keep getting this error on my console. I am pretty sure I have my
permissions as lenient as possible.
any clues would be great
started by
python web2py -a "??" -i 127.0.0.1 -p 8001
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.77.3 (2010-04-20
Which version did you upgrade from? Which os? Running from binary or
source?
On Apr 21, 12:13 pm, dspiteself wrote:
> I keep getting this error on my console. I am pretty sure I have my
> permissions as lenient as possible.
> any clues would be great
>
> started by
> python web2py -a "??" -i
I have been learning web2py and decided to create a simple ticket
system. Thus far I've been able to read the book/documentation or look
at others code and been able to hack my way through most issues.
However in my situation I need to have a default user created for
default administrative purposes
On Tue, Apr 20, 2010 at 16:58, Yarko Tymciurak
wrote:
> RE: using R- as a prefix to release number (especially if adding
> "RELEASE" as a tag that always points to the LATEST RELEASE):
>
> Note that the "RELEASE" tag will move: it essentially will be re-
> tagging at each release.
>
> As relases
ticket_master = db.auth_user.insert(first_name=fname,
last_name=lname,
email=maile,
password=passwd)
should be
ticket_master = db.auth_user.insert(first_name=fname,
Hello,
in 1.77.3, the following crontab file fails:
==
#crontab
#add
#0-59/1 * * * * www-data cd /opt/web2py/ && python web2py.py -C -D 1
>> /tmp/cron.output 2>&1
#to /etc/crontab and restart cron for this to take effect
#run process every hour, at 5 past the hour
5 * * * * root *processsta
I like Yarko's proposal of R- as it will stay in line with B- B2-, RC- etc etc.
Hopefully we can get to a point we start having release candidates
instead of jumping 4 versions because of simple bugfixes :) (I'm
staring at you 1.77.1-4)
--
Thadeus
On Wed, Apr 21, 2010 at 6:16 PM, Álvaro Just
How about
password = CRYPT()(passwd)[0]
--
Thadeus
On Wed, Apr 21, 2010 at 6:54 PM, mdipierro wrote:
> ticket_master = db.auth_user.insert(first_name=fname,
> last_name=lname,
> email=maile,
> pa
You probably need to 'crypt' the password before inserting it into the
database.
This can be done using something like:
pw_hasher = IS_CRYPT()
ticket_master = db.auth_user.insert(first_name=fname,
last_name=lname,
email=maile,
Couple of questions about web2py Auth:
1) Can I stop Auth.register from logging on as the newly created user
after registration?
2) Is there a way to add group membership to form returned by
Auth.register?
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
this helps debug the problem. I will look more into it tomorrow.
On Apr 21, 7:04 pm, howesc wrote:
> Hello,
>
> in 1.77.3, the following crontab file fails:
>
> ==
> #crontab
>
> #add
> #0-59/1 * * * * www-data cd /opt/web2py/ && python web2py.py -C -D 1>>
> /tmp/cron.output 2>&1
>
> #to /et
We have had nightly builds for long time but people do not check them.
More precisely very few people check them and therefore bugs are not
caught.
The bugs that caused the problems in 1.77.1,2 were not introduced the
night before but weeks before.
Most people only download stable releases.
Massim
NO. You cannot use
password=IS_CRYPT()(passwd)[0])
You must use
password=db.auth_user.password.requires[0](passwd)[0])
the reason is that IS_CRYPT() by default uses MD5 while if you pass a
key IS_CRYPT(key='sha521:blabla') is uses better algorithms (for
example hmac+sha512). So to encrypt the p
1) Yes. Look at the bottom of this page:
http://www.web2py.com/book/default/section/8/2
If you set a log message to None, the log is not performed.
2) Not sure I understand. You can do
auth.settings.register_onaccept=lambda form: do_something_with(form)
On Apr 21, 8:14 pm, rohfle wrote:
> Cou
When I said "logging on", I meant the process of login, not logging
events.
Elaborating on the original questions:
1) For example, I login as an administrator and I register a user name
named bob. When I click submit to register bob, the currently logged-
in user gets switched from administrator t
On Apr 21, 2010, at 7:09 PM, mdipierro wrote:
> NO. You cannot use
>
> password=IS_CRYPT()(passwd)[0])
>
> You must use
>
> password=db.auth_user.password.requires[0](passwd)[0])
>
> the reason is that IS_CRYPT() by default uses MD5 while if you pass a
> key IS_CRYPT(key='sha521:blabla') is us
auth.resiter() form is not thought for person A to register person B
but for person A to register itself.
You can use appadmin to register another person or you have to create
your own interface for example via
form=crud.create(db.auth_user)
You can also make your form more complex
form=S
It is crytical that the my_hmac_key in your example be the same as
auth.settings.hmac_key
On Apr 21, 10:09 pm, Jonathan Lundell wrote:
> On Apr 21, 2010, at 7:09 PM, mdipierro wrote:
>
> > NO. You cannot use
>
> > password=IS_CRYPT()(passwd)[0])
>
> > You must use
>
> > password=db.auth_user.pass
> form=SQLFORM.factory(db.auth_user,Field('group1')):
btw this
( I mean concatenating/passing "table definition" like f.e
"db.some_table" along with Field('some_field') in the
SQLFORM.factory() )
is not in the book(?) and it doesn't look google-able to me anywhere else
this maybe obvious from p
It is in the book but it is called form_factory. web2py support both
names.
On Apr 21, 11:22 pm, Kuba Kucharski wrote:
> > form=SQLFORM.factory(db.auth_user,Field('group1')):
>
> btw this
> ( I mean concatenating/passing "table definition" like f.e
> "db.some_table" along with Field('some_field
SUMMARIZE:
could we improve web2py documentation dramatically w/o creating a lot
of new content just by tagging?
FULL:
After Massimo's post in "Preventing login after Auth.register; Adding
groups to the register form"
>It is in the book but it is called form_factory. web2py support both
>names
35 matches
Mail list logo