[web2py] Re: Putting time in a string
Thanks for your reply. The problem was when I put ip = str(request.client), when I took away str(), it the gave me correct ip address. Thanks again. G Smith On Wednesday, 4 November 2015 22:38:17 UTC, Dave S wrote: > > > > On Wednesday, November 4, 2015 at 7:13:16 AM UTC-8, Garry Smith wrote: >> >> Hi >> Thanks for the reply, the session.time was left in my mistake, >> I tried it without the session and it still gave me the same error, I >> have tried your suggestion and is working. >> The only problem I am having know is the request.client is sending a ip >> of 127.0.0.1, which ever client pc I use. >> This is only being used on a intranet and should pick up a 10.1.2.* as >> the ip. >> >>> >>> > 127.0.0.1 is localhost, and if you're testing this code from a browser > running on the machine that runs web2py, that's what you'd expect. If > your browser is on a different machine, then I can't explain it without > seeing more details. You might be able to use the debugging toolbar to see > what you've got in your view: > > {{=response.toolbar()}} > > > http://web2py.com/books/default/chapter/29/03/overview#Debugging-toolbar> > > > I am quite fond, by the way, of using the CAT() helper when my controller is > building up a string from pieces of "stuff". > > > HTH > > > /dps > > > > > > On Wednesday, 4 November 2015 22:38:17 UTC, Dave S wrote: > > > > On Wednesday, November 4, 2015 at 7:13:16 AM UTC-8, Garry Smith wrote: >> >> Hi >> Thanks for the reply, the session.time was left in my mistake, >> I tried it without the session and it still gave me the same error, I >> have tried your suggestion and is working. >> The only problem I am having know is the request.client is sending a ip >> of 127.0.0.1, which ever client pc I use. >> This is only being used on a intranet and should pick up a 10.1.2.* as >> the ip. >> >>> >>> > 127.0.0.1 is localhost, and if you're testing this code from a browser > running on the machine that runs web2py, that's what you'd expect. If > your browser is on a different machine, then I can't explain it without > seeing more details. You might be able to use the debugging toolbar to see > what you've got in your view: > > {{=response.toolbar()}} > > > http://web2py.com/books/default/chapter/29/03/overview#Debugging-toolbar> > > > I am quite fond, by the way, of using the CAT() helper when my controller is > building up a string from pieces of "stuff". > > > HTH > > > /dps > > > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: Compute insert-only
compute field not work when using after insert callback too. e.g. def __after_insert_delivery_order(f, id): db(db.customer.id == f.customer).update(last_delivery_order_net = f.gross - f.tarra) # work #db(db.customer.id == f.customer).update(last_delivery_order_net = f.net) # not work def on_define_delivery_order(table): table._after_insert.append(__after_insert_delivery_order) table.net.compute = lambda r: r['gross'] - r['tarra'] db.define_table('delivery_order', Field('delivery_order_no'), Field('customer', 'reference customer'), Field('tarra', 'integer'), Field('gross', 'integer'), Field('net', 'integer'), on_define = on_define_delivery_order, format = '%(delivery_order_no)s') not sure is it bug, or normal behaviour. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: custom auth table email field set to unique=True accepts non unique values with different case.
Thank you anthony On Wednesday, November 4, 2015 at 11:09:34 PM UTC+5:30, arihant daga wrote: > > In custom auth table even if email field is set to unique=true, if user > inputs two different values different in case ex.( 'em...@gmail.com' and ' > em...@gmail.com' ) it will accepts both and will store both of them in > database. Hence enabling a user to signup with the same email id multiple > times with multiple usernames. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] enable automatic login after email verification
I want users to enable automatically login after email verification but not allowing them login right after registration before email verification. Currently i have these settings. auth.settings.registration_requires_verification = True auth.settings.login_after_registration = False auth.settings.registration_requires_approval = False auth.settings.verify_email_next=URL('default','index') So right now it stops user after registering and send a verification email. When user clicks on the link he is taken to index page but is not logged in automatically. How ca i achieve login after email verification automatically? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] its possible get mac address?
Hi All! Got it. If the server and client are on the same network, including the web2py it is installed on the network server. How to get the mac address by ARP? Thanks again, Fabiano. 2015-11-04 21:40 GMT-02:00 Dave S : > > On Wednesday, November 4, 2015 at 11:58:07 AM UTC-8, Carlos Cesar > Caballero wrote: > > >> El 04/11/15 a las 14:30, Fabiano Almeida escribió: >> >> Hi! >> >> Web2py can obtain mac address from user? >> >> > Bassicly, the MAC address don't cross the routers, so, you can't get > the mac address of a client from a external network server, > > you only can get the MAC of the last router. You could do some tweak > using ARP, but only if the client and server are in the same subnet. > > Web2py does give you access to the requesting IP. This my be a NAT'd > value if the client is on an internal network, which is mostly the case. > > /dps > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Custom Login is correct like this?
def user(): """ exposes: http:///[app]/default/user/login http:///[app]/default/user/logout http:///[app]/default/user/register http:///[app]/default/user/profile http:///[app]/default/user/retrieve_password http:///[app]/default/user/change_password http:///[app]/default/user/manage_users (requires membership in http:///[app]/default/user/bulk_register use @auth.requires_login() @auth.requires_membership('group name') @auth.requires_permission('read','table name',record_id) to decorate functions that need access control """ if request.args(0)=='register': redirect(URL('default','register')) else: if request.args(0)=='login': if (session.message_registration=="Vero"): response.flash="La tua richiesta di registrazione e' stata inviata al Consorzio. Aspetta un email di conferma prima di effettuare il tuo primo login"; redirect(URL('default','login')) return dict(form=auth()) def login(): form=auth.login() return dict(form=form) Is corret? I have a problem with the error message because i don't see the error but only the response.flash login incorrect..so I use if form.accepts(request,session): response.flash = 'form accepted' elif form.errors: response.flash = 'form has errors' else: response.flash = 'please fill the form' but I have a problem that i don't enter in if form.accepts(request,session): -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Custom Login is correct like this?
response.flash only lasts for the current request, but immediately after setting it, you do a redirect, which results in a new request being sent from the browser. In such a case, you should instead set session.flash, which will be copied into response.flash after the redirect. Also, note that Python has elif, which you should use instead of else: if. Anthony On Thursday, November 5, 2015 at 11:46:12 AM UTC-5, Alessio Varalta wrote: > > def user(): > """ > exposes: > http:///[app]/default/user/login > http:///[app]/default/user/logout > http:///[app]/default/user/register > http:///[app]/default/user/profile > http:///[app]/default/user/retrieve_password > http:///[app]/default/user/change_password > http:///[app]/default/user/manage_users (requires membership in > http:///[app]/default/user/bulk_register > use @auth.requires_login() > @auth.requires_membership('group name') > @auth.requires_permission('read','table name',record_id) > to decorate functions that need access control > """ > if request.args(0)=='register': > redirect(URL('default','register')) > else: > if request.args(0)=='login': > if (session.message_registration=="Vero"): > response.flash="La tua richiesta di registrazione e' stata > inviata al Consorzio. Aspetta un email di conferma prima di effettuare il > tuo primo login"; > redirect(URL('default','login')) > return dict(form=auth()) > > def login(): > form=auth.login() > return dict(form=form) > > Is corret? I have a problem with the error message because i don't see the > error but only the response.flash login incorrect..so I use > > if form.accepts(request,session): > response.flash = 'form accepted' > elif form.errors: > response.flash = 'form has errors' > else: > response.flash = 'please fill the form' > > but I have a problem that i don't enter in > if form.accepts(request,session): > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: decorator "Or" operator syntax
actually, it might be okay the join in decorator ensures that user ID is in same physical records that are referenced in the URL vars will definitely get a full evaluation before goes to production -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Putting time in a string
On Thursday, November 5, 2015 at 1:10:32 AM UTC-8, Garry Smith wrote: > > > Thanks for your reply. > > > The problem was when I put ip = str(request.client), when I took away > str(), it the gave me correct ip address. > > Thanks again. > > G Smith > > >> So you're in good shape! Thanks for the update. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] its possible get mac address?
On Thursday, November 5, 2015 at 8:44:43 AM UTC-8, Fabiano Almeida wrote: > > Hi All! > > > Got it. If the server and client are on the same network, including the > web2py it is installed on the network server. How to get the mac address by > ARP? > > Looks like you want to investigate the scapy library. You may need elevated privileges on your scanning system ("administrative rights"), according to some examples. /dps > 2015-11-04 21:40 GMT-02:00 Dave S >: > >> >> On Wednesday, November 4, 2015 at 11:58:07 AM UTC-8, Carlos Cesar >> Caballero wrote: >> >> >>> El 04/11/15 a las 14:30, Fabiano Almeida escribió: >>> >>> Hi! >>> >>> Web2py can obtain mac address from user? >>> >>> > Bassicly, the MAC address don't cross the routers, so, you can't get >> the mac address of a client from a external network server, >> > you only can get the MAC of the last router. You could do some tweak >> using ARP, but only if the client and server are in the same subnet. >> >> Web2py does give you access to the requesting IP. This my be a NAT'd >> value if the client is on an internal network, which is mostly the case. >> >> /dps >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Storing the original filename using grid
Hello all. Is it possible to store the original filename of an uploaded file in a table using grid for adding a record? The table: db.define_table('memos', Field('code', type='string'), Field('memo_file_name', type='string'), Field('memo_file', 'upload'), auth.signature) Thanks, regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Storing the original filename using grid
please check this discussion, falko already point it out, i think in your case, just set a upload type field readable = false and set links in grid with the value like falko describe in that forum. ref: https://groups.google.com/forum/#!topic/web2py/6zLq7HPzTmc best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: Why won't web2py serve my .vcf file?
I think so - Apache I think. I'll double check the details. Ta. On Thu, Nov 5, 2015 at 9:38 PM, Niphlod wrote: > just tried, everything works fine. are you using the default webserver ? > > On Wednesday, November 4, 2015 at 9:58:14 PM UTC+1, tim spear wrote: >> >> I'm trying to let users download a .vcf file (vCard). >> >> I copied myfile.vcf to the static folder. When I try going to >> www.myapp.com/static/myfile.vcf I get "invalid request" while other >> files in the static folder ending .js or .ico get served fine. Any ideas >> why it doesn't like .vcf or how to fix it? >> >> >> Thanks [also asked on Stackoverflow] >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/4FUQT-8Lu1U/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Why won't web2py serve my .vcf file?
just tried, everything works fine. are you using the default webserver ? On Wednesday, November 4, 2015 at 9:58:14 PM UTC+1, tim spear wrote: > > I'm trying to let users download a .vcf file (vCard). > > I copied myfile.vcf to the static folder. When I try going to > www.myapp.com/static/myfile.vcf I get "invalid request" while other files > in the static folder ending .js or .ico get served fine. Any ideas why it > doesn't like .vcf or how to fix it? > > > Thanks [also asked on Stackoverflow] > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: Why won't web2py serve my .vcf file?
What happens if you run web2py locally with its built-in server? On Thursday, November 5, 2015 at 4:40:47 PM UTC-5, tim spear wrote: > > I think so - Apache I think. I'll double check the details. Ta. > > On Thu, Nov 5, 2015 at 9:38 PM, Niphlod wrote: > >> just tried, everything works fine. are you using the default webserver ? >> >> On Wednesday, November 4, 2015 at 9:58:14 PM UTC+1, tim spear wrote: >>> >>> I'm trying to let users download a .vcf file (vCard). >>> >>> I copied myfile.vcf to the static folder. When I try going to >>> www.myapp.com/static/myfile.vcf I get "invalid request" while other >>> files in the static folder ending .js or .ico get served fine. Any ideas >>> why it doesn't like .vcf or how to fix it? >>> >>> >>> Thanks [also asked on Stackoverflow] >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/4FUQT-8Lu1U/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: console.log on page reload?
put it in new.html not web2py_ajax On Thursday, October 1, 2015 at 4:54:33 PM UTC-7, Tom Campbell wrote: > > Thank you, Derek, but I'm still flummoxed. I added this new script tag to > web2py_ajax.html: > > console.log('loaded ' + Date.now()) > > But I'm getting this message even when I use LOAD(). So I'm trying to > understand whether I am placing this code in the wrong location or what, > because I think it shouldn't be redrawing the page. The XHR record output > seems to confirm this. > > FWIW the actions are called this way from menu.py: > > response.menu = [ > ('Demo', False, '', [ > (T('New task'), False, URL('default', 'new')), > (T('Show all tasks'), False, URL('default', 'all')), > ]), > ] > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] how to phrase has_permission to include group_id
If I have multiple db.auth_group roles that have identical db.auth_permission.name "eat_chocolate" is there a way to select the correct group for the permission in the decorator? E.g., @auth.requires_permission(group_id, 'eat_chocolate') or do I have to create a lambda that joins them? auth.requires(lambda: (not db(db(db.auth_permission.name=="eat_chocolate") & (db.auth_permission.group_id==db.auth_membership.group_id) &(db.auth_group.role=='City_of_Seattle') &(db.auth_membership.user_id==auth.user.id)).isempty())) thanks, Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: how to phrase has_permission to include group_id
never mind, got the concept wrong -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: object 'DAL' has no attribute 'Field' - After update 2.11.2
Hello, I have experienced same issues at PythonAnywhere after doing an upgrade from 2.9 to 2.12. Web site crashed, and I couldn't access the admin interface at PA no more. After doing what Niphlod suggested (thanks !) - web site is now working - but I still cannot access the admin interface. The msg says: *admin disabled because unable to access password file* Any ideas ? Thanks On Tuesday, June 9, 2015 at 4:47:54 AM UTC-4, Tomeu Roig wrote: > > I update web2py to last version from: > (wget http://www.web2py.com/examples/static/nightly/web2py_src.zip) > > After start all apps included admin give errors. > > I make a cat in console, and get this info in error. > type object 'DAL' has no attribute > 'Field' > > > VERSION: > Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 > SYSTEM: > Ubuntu Server 12.04 > DATABASE: > PostgreSQL 9.3 > > It's a bug? Anyone has the same problem? > I'm doing something wrong? (It's not the first time that i make updates) > > Thanks > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Scheduler - Worker node heartbeats stop randomly
Good morning, I am sure this is a noob question but I cant seem to find a solid answer. I have started a worker nodes using the 'python web2py.py -K [app]' command. Everything appears to work fine for a while. My scheduled task need to run once a day but I am noticing that the worker node randomly 'dies' after a couple of hours. Is there some setting I am missing to prevent the worker nodes from dying even if they are idle for several hours? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Even after setting routes.py to my app name GideonGeorge, my site doesn't go as expected
What could be the problem? my site goes to http://www.gideongeorge.com/welcome/default/index when it should just go to the domain root. Please somebody help me out. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: object 'DAL' has no attribute 'Field' - After update 2.11.2
Issue solved by PythonAnywhere guys: Had to copy the files from the old 2.9 version folder to the new 2.12 Web2Py folder and everything works fine: /PAredirect/parameters_443.py /redir/parameters_443.py /parameters_443.py Thanks On Thursday, November 5, 2015 at 8:20:43 PM UTC-5, Dan wrote: > > Hello, > > I have experienced same issues at PythonAnywhere after doing an upgrade > from 2.9 to 2.12. > Web site crashed, and I couldn't access the admin interface at PA no more. > > After doing what Niphlod suggested (thanks !) - web site is now working - > but I still cannot access the admin interface. > The msg says: > > > *admin disabled because unable to access password file* > > Any ideas ? > Thanks > > > On Tuesday, June 9, 2015 at 4:47:54 AM UTC-4, Tomeu Roig wrote: >> >> I update web2py to last version from: >> (wget http://www.web2py.com/examples/static/nightly/web2py_src.zip) >> >> After start all apps included admin give errors. >> >> I make a cat in console, and get this info in error. >> type object 'DAL' has no attribute >> 'Field' >> >> >> VERSION: >> Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 >> SYSTEM: >> Ubuntu Server 12.04 >> DATABASE: >> PostgreSQL 9.3 >> >> It's a bug? Anyone has the same problem? >> I'm doing something wrong? (It's not the first time that i make updates) >> >> Thanks >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Keeping a webservice up to date.
Hi! I have a web service that should be update always on my site. I want it to be updated every for example 1 minute. But i don't know how I can use this function in a web2py framework! I mean I need a python module to be resident in memory and run there and update every 1 minute. And every web2py web request can call it. Do I need to run it separately on a Python interface and call it through web2py? Or can I embed it inside web2py and call it internally? Please guide, Sepehr -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Scheduler - Worker node heartbeats stop randomly
Where are you running your app? If it's PythonAnywhere they regular restart backend systems so there's no guarantee on any task hanging around for very long. https://help.pythonanywhere.com/pages/LongRunningTasks/ Beyond that we had a lot of similar issues that we couldn't quite put our finger on and in the end decided to roll our own scheduler service - depends how mission critical / complex your requirements are I suppose. On Friday, 6 November 2015 02:20:43 UTC+1, Benson Myrtil wrote: > > Good morning, > > I am sure this is a noob question but I cant seem to find a solid answer. > I have started a worker nodes using the 'python web2py.py -K [app]' > command. Everything appears to work fine for a while. My scheduled task > need to run once a day but I am noticing that the worker node randomly > 'dies' after a couple of hours. > > Is there some setting I am missing to prevent the worker nodes from dying > even if they are idle for several hours? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] bootstrap3 formstyle checkboxes
> That the labels for boolean fields are consistent in appearance with the > labels for other classes of field. > > So, emboldened and on the left. > That's not the way Bootstrap styles a boolean checkbox see the Remember me input for both http://getbootstrap.com/css/#forms-inline and http://getbootstrap.com/css/#forms-horizontal Web2py styles the boolean checkbox correctly. If you want it styled differently you have to code your own widget. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: About static files in markmin
One additional question: auth.wiki understands a page with some "@{myfunktion:1,2,3}" calls. And I want to include pictures with something like "[[Description @///static/mypicture.png center]]". How can I create a pdf-file using all the @-features? 2015-11-04 15:57 GMT+01:00 Martin Weissenboeck : > Thank you very much - this solves my problem: I want to use these files in > a wiki. > It has not been clear for me whether "@args" will be resolved first or > "[[...]]". > > 2015-11-04 15:31 GMT+01:00 Massimo Di Pierro : > >> MARKMIN itself does not mess with paths. It just render the markup to >> HTML. Paths are framework/application/routes dependent therefore there >> cannot be a generic syntax in markmin that works in every case. The same >> problem happens when the hostname changes. >> >> In auth.wiki we solve the problem by allowing this syntax: @args >> where @[hostname]/[app]/[controller]/[function]/[args] and each part [...] >> can be omitted. if omitted, it is put in by the server when generating the >> response, before markmin is rendered. >> >> >> On Tuesday, 3 November 2015 01:58:46 UTC-6, mweissen wrote: >>> >>> I want to show a picture in a markmin file. >>> This is my markmin text: >>> >>> [[Description /myapp/static/mypicture.png center]] >>> >>> >>> Works fine, but if I want to use the same text in another application I >>> have to change it to >>> >>> >>> [[Description /myotherapp/static/mypicture.png center]] >>> >>> >>> It is possible to use something generic like ./static/mypicture.png ? >>> >>> Regards, Martin >>> >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.