[web2py] Re: Use custom XML TAG to generate void or self-closing tags?

2014-02-21 Thread Anthony
No. We had a recent discussion about this, but I think it was decided to leave the current behavior. The < /> syntax is valid in HTML 5, XHTML, and HTML 4 Transitional, though invalid in HTML 4 Strict. The < > syntax is valid in HTML 5 and HTML 4, but not in XHTML. In practice, I think both ver

Re: [web2py] Best practices for using mercurial within web2py

2014-02-21 Thread Mark Graves
Right. I know the commands. But is there an issue restarting apache from within web2py (which is running on apache)? I was getting some errors when i ran the commands from within web2py vs shell On Fri, Feb 21, 2014 at 9:47 PM, Calvin Morrison wrote: > > Also, relatedly, I was trying to resta

[web2py] How to support flash in new layout

2014-02-21 Thread horridohobbyist
I'm trying to apply a new layout from a third-party CSS template. It generally works. However, I am unable to get any flash messages (eg, response.flash). Trying to merge two sets of CSS files is very tricky. What is the absolute minimum CSS/JS that I need to get flash messages (without draggin

Re: [web2py] Best practices for using mercurial within web2py

2014-02-21 Thread Calvin Morrison
> Also, relatedly, I was trying to restart apache from within a web2py app. > That was giving me errors, so I'm doing something else. Is there a way to > do this? you can do it from the shell. Look up your relevant distro information on init scripts. usually it's something like sudo service apa

[web2py] Best practices for using mercurial within web2py

2014-02-21 Thread Mark Graves
Hey everyone, I'm trying to use web2py to manage multiple repos on my local system. I know using os.chdir is a problem. Is the best way to just hg clone [REPO_URL] [FULL_PATH_TO_FILES]? Also, relatedly, I was trying to restart apache from within a web2py app. That was giving me errors, so I'm

[web2py] Re: Web2py Integration with Multiple Oauth Logins

2014-02-21 Thread James Q
Interesting plugin, thanks for the link. I took that repository, tar'ed and gzip'ed it, and uploaded it as a plugin. Says "App does not exist or you are not authorized". No idea what that means, so I did it manually in a new app called oauth. Here is what I get as an exception when trying to o

Re: [web2py] LDAP Auth

2014-02-21 Thread Richard Vézina
Hmm... Stange, LDAP and web2py auth password supposed to be completly distinct mechanism... You are sure it come from the fact that your w2p pwd and the LDAP pwd don't match? My first suspicion would go to the certificate stuff you added... Or it may possible that the LDAP server you use has a dif

[web2py] Re: Use custom XML TAG to generate void or self-closing tags?

2014-02-21 Thread User
Out of curiosity is the HTML syntax for void elements possible (i.e. start tag only) with a helper? e.g. http://example.com/article?pg=2";> On Friday, February 21, 2014 5:37:57 PM UTC-5, Anthony wrote: > TAG['link/'](_href=...) > > To generate a self-closing tag, the tag name must end with a

Re: [web2py] LDAP Auth

2014-02-21 Thread Maggs
Hey Richard, Sorry to come back to this seemingly answered question! Although this did answer my question, I'm running into an issue now. Something happened in which required us all to change our ldap passwords, and though I would assume that if we used our new passwords, web2py would fail to m

[web2py] Re: Use custom XML TAG to generate void or self-closing tags?

2014-02-21 Thread Anthony
TAG['link/'](_href=...) To generate a self-closing tag, the tag name must end with a "/", so to do that, you need to use the TAG["tagname"] syntax instead of TAG.tagname. Anthony On Friday, February 21, 2014 4:43:08 PM UTC-5, User wrote: > > How can I generate a self-closing tag ( > http://dev.

[web2py] Use custom XML TAG to generate void or self-closing tags?

2014-02-21 Thread User
How can I generate a self-closing tag ( http://dev.w3.org/html5/html-author/#start-tag) or void element using the TAG helper? For example, in the header I want to generate: http://example.com/article?pg=2";> or http://example.com/article?pg=2"/> However using TAG.link(_rel='next', _href='h

[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)

2014-02-21 Thread Austin Taylor
I apologize for the vagueness. Part of that is my lack of knowledge and not knowing what to provide in the question. Thanks for responding, LightDot. I am using firebug and when I load the page it gives me 5 css scripts: background.css bootstrap-responsive.min.css bootstrap.min.css calendar.css

[web2py] Re: Updating a distributed web2py app.

2014-02-21 Thread Brando
Thanks for the feedback. On Wednesday, February 19, 2014 2:29:06 PM UTC-8, Niphlod wrote: > > Did it with a bit of turnarounds, but it's pretty solid. > Check out > https://github.com/niphlod/w2p_tvseries/blob/master/private/w2p_tvseries_installer.py > > a tiddle bit of tl/dr: > - somewhere o

[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)

2014-02-21 Thread LightDot
Question is a bit vague, yes ;) Like going to a mechanic and saying you want your car fixed, without any additional information and without showing your car. Grid is basically a html table, you have borders, rows, columns, fields, font colors, etc. etc. If your CSS template is overriding the Bo

[web2py] how to add extra fields in web2py main login form? email me at rinkeshj...@gmail.com

2014-02-21 Thread Rinkesh Jha
how to add extra fields in web2py main login form? email me at rinkeshj...@gmail.com -- 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 me

[web2py] web2py dashboard external data

2014-02-21 Thread Trent Telfer
I am attempting to create a fairly simple dashboard with data retrieved from external data sources. I have currently written python scripts that retrieve the data (date and volume data) from the external data source as a list. My current conundrum is calling the script and inserting the list in

[web2py] How to use markdown with dictionary

2014-02-21 Thread Austin Taylor
I tried using this answer located here: http://stackoverflow.com/questions/9679090/using-modules-in-views/9680031#9680031 Here is the response i'm trying to follow (so you don't have to click the link). - Just for record. It is not a good idea to use locals() instead of passin

[web2py] Notes on keyed tables and forms (avoid "user is tampering with form" errors)

2014-02-21 Thread DenesL
Hello w2p users, there have been some reports about "user is tampering with form" errors while working with keyed tables. When working with forms (FORM, SQLFORM, etc.) the primarykey field or fields *MUST* be part of the request in order to avoid the error message. This means that you can eith

Re: [web2py] Re: Angular.js And other js lib

2014-02-21 Thread António Ramos
Other frameworks (rails, django) are being coupled with angular too so web2py should not loose time. I think angular is the way to go client side. It really teaches html new tricks as they say. Directives, filters, ng animate and all other stuff really moves your apps to the next level of user ex

[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)

2014-02-21 Thread Austin Taylor
Really need help with this so if my question isn't clear please let me know and i'll try to rephrase. On Thursday, February 20, 2014 11:16:50 AM UTC-5, Austin Taylor wrote: > > I'm currently using a CSS template in my layout, but it changed my grid > spreadsheet to an unreadable color. I've trie

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
Thanks for clarifying, I did find that. On Friday, February 21, 2014 9:05:35 AM UTC-7, LightDot wrote: > > In "trunk" refers to the development version of web2py. Basically, it > means that this feature will be available in the next web2py release, but > isn't a part of the current 2.8.2. You c

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread LightDot
In "trunk" refers to the development version of web2py. Basically, it means that this feature will be available in the next web2py release, but isn't a part of the current 2.8.2. You can check out web2py from google code or github if you'd like to use it now - keeping in mind that you'll be usin

[web2py] Re: how login_onaccept works ?

2014-02-21 Thread Massimo Di Pierro
Are you sure? It should only fire once. On Thursday, 20 February 2014 17:56:13 UTC-6, brushek wrote: > > Hello web2py users and devs, > > I have simple question: does auth.settings.login_onaccept should fire only > once after login, or it is normal that it is running in every click after > login

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread Anthony
Looks like it might only be available in trunk. Also, it's not an arg of you function, it is a field in the scheduler_task table and also available as an arg to the .queue_task() method. Check the book. Anthony On Friday, February 21, 2014 10:29:35 AM UTC-5, John Felps wrote: > > Thanks for the

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread Niphlod
it's a parameter (available in trunk), not an argument. On Friday, February 21, 2014 4:29:35 PM UTC+1, John Felps wrote: > > Thanks for the quick reply. When I try to add > prevent_drift=True to the args in > appadmin/insert/db/scheduler_task > I get invalid json > > On Friday, February 21, 2014

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
Can I use it on the page appadmin/insert/db/scheduler_task? If so, where does it go? There are no fields called "trunk" On Friday, February 21, 2014 8:47:15 AM UTC-7, Niphlod wrote: > > it's a parameter (available in trunk), not an argument. > > On Friday, February 21, 2014 4:29:35 PM UTC+1, John

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
Thanks for the quick reply. When I try to add prevent_drift=True to the args in appadmin/insert/db/scheduler_task I get invalid json On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote: > > As of web2py 2.8.2, you can do: > > scheduler.queue_task(..., prevent_drift=True) > > See http://

[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread Anthony
As of web2py 2.8.2, you can do: scheduler.queue_task(..., prevent_drift=True) See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler. Anthony On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote: > > I have a daily task, scheduled for midnight, with a repeat of 0 and a

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2014-02-21 Thread Michele Comitini
Very nice! Needs proper advertising! 2014-02-21 9:42 GMT+01:00 rif : > Thank you a lot, Quint. Will be testing/using this!!! > > -rif > > vineri, 21 februarie 2014, 00:51:55 UTC+2, Quint a scris: > >> https://code.google.com/p/w2p-social-auth/ >> >> >> On Tuesday, February 18, 2014 7:19:15 AM U

[web2py] Re: SQLFORM.grid and custom edit form

2014-02-21 Thread Anthony
Depends on exactly what you want to customize. First, the grid itself takes an "onupdate" argument that it passes to form.accepts, and it takes an "editargs" argument, which is a dict of arguments to pass to the edit form. Aside from that, in your controller, you can do: grid = SQLFORM.grid(db.

[web2py] How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
I have a daily task, scheduled for midnight, with a repeat of 0 and a period of 86400 that has been running daily for about a month, but over time it has drifted so that it starts at nearly 4 am. How do I just tell the task to always start at midnight? -- Resources: - http://web2py.com - http:

[web2py] Re: SQLFORM.grid and custom edit form

2014-02-21 Thread Luca Guerrieri
mmmh... sorry Anthony but you know i'm new on web2py... can you show me more in deep this your last? thank you lucs -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Re: SQLFORM.grid and custom edit form

2014-02-21 Thread Luca Guerrieri
mmmh... sorry Anthony but you know i'm new on web2py... can you show me more in deep this your last? thank you lucs -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Re: SQLFORM.grid and custom edit form

2014-02-21 Thread Luca Guerrieri
mmmh... sorry Anthony but you know i'm new on web2py... can you show me more in deep this your last? thank you lucs -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Re: SQLFORM.grid and custom edit form

2014-02-21 Thread Anthony
You can also customize the edit form created by the grid in the usual ways (without creating your own form from scratch), including having custom view code or specifying an alternative view altogether. Anthony On Friday, February 21, 2014 7:57:42 AM UTC-5, Luca Guerrieri wrote: > > Looks like i

[web2py] Re: SQLFORM.grid and custom edit form

2014-02-21 Thread Luca Guerrieri
Looks like it's my tie to post an answer :-)) To customize the edit form or new form in a SQLFORM.grid i put in the controller, but exactly before the sqlform.grid creation and with a return ... if request.args(0) in ['edit']: response.flash=T("Edit form") response.view = 'default/editclist.ht

Re: [web2py] how login_onaccept works ?

2014-02-21 Thread brushek
Thank You Marin, that was the case :) Regards brushek W dniu piątek, 21 lutego 2014 01:22:44 UTC+1 użytkownik Marin Pranjić napisał: > > you are calling the function and assigning the return value > > use = lambda: check_production(1) > or just = check_production, without (1) > > Marin (mobile)

[web2py] Re: Web2py Integration with Multiple Oauth Logins

2014-02-21 Thread Quint
Hi, You could have a look at python-social-auth and if you like it and don't know how to integrate it, have a look at this plugin to integrate it in web2py. Quint On Wednesday, February 19, 2014 12:3

Re: [web2py] Re: Free opensource Janrain alternative - Python Social auth

2014-02-21 Thread rif
Thank you a lot, Quint. Will be testing/using this!!! -rif vineri, 21 februarie 2014, 00:51:55 UTC+2, Quint a scris: > > https://code.google.com/p/w2p-social-auth/ > > > On Tuesday, February 18, 2014 7:19:15 AM UTC+1, Quint wrote: >> >> I'm working on a plugin. I expect to have an initial version

Re: [web2py] Re: 'datetime.datetime' has no attribute 'datetime' in scheduler

2014-02-21 Thread Manuele Pesenti
Il 20/02/14 21:51, Niphlod ha scritto: > that is an unfortunate misnaming in the datetime module > > the datetime module holds: > - datetime > - timedelta > - tzinfo > - time > as "submodules". Thanks Niphold! That was the problem. I user request.now instead of datetime.now and just import timedelt