[web2py] Test if client has javascript

2011-02-09 Thread ma...@rockiger.com
I am using disqus as comment system. This only works for client that have javascript enabled. I am programming a fallback for clients that don't have javascript (esp. Google). I am curios, if there is a way, to see if javascript is enabled on the client making a request to a website? This way I

Re: [web2py] Test if client has javascript

2011-02-09 Thread Running Clam
Hi, On 09/02/2011 09:46, m momin wrote: stop my mesage Every message from the list has a hint in the headers as to how to un-subscribe: - List-Unsubscribe: , You are sending your inst

[web2py] Re: SQLFORM and read-only references

2011-02-09 Thread Juan Antonio
Yes, the nightly built works fine. Thanks. On 7 feb, 15:44, Massimo Di Pierro wrote: > Should be fixed in trunk already. Try the nightly built. > > On Feb 7, 4:46 am, Juan Antonio wrote: > > > I have > > > db.define_table('article', Field('name'),,format='%(name)s') > > db.define_table('lot

[web2py] Re: Book needs to be updated

2011-02-09 Thread cjrh
On Feb 8, 11:00 pm, pbreit wrote: > I kind of liked the old admin better. Are we really set on the new admin? I strongly recommend a book-friendly theme for such screenshots, which means lots of white, and little or no text on non-white backgrounds.

[web2py] Re: email verification in user/profile

2011-02-09 Thread LightOfMooN
No ways to do it? Like in registration with auth.settings.registration_requires_verification = True On 8 фев, 23:00, LightOfMooN wrote: > Hi! > When I changed email using user/profile form, it's not verify it. > How can I make it works to verify email using user/profile form?

[web2py] Re: simple pyquestion dictionaries

2011-02-09 Thread cjrh
On Feb 8, 7:04 pm, António Ramos wrote: > var1={'1':'','2':'','3':'','4':'','5':'','6':'','7':'','8':'','9':'','10':'­','11':'','12':'','13':'','14':'','15':'','16':'','17':'','18':'','19':''} def f(i, d={}): if i<=0: return d return f(i-1, dict(d.items() + [(str(i), '')])) print

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread villas
If you just want to print the variable 'heading' that you've defined, put this in your page: `` {{ =header }} ``:template On Feb 9, 12:53 am, Plumo wrote: > OK I assume there is not. > > I placed the following in meta-code: > > heading = 'abc' > > But the wiki pages throw an error that heading i

[web2py] Trouble using web2py with remotely hosted CouchDB

2011-02-09 Thread poplar
Hi! This is my first experiment with web2py, and I'm hoping to use a CouchDB Futon at couchone.com. I'm running on OS X 10.3.9 with couchdb- python version 0.8. I tried the current stable trunk version of web2py but couldn't bring up the welcome app because of hitting the bug reported here in Janua

[web2py] Populating auth_users

2011-02-09 Thread Rafal
Hi I want to deploy application multiple times with the basic standard data. Everything works correctly untill I want to add first user (with some standard password) to auth_user. I tried if db(db.auth_user).count() == 0: db.auth_user.insert(username='test', first_name='test1', last_name='test2

[web2py] How to add form vars to crud.create onaccept?

2011-02-09 Thread Tom Atkins
I have something like this which works fine: commentform = SQLFORM(db.comment) commentform.vars.post_id = post.id This populates commentform with the current post id. How can I do this with crud.create? (I know I need to use the onaccept method of crud.create but I'm stuck.)

[web2py] Re: URL secure flag.

2011-02-09 Thread Massimo Di Pierro
No objection. I would take the patch. On Feb 8, 2:59 pm, Jonathan Lundell wrote: > On Feb 8, 2011, at 12:24 PM, David J. wrote: > > > > > Thanks Jonathan; > > > This works too; > > Good. > > This *could* be an option to URL, since it has internal access to request. > Suppose we added arguments U

[web2py] Re: integration of jquery's ui themes into web2py's default layout/css?

2011-02-09 Thread Massimo Di Pierro
If you can go through the excercise of fguring out how to change the base.css default web2py css to make it jquery-ui friendly, I will be happy to change it. On Feb 8, 5:39 pm, Carlos wrote: > Hi all, > > What's the best way to integrate jquery's ui themes into web2py's default > layout/css witho

[web2py] Re: Inform user of registration approval

2011-02-09 Thread Massimo Di Pierro
The process of approval consists of editing the auth_user record. If you do it via appadmin there is no way. If you create your own action to approve a record you could send an email. You still have to code it but it a few lines. On Feb 8, 6:44 pm, bluemoth wrote: > Hi all, > > Is there a way to

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread blackthorne
Would you consider the idea of putting plugin_wiki source code in a (git?) repository for versioning? On Feb 7, 2:26 pm, Massimo Di Pierro wrote: > If you are in mode 3 (code allowed) you can do ``{{=response.title}} > ``:template > > On Feb 7, 12:29 am, Plumo wrote: > > > > > I also made this c

[web2py] Re: auth.signature

2011-02-09 Thread Massimo Di Pierro
I agree I was thinking about it. Use case: Instead of: db.define_table('message',Field('body')) form = crud.create(db.message) form = crud.update(db.message,message_id) do db.define_table('message',Field('body'),auth.signature) form = crud.create(db.message) form = crud.update(db.message,messa

[web2py] Re: Additional Queries on Login.

2011-02-09 Thread Massimo Di Pierro
The idea is correct but f should be the form and you should not save a record in session without converting to a python dict. def load_settings(form): settings = db.settings(db.settings.user == form.vars.id) session.settings = settings.as_dict() auth.settings.login_onaccept = lambda for

[web2py] Re: A little error running web2py.py -S

2011-02-09 Thread Massimo Di Pierro
Sorry. To use ldap you need to install the ldap module. sudo easy_install python-ldap On Feb 9, 1:45 am, Panupat wrote: > trying to import ldap_auth. Got a little error when running web2py.py - > S > > C:\web2py>python web2py.py -S welcome -M > .. > Version 1.91.6 (2011-01-03 17:55:14) > .. > WA

[web2py] Re: simple pyquestion dictionaries

2011-02-09 Thread Massimo Di Pierro
Not in python. It has no tail recursion so it will crash the interpreter if you have more than ~1000 terms (depending on how python was compiled). On Feb 9, 6:16 am, cjrh wrote: > On Feb 8, 7:04 pm, António Ramos wrote: > > > var1={'1':'','2':'','3':'','4':'','5':'','6':'','7':'','8':'','9':'','

Re: [web2py] Re: Additional Queries on Login.

2011-02-09 Thread David J.
Fantastic; I got it working another way; but I will change to this much more concise; I called auth.user.id instead which worked; Is there any drawbacks to the way I did it? I think one uses the authenticated user while yours passes the form that was just submitted... Thanks. On 2/9/11 1

[web2py] Re: Populating auth_users

2011-02-09 Thread Massimo Di Pierro
password=db.auth_user.password.validate('password')[0] On Feb 9, 5:10 am, Rafal wrote: > Hi > > I want to deploy application multiple times with the basic standard > data. Everything works correctly untill I want to add first user (with > some standard password) to auth_user. > > I tried > if db(

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread Massimo Di Pierro
It is in google code, inside the example app: http://code.google.com/p/cube2py/ On Feb 9, 8:36 am, blackthorne wrote: > Would you consider the idea of putting plugin_wiki source code in a > (git?) repository for versioning? > > On Feb 7, 2:26 pm, Massimo Di Pierro > wrote: > > > > > > > > > I

[web2py] Re: How to add form vars to crud.create onaccept?

2011-02-09 Thread Massimo Di Pierro
db.comment.post_id.default = post.id form = crud.create(db.comment) On Feb 9, 8:43 am, Tom Atkins wrote: > I have something like this which works fine: > >     commentform = SQLFORM(db.comment) >             commentform.vars.post_id = post.id > > This populates commentform with the current post i

[web2py] Re: web2py is running on dotCloud

2011-02-09 Thread Anthony
I submitted a few corrections to the DotCloud tutorial ( http://docs.dotcloud.com/static/tutorials/web2py/). If anyone sees any other errors or has additional feedback, you can contact DotCloud directly, or let me know and I'll pass it along. Also, here's a link about it on Reddit: http://www.

Re: [web2py] Re: web2py is running on dotCloud

2011-02-09 Thread Bruno Rocha
I can put the tutorial link in the demo application, I will do that! 2011/2/9 Anthony > I submitted a few corrections to the DotCloud tutorial ( > http://docs.dotcloud.com/static/tutorials/web2py/). If anyone sees any > other errors or has additional feedback, you can contact DotCloud directly,

Re: [web2py] Re: How to add form vars to crud.create onaccept?

2011-02-09 Thread Tom Atkins
On 9 February 2011 15:18, Massimo Di Pierro wrote: > db.comment.post_id.default = post.id > form = crud.create(db.comment) Doh! Thank you!

[web2py] Re: web2py is running on dotCloud

2011-02-09 Thread Massimo Di Pierro
this is really cool! On Feb 9, 9:19 am, Anthony wrote: > I submitted a few corrections to the DotCloud tutorial > (http://docs.dotcloud.com/static/tutorials/web2py/). If anyone sees any other > errors or has additional feedback, you can contact DotCloud directly, or let > me know and I'll pass i

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 6:58 AM, Massimo Di Pierro wrote: > > No objection. I would take the patch. I'll work one up. Input on the exact argument syntax is welcome. > > On Feb 8, 2:59 pm, Jonathan Lundell wrote: >> On Feb 8, 2011, at 12:24 PM, David J. wrote: >> >> >> >>> Thanks Jonathan; >> >>

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread David J.
how about "secure" or "enable_ssl" or "transport" or "is_secure" Although "secure" is probably the most intuitive; On 2/9/11 11:20 AM, Jonathan Lundell wrote: On Feb 9, 2011, at 6:58 AM, Massimo Di Pierro wrote: No objection. I would take the patch. I'll work one up. Input on the exact argu

Re: [web2py] Re: plugin_wiki suggestions

2011-02-09 Thread Albert Abril
The WATCH THE VIDEO link is broken at Google Code. I guess it should link to this one: http://vimeo.com/13485916 Regards! On Wed, Feb 9, 2011 at 4:17 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > It is in google code, inside the example app: > > http://code.google.com/p/cube2py/ >

Re: [web2py] Re: Populating auth_users

2011-02-09 Thread Bruno Rocha
I also use this function made by @martinmulone # def new_user(first_name, last_name, email, passw): users = db(db.auth_user.email==email).select() if users: return users[0].id else: my_crypt = CRYPT

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 8:33 AM, David J. wrote: > > how about "secure" or "enable_ssl" or "transport" or "is_secure" > > Although "secure" is probably the most intuitive; I'm leaning toward the syntax below. An alternative to 'secure' is 'scheme', in which case the values would be 'http' or 'https'

[web2py] Hosting Web2py on Domain.com

2011-02-09 Thread Ahmed Bani
Hello, I am new to the web2py community, and I am so exited to start on my first application. I have two questions: 1- Can I upload web2py to domain.com ? ( They have gave me some information about their CGI and python support which I posted below my questions, here) 2- What folders do I hav

Re: [web2py] Hosting Web2py on Domain.com

2011-02-09 Thread contatogilson...@gmail.com
Recommend the webfaction.com _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/2/9 Ahmed Bani > > Hello, > > I am new to the web2py community, and I am so exited to start on my first > application. > > I have two questions: > > 1- Can I uplo

[web2py] Use web2py to run trac anywhere (portable trac)

2011-02-09 Thread Salvor Hardin
Has anyone tried running trac using web2py? Someone suggested using we2py as a "portable" python, so I'm wondering if web2py can help me run trac from USB drive, etc.

[web2py] Run the ultra-marathon along with web2py

2011-02-09 Thread Bruno Rocha
@viniciusban wrote an excellent post about web2py, I reddited (waiting comments) http://www.reddit.com/r/Python/comments/fi4an/run_the_ultramarathon_along_with_web2py/ -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Am I asking wrong? (I got no aswers)

2011-02-09 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm really interested in learning web2py for developing some ideas. But this is the third time I get no answer from the community. The first two posts were about how to deal with an error on Instant Press installing (in Spanish and English mai

Re: [web2py] Hosting Web2py on Domain.com

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 8:49 AM, Ahmed Bani wrote: > > Hello, > > I am new to the web2py community, and I am so exited to start on my first > application. > > I have two questions: > > 1- Can I upload web2py to domain.com ? ( They have gave me some information > about their CGI and python support

[web2py] how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
Hello, I would create button to block or unblock user access, so I made those function : def block_access(): """ UPDATE auth_user SET registration_key='blocked' WHERE auth_user.registration_key = '' AND auth_user.email <> 'myem...@mydomain.com' """ db((db.auth_user.r

Re: [web2py] how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Alexandre Andrade
If I understand the concept, when you set a registration_key in auth_user table (any value), it don't allow the user to login. If you want to restrict acess in a menu, I do the following, using auth_groups, auth_permission and auth_membership: (you have to create groups, assign permission to them

Re: [web2py] Re: Kind of e-commerce but maybe not

2011-02-09 Thread w2padawan
i'm really interested in this use case. do you know if the this is really 'impossible' for do as an intranet webapp with web2py?

Re: [web2py] Re: Kind of e-commerce but maybe not

2011-02-09 Thread w2padawan
I'm really interested in this use case. do you know [if this is] really 'impossible' for do as an intranet web app with web2py?

[web2py] Setting the title tag

2011-02-09 Thread Lorin Rivers
One of the mental challenges I have with mvc/layout approach is how to assign values from the "inside-out". Almost all the work I have done so far is in the views. I'd like to dynamically change the title tag (e.g., in the element). How does that work? -- Lorin Rivers Mosasaur: Killer Techn

[web2py] Crud formstyle perhaps?

2011-02-09 Thread greenpoise
I am trying to align a crud form horizontally. That is with labels on top, fields on bottom and they should run across horizontally on the page. Is crud.settings.formstyle my answer?? Any good example out there? I searched on the groups with no success...I did find some talk about it but I just do

[web2py] Re: Setting the title tag

2011-02-09 Thread DenesL
If you are using the default layout.html file then just set response.title to whatever title you want. On Feb 9, 1:50 pm, Lorin Rivers wrote: > One of the mental challenges I have with mvc/layout approach is how to assign > values from the "inside-out". Almost all the work I have done so far is

Re: [web2py] Crud formstyle perhaps?

2011-02-09 Thread Richard Vézina
use 'divs' Give: Form label1 input1 comment1 label2 input2 comment2 etc. That seems what you looking for... For comparaison purpose : table3cols will give : Form label1,input1,comment1 etc. Richard On Wed, Feb 9, 2011 at 1:52 PM, greenpoise wrote: > > I am trying to align a crud form horizon

Re: [web2py] Re: Book needs to be updated

2011-02-09 Thread Richard Vézina
Yeah I thought about it. We can put a frame around the screenshot... But it will make harder to have unity between screenshot if it not the same person that make all of them... Is it that important?? Or we can make a script in gimp for cropping. Richard On Wed, Feb 9, 2011 at 6:51 AM, cjrh wr

Re: [web2py] Crud formstyle perhaps?

2011-02-09 Thread Lucas D'Avila
I think this post from Martin can help you > http://martin.tecnodoc.com.ar/myblog/2011/01/10/hacking-web2py-sqlform-part-1 -- Lucas D'Avila http://flavors.me/lucasdavila Em 09/02/2011 16:58, "Richard Vézina" escreveu: > use 'divs' > > Give: > Form > label1 > input1 > comment1 > label2 > input2

Re: [web2py] Hosting Web2py on Domain.com

2011-02-09 Thread Ahmed Bani
Thanks for the link : http://www.webfaction.com/ ( I will create an account with them soon or later them!). However, following Mr. Jonathanś instructions will help me to learn more about Web2py. Mr. Jonathn, I appreciate your help. I will follow your instructions. Then, I will update everyb

[web2py] Re: Crud formstyle perhaps?

2011-02-09 Thread greenpoise
wow, zoom..that was quick...thanks, I will look into both examples...I like the simplicity of CRUD thats why I rather keep that route. Thanks On Feb 9, 11:05 am, "Lucas D'Avila" wrote: > I think this post from Martin can help you > > > http://martin.tecnodoc.com.ar/myblog/2011/01/10/hacking-web

Re: [web2py] Re: Setting the title tag

2011-02-09 Thread Lorin Rivers
OK, I'm getting there. How do I specify response.title in my view? On Feb 9, 2011, at 12:55 PM, DenesL wrote: > If you are using the default layout.html file then just set > response.title to whatever title you want. > > > On Feb 9, 1:50 pm, Lorin Rivers wrote: >> One of the mental challenges

Re: [web2py] Re: Book needs to be updated

2011-02-09 Thread pbreit
Is the book content copyrighted? Is it possible to incorporate portions into other docs?

[web2py] Re: Problems installing Instant Press

2011-02-09 Thread pbreit
Try downloading the appliance to your hard drive and then installing it as a file from your hard drive.

[web2py] Re: Am I asking wrong? (I got no aswers)

2011-02-09 Thread Massimo Di Pierro
I apologize Offray. There is nothing wrong in your posts. Personally I cannot answer the Instant Press posts because that is not as much about web2py as it is about an application. I think you should contact the author for help with it. About plugin wiki post. It just got lost in the todo list.

[web2py] Re: Use web2py to run trac anywhere (portable trac)

2011-02-09 Thread pbreit
Try PortablePython: http://www.portablepython.com/

[web2py] Re: Am I asking wrong? (I got no aswers)

2011-02-09 Thread DenesL
Probably just a coincidence. As you noted the provided support is free and it is limited by the person's availability and knowledge. But, and this is a general comment to all seeking help here, try to make it easy for others to help you by providing as much relevant info as you can, maybe even an

[web2py] Re: session casesensitive urls

2011-02-09 Thread MDSIII
Tried this and it seems to fix the problem. One unified session_id cookie. Thanks Massimo. -Max On Feb 8, 11:40 am, Massimo Di Pierro wrote: > Good point. I made the now case insensitive in trunk. Please try. > > Massimo > > On Feb 8, 12:54 pm, connie_codes wrote: > > > > > > > > > It would ap

Re: [web2py] Re: Crud formstyle perhaps?

2011-02-09 Thread Lucas D'Avila
Forgot to say this, but i think you can apply the example of the post also in crud.* forms or FORM () -- Lucas D'Avila http://flavors.me/lucasdavila Em 09/02/2011 17:15, "greenpoise" escreveu:

[web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Massimo Di Pierro
Replace block_access=A(T('block access'),_href=URL(r=request,c='default', f='block_access')) with block_access=BUTTON(T('block access'),_onclick="ajax('%s',[],null);" % URL('block_access')) Mind this will only block login, not users already logged-in, unless you also clear session. On Feb 9,

[web2py] Re: Book needs to be updated

2011-02-09 Thread Massimo Di Pierro
It is copyright but you can ask permission for specific paragraphs and will probably say yes. ;-) On Feb 9, 1:19 pm, pbreit wrote: > Is the book content copyrighted? Is it possible to incorporate portions into > other docs?

[web2py] Re: Setting the title tag

2011-02-09 Thread Massimo Di Pierro
You may want to look into blocks: {{block name}}{{end}} On Feb 9, 12:50 pm, Lorin Rivers wrote: > One of the mental challenges I have with mvc/layout approach is how to assign > values from the "inside-out". Almost all the work I have done so far is in > the views. > > I'd like to dynamical

[web2py] Re: web2py is running on dotCloud

2011-02-09 Thread pbreit
I'm working in the same office as DotCloud so can relay any feedback you have. Good group.

[web2py] Coding Dojo

2011-02-09 Thread contatogilson...@gmail.com
Como expliquei no email anterior, o coordenador da UNEB disponibilizou o local e os materiais (projetor + computador) para o encontro. Antes de mais, nada, o formulário de inscrição que foi disponibilizado, tem o total de 25 inscritos da comunidade. Isso extrapola o limite recomendado de um Coding

[web2py] will jQuery UI work with web2py?

2011-02-09 Thread Panupat
The latest jQuery UI (1.8.9) says it supports jQuery 1.3.2+. Seeing that web2py comes with jQuery 1.4.4, will jQuery UI work with this version?

Re: [web2py] will jQuery UI work with web2py?

2011-02-09 Thread Tom Atkins
Yes it will work. (1.3.2+ means that version and any version higher) On 9 February 2011 19:40, Panupat wrote: > The latest jQuery UI (1.8.9) says it supports jQuery 1.3.2+. Seeing > that web2py comes with jQuery 1.4.4, will jQuery UI work with this > version?

Re: [web2py] will jQuery UI work with web2py?

2011-02-09 Thread contatogilson...@gmail.com
Example with jQuery UI - http://gilsondev.com/marcado/ User: admin Password: admin123 _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/2/9 Tom Atkins > Yes it will work. (1.3.2+ means that version and any ver

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
BUTTON Helper do not appear in the book actually... Richard On Wed, Feb 9, 2011 at 2:29 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Replace > > > block_access=A(T('block access'),_href=URL(r=request,c='default', > f='block_access')) > > with > > > block_access=BUTTON(T('block ac

[web2py] Re: Setting the title tag

2011-02-09 Thread DenesL
I am not sure what you want to do. Usually response.title is set in the controller. If you want to do it in the view you would have to set it before the extend: {{response.title='not very dynamic'}} {{extend 'layout.html'}} ... Note that you can use your own layout.html, even name it differently.

Re: [web2py] Re: Setting the title tag

2011-02-09 Thread Lorin Rivers
Denes, I'm a little dense. You sent me down the right path and I just had to struggle with it a little. I didn't realize you could simply build response.title in in the controller and it "just works". Then I had to unroll the tuple I built. It's all good now, though! Thanks! In case someone

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
BUTTON not working, but it works without redirection with A(T('block access'),_onclick="ajax('%s',[],null);" % URL('block_access'))... I don't think that it validate with no _href... With _href='' it seems to point on default/index Richard On Wed, Feb 9, 2011 at 2:49 PM, Richard Vézina wrote: >

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
Get it to work like this in view.py : {{=T('block access')}} Thanks Massimo Is BUTTON helper in trunk?? Richard On Wed, Feb 9, 2011 at 3:17 PM, Richard Vézina wrote: > BUTTON not working, but it works without redirection with A(T('block > access'),_onclick="ajax('%s',[],null);" % > URL('block

[web2py] Re: Inform user of registration approval

2011-02-09 Thread bluemoth
I forgot to thank you in my first post. I expected you to be the one who would answer. I don't know how you answer all these questions. Thanks very much. Yes, I had assumed there was no callback for a record change given I couldn't find anything. I had assumed the way to do it is to create a contr

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread David J.
I was wondering about that too;; Is BUTTON a new addition? I didn't see it in the docs; On 2/9/11 3:24 PM, Richard Vézina wrote: Get it to work like this in view.py : {{=T('block access')}} Thanks Massimo Is BUTTON helper in trunk?? Richard On Wed, Feb 9, 2011 at 3:17 PM, Richard Vézi

Re: [web2py] Test if client has javascript

2011-02-09 Thread ma...@rockiger.com
The noScript-Tag works, but this way the database-query is executed. I would like to find about javascript in the request of the client.

Re: [web2py] Hosting Web2py on Domain.com

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 11:09 AM, Ahmed Bani wrote: > > Thanks for the link : http://www.webfaction.com/ ( I will create an account > with them soon or later them!). > > However, following Mr. Jonathanś instructions will help me to learn more > about Web2py. > > Mr. Jonathn, I appreciate your h

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
I got this error in Chrome Dev tool : Uncaught TypeError: Cannot set property 'innerHTML' of null Richard On Wed, Feb 9, 2011 at 3:29 PM, David J. wrote: > I was wondering about that too;; > > Is BUTTON a new addition? > > I didn't see it in the docs; > > > > > On 2/9/11 3:24 PM, Richard Vézin

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
It is around this line in rendered html : jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t==':eval') eval(msg); else document.getElementById(t).innerHTML=msg; } }); } Richard On Wed, Feb 9, 2011 at 3:38 PM, Richard Vézina wrote: > I got this error in Chrome Dev to

Re: [web2py] Trying to use a plugin_wiki page as default for a web2py site

2011-02-09 Thread Anthony
Hi Offray, I haven't used plugin_wiki, and I'm no routes expert, so I'm sure someone else can provide more detailed help, but this should get you started. When you have a plugin_wiki URL like this: http://127.0.0.1:8000/myapp/plugin_wiki/page/test 'page' is the function in the 'plugin_wiki

Re: [web2py] Re: how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Richard Vézina
Base on this post it seems a chrome issue that could be fixed as explained in the first response : http://www.google.com/support/forum/p/Chrome/thread?tid=4861d2b2c6c2a96a&hl=en Richard On Wed, Feb 9, 2011 at 3:39 P

[web2py] Re: Trying to use a plugin_wiki page as default for a web2py site

2011-02-09 Thread villas
If routes are a problem, then one idea is to simply create a wiki page named for example 'home' and then alter the default controller index function: def index(): redirect(URL(c='plugin_wiki',f='home')) On Feb 8, 12:58 am, Offray Vladimir Luna Cárdenas wrote: > -BEGIN PGP SIGNED MESSA

[web2py] Re: Trying to use a plugin_wiki page as default for a web2py site

2011-02-09 Thread Massimo Di Pierro
should be def index():     redirect(URL('plugin_wiki','page',args='home')) On Feb 9, 3:04 pm, villas wrote: > If routes are a problem,  then one idea is to simply create a wiki > page named for example 'home' and then alter the default controller > index function: > > def index(): >     redirect

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread howesc
good, bad, or indifferent, because of varied testing and deployment setups, and using multiple ports, i have the function below in my app. note that i have database configuration for HTTPS scheme and port. It's my hack not not run internal test and development servers on port 443. :) def full

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread villas
Massimo, Regarding the problem with the reserved SQL words, I entered it as an issue on cube2py (issue 6). Regards, D On Feb 9, 3:17 pm, Massimo Di Pierro wrote: > It is in google code, inside the example app: > > http://code.google.com/p/cube2py/ > > On Feb 9, 8:36 am, blackthorne wrote: > > >

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 1:24 PM, howesc wrote: > good, bad, or indifferent, because of varied testing and deployment setups, > and using multiple ports, i have the function below in my app. note that i > have database configuration for HTTPS scheme and port. It's my hack not not > run internal test

[web2py] Re: Trying to use a plugin_wiki page as default for a web2py site

2011-02-09 Thread villas
On Feb 9, 9:09 pm, Massimo Di Pierro wrote: > should be... Oops! I should test before posting from memory! Thanks. D

[web2py] Re: Book needs to be updated

2011-02-09 Thread cjrh
On Feb 9, 9:01 pm, Richard Vézina wrote: > We can put a frame around the screenshot... But it will make harder to have > unity between screenshot if it not the same person that make all of them... Good idea for frame. Multiple people can make screenshots (e.g. let's say Massimo assigns a captain

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Anthony
Do we want to handle websocket URLs as well (i.e., ws and wss schemes instead of http and https)? On Wednesday, February 9, 2011 5:02:38 PM UTC-5, Jonathan Lundell wrote: > On Feb 9, 2011, at 1:24 PM, howesc wrote: > > good, bad, or indifferent, because of varied testing and deployment > setups

[web2py] Re: simple pyquestion dictionaries

2011-02-09 Thread cjrh
On Feb 9, 5:15 pm, Massimo Di Pierro wrote: > Not in python. It has no tail recursion so it will crash the > interpreter if you have more than ~1000 terms (depending on how python > was compiled). That's an implementation detail! sys.setrecursionlimit(n) can get you quite far, however :) The ma

[web2py] Re: Book needs to be updated

2011-02-09 Thread Anthony
I'm happy to help. Looks like most of the screenshots include the browser chrome -- so, would we all have to being using the same browser on the same platform (with no toolbars, etc.) to get a consistent look? I'm on Windows 7 (IE8, FF3.6, Chrome 9). Anthony On Wednesday, February 9, 2011 5:1

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 2:24 PM, Anthony wrote: > Do we want to handle websocket URLs as well (i.e., ws and wss schemes instead > of http and https)? I don't know. Is there an RFC yet? I've sent Massimo a patch already, but I could redo it to directly specify scheme= instead of secure=, and allow an

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 2:54 PM, Jonathan Lundell wrote: > On Feb 9, 2011, at 2:24 PM, Anthony wrote: >> Do we want to handle websocket URLs as well (i.e., ws and wss schemes >> instead of http and https)? > > I don't know. Is there an RFC yet? > > I've sent Massimo a patch already, but I could redo

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread David J.
So then we would use scheme='https' for secure and forget the secure flag? On 2/9/11 6:26 PM, Jonathan Lundell wrote: On Feb 9, 2011, at 2:54 PM, Jonathan Lundell wrote: On Feb 9, 2011, at 2:24 PM, Anthony wrote: Do we want to handle websocket URLs as well (i.e., ws and wss schemes instead o

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 3:34 PM, David J. wrote: > So then we would use scheme='https' for secure and forget the secure flag? Right. It's a little more general, since 'secure' could also imply 'wss'. > > > > On 2/9/11 6:26 PM, Jonathan Lundell wrote: >> >> On Feb 9, 2011, at 2:54 PM, Jonathan Lund

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread David J.
Is the code available in the repo yet? On 2/9/11 6:37 PM, Jonathan Lundell wrote: On Feb 9, 2011, at 3:34 PM, David J. wrote: So then we would use scheme='https' for secure and forget the secure flag? Right. It's a little more general, since 'secure' could also imply 'wss'. On 2/9/11 6

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread Plumo
yes of course. Unfortunately that throws an error that heading is undefined. What is defined in meta-code or other models is not available.

Re: [web2py] Re: URL secure flag.

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 3:43 PM, David J. wrote: > Is the code available in the repo yet? Not yet. > > > > On 2/9/11 6:37 PM, Jonathan Lundell wrote: >> >> On Feb 9, 2011, at 3:34 PM, David J. wrote: >>> So then we would use scheme='https' for secure and forget the secure flag? >> >> Right. It's

[web2py] Web2py and Sencha (Extjs)

2011-02-09 Thread mikech
Has anyone looked at the recent Extjs developements or Sencha Touch? I'm nowhere ready to do this, but would it be fairly simple to make use of this library. It seems to have a very complete set of business type widgets. Is anyone using it? Mike

[web2py] Re: Book needs to be updated

2011-02-09 Thread stargate
Let me know if I can be of any help On Feb 9, 5:18 pm, cjrh wrote: > On Feb 9, 9:01 pm, Richard Vézina wrote: > > > We can put a frame around the screenshot... But it will make harder to have > > unity between screenshot if it not the same person that make all of them... > > Good idea for frame.

[web2py] dal feature request

2011-02-09 Thread elffikk
hi Massimo, I would like to have something like sqlsoup, but I don't need it to inspect database to do class mapping or so I am just interested to use dal syntax without defining my tables ( they are already in the database) When I have to develop database parts I have 2 scenarios: - everything i

[web2py] Project: Web2py @ webfactional.com

2011-02-09 Thread Ahmed Bani
Hello my new community, I have followed your suggestion and created an account at webfactional.com to host my web2py project at Webactional. They have set up my account and installed web2py for me quickly! Questions: 1- Can you give me some instructions to get ( Web2py) Admin Area to work on

Re: [web2py] Test if client has javascript

2011-02-09 Thread Panupat Chongstitwattana
Fist thing that comes to mind is the http-user-agent. I'm not sure if javascript is stored in there but try print this via your browser os.environ.get("HTTP_USER_AGENT") see if that gives you anything. On Thu, Feb 10, 2011 at 3:31 AM, ma...@rockiger.com wrote: > The noScript-Tag works, but thi

  1   2   >