[web2py] Re: Apache, Wsgi problem

2011-02-09 Thread VP
Alright people short answer: I think I figured this out (at least with my configuration) After testing various configurations, here's the result with: ab -kc 100 -t 20 https://domain.com/imageblog/default/index/ (same imageblog app, 100 connections, 20 seconds stress test). Two things

[web2py] Re: Authorization to create/update an item

2011-02-09 Thread pbreit
Forget the needing to lock down. I see what I have to do. But I'm still wondering if anyone has good practices on item creation and modification. It looks like I'll probably need to create a separate controller for editing?

[web2py] Re: Authorization to create/update an item

2011-02-09 Thread pbreit
Come to think of it, do I need to lock things down so someone can't add an id to a URL and be able to edit it?

[web2py] Authorization to create/update an item

2011-02-09 Thread pbreit
What's the best way to password-protect creating versus updating an item? Right now I have one controller with a requires_login decorator. If there's no args, it's a create form. If an id is passed in as an arg it's an update form. However only the created_by should be allowed to update. Do I ne

[web2py] Re: MySQL DAL Adapter Bug in the Latest Release (1.91.6)

2011-02-09 Thread Massimo Di Pierro
oops. this is a major bug. It is actually wrong for all supported databases but sqlite. I just fixed it in trunk. Please check it. Massimo On Feb 9, 4:27 pm, Kyle Young wrote: > I'm not sure if anyone else encountered this problem, but the DAL.py > module seems to be missing an override for the

[web2py] MySQL DAL Adapter Bug in the Latest Release (1.91.6)

2011-02-09 Thread Kyle Young
I'm not sure if anyone else encountered this problem, but the DAL.py module seems to be missing an override for the EXTRACT function for MySQL: The base adapter uses a simple: return "EXTRACT('%s' FROM %s)" % (what, self.expand(first)) But MySQL requires: return "EXTRACT(%s FROM %s)" % (what, s

[web2py] Re: Universities & web2py

2011-02-09 Thread Massimo Di Pierro
Send an application to DePaul. I have projects using web2py and I am in the Ph.D. Committee. You don't have to come here, but you have nothing to lose to apply. On Feb 9, 10:07 pm, Ahmed Bani wrote: > I have a scholarship to study Ph.D at a credited U.S university this year, > and I have to find

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

2011-02-09 Thread Anthony
Thanks, Richard. A couple suggestions: - All images should be captured without including the mouse pointer in the image. - The browser chrome should be kept as generic as possible, so you should hide the "Bookmarks" and "Autres Favoris" toolbars as well as the Google Chrome exte

[web2py] Universities & web2py

2011-02-09 Thread Ahmed Bani
I have a scholarship to study Ph.D at a credited U.S university this year, and I have to find the right college ASAP. If you have any information about a college or professors who would teach courses or have any type of relationship with the Web2py, please email it to me. Best regards, taz.

Re: [web2py] URL anchor breaks routes

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 7:37 PM, Plumo wrote: > I use routes to remap URL(controller, function) > I found this fails when an anchor is added: URL(controller, function, > anchor=anchor) > > To keep the routes working my temporary solution is URL(controller, function) > + '#' + anchor > Is there a bett

Re: [web2py] Project: Web2py @ webfactional.com

2011-02-09 Thread Ahmed Bani
I have followed your instructions and set up the Admin area in few minutes! https://tazjel.webfactional.com/cars/default/cars/ I will stop searching the web and spend more time studying the at this group. Thanks for your help.

[web2py] URL anchor breaks routes

2011-02-09 Thread Plumo
I use routes to remap URL(controller, function) I found this fails when an anchor is added: URL(controller, function, anchor=anchor) To keep the routes working my temporary solution is URL(controller, function) + '#' + anchor Is there a better way?

[web2py] Architecture we2py

2011-02-09 Thread contatogilson...@gmail.com
Hello guys, This link has the architecture of the Linux kernel and found it interesting that:http://www.makelinux.net/kernel_map Just to make sure that must have a tool to automate. Does anyone know what it is,because we could do this to show the architecture of web2py and links in source code. _

[web2py] Re: PyPy faster than C ...

2011-02-09 Thread blackthorne
i have to match that to my latest old addiction, Assembly. On Feb 7, 11:14 pm, elffikk wrote: > I think this is cool > > http://morepypy.blogspot.com/2011/02/pypy-faster-than-c-on-carefully-...

Re: [web2py] Re: simple pyquestion dictionaries

2011-02-09 Thread Sean Brewer
You can implement tail call optimization in python via a decorator, but it's pretty much overkill for just populating a dictionary: http://code.activestate.com/recipes/474088/ On Wed, Feb 9, 2011 at 5:28 PM, cjrh wrote: > On Feb 9, 5:15 pm, Massimo Di Pierro > wrote: > > Not in python. It has

Re: [web2py] Project: Web2py @ webfactional.com

2011-02-09 Thread Bruno Rocha
> > 1- Can you give me some instructions to get ( Web2py) Admin Area to work on > webfactional.com ? > >a. It keeps asking me for a password. Is it because that I have changed > their password that I have just received for my new account, or do I have to > follow certain instructions to log in

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

2011-02-09 Thread Richard Vézina
@cjrh I can make capture and crop and you script the frame with PIL... How it sounds? I think all the interested person can all pick a chapter 00 : 0 01 : 4 02 : 0 03 : 48 04 : 1 05 : 0 06 : 0 07 : 9 08 : 2 09 : 0 10 : 9 11 : 4 (not sure they needs update) 12 : 0 13 : 12 I take the big one : 03

[web2py] Re: Test if client has javascript

2011-02-09 Thread Dane
Make an ajax call on page load and set a session variable if the call gets through (session.has_js = True). On Feb 9, 3:33 am, "ma...@rockiger.com" wrote: > I am using disqus as comment system. This only works for client that have > javascript enabled. > I am programming a fallback for clients th

Re: [web2py] Test if client has javascript

2011-02-09 Thread Jonathan Lundell
On Feb 9, 2011, at 5:37 PM, Panupat Chongstitwattana wrote: > > 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. You're more likely

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

[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

[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] 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] 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

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] 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 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

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.
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 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 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

[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

[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

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: 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

[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

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: 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 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: 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

[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

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

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
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] 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] 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] 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] 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

[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 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

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: 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

[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: 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

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] 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?

[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?

[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] 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] 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: 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?

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: 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

[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: 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 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: 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.

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?

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

[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] 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

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] 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 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

[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

[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] 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

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?

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] 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

[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] 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] 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

[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] 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.

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] 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] 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'

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: 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: 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: 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; >> >>

[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: 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!

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,

[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.

[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: 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: 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(

  1   2   >