Re: [web2py] Suggestions for multiple files upload in form

2011-10-29 Thread Bruno Rocha
Thank you Paolo, very nice app. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] PowerGrid x PowerTable

2011-10-28 Thread Bruno Rocha
if you want a solid and updated solution use SQLFORM.grid or SQLFORM.smartgrid if you need more flexibility on client side, templates and a grid based in ajax with JSON use PowerGrid. I am not updating PowerTable, it needs to be completelly rewriten. if someone wants to addopt it the code is in

Re: [web2py] Re: Google App Engine (GAE) does not support database LIKE statement...

2011-10-28 Thread Bruno Rocha
.. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Appending to a query

2011-10-28 Thread Bruno Rocha
http://showmethecode.tumblr.com/post/9583103076/web2pydaldynamicqueries

Re: [web2py] sqlform.grid

2011-10-27 Thread Bruno Rocha
On Thu, Oct 27, 2011 at 5:51 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Bruno, I am giving a ride to new SQLFORM.grid actually... And I wonder if there is a way to have a scroll bar for big table (large table)? Do I have to use jQuery UI? If so is there a predefined way

Re: [web2py] Suggestions for multiple files upload in form

2011-10-27 Thread Bruno Rocha
to your suggestions and opinions. Ciao. Paolo -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: sqlform.grid

2011-10-26 Thread Bruno Rocha
Nice, I see your page. http://ukjazz.net/store/albums PowerGrid would be a good alternative when you get more records, this is JSON based and allow Jquery Templates ( http://labs.blouweb.com/PowerGrid/default/withimages) Is your website already in web2py.com/poweredby ?

Re: [web2py] What I do with web2py.

2011-10-25 Thread Bruno Rocha
On Tue, Oct 25, 2011 at 4:13 AM, Joseph Jude ceph...@gmail.com wrote: by the same token, is there any site which collects all the sites developed in web2py? I couldn't find any. Not the appliances but the real sites built with web2py. That might be a good booster for new comers into web2py to

Re: [web2py] Web2py won't connect to MSSQL

2011-10-25 Thread Bruno Rocha
are you using source code or .exe version of web2py? http://zerp.ly/rochacbruno Em 25/10/2011 13:31, CJM coreymarq...@gmail.com escreveu: I'm unable to get web2py to connect to mssql. type 'exceptions.RuntimeError'(Failure to connect, tried 5 times: 'NoneType' object has no attribute

Re: [web2py] Re: From html view to pdf.

2011-10-25 Thread Bruno Rocha
http://labs.blouweb.com/web2pyappreport my friend Lucas created it. now it can work with Pisa and Pyfpdf Em 25/10/2011 14:17, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: First time I see this. Cool! On Oct 25, 10:18 am, Paolo Caruccio paolo.carucci...@gmail.com wrote: I used

Re: [web2py] sqlform.grid

2011-10-25 Thread Bruno Rocha
The grid css is in base.css, but if you do not want to mess your own css, open the file and copy only the grid part. it is commented. On Tue, Oct 25, 2011 at 6:46 PM, peter peterchutchin...@gmail.com wrote: I am using and enjoying sqlform.grid. I have the latest version of web2py, however, I

[web2py] NInja IDE 2.0b and Plugin contest

2011-10-25 Thread Bruno Rocha
NInja IDE released 2.0b and it is awesome! (http://www.ninja-ide.org/) They are running a plugin contest http://www.ninja-ide.org/plugins/ Any taker to create a web2py plugin? What features do people think a web2py plugin for Ninja-IDE should have? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Dealing with arbitary user defined DAL fields

2011-10-24 Thread Bruno Rocha
you can use a list:string field which will store values in a Python list. then if user type I am alergic to : peanut and I like to eat : banana you have a list with [I am alergic to : peanut, I like to eat : banana] Internally dal stores a pipe | separated string in db. records =

Re: [web2py] What I do with web2py.

2011-10-24 Thread Bruno Rocha
(in beta, full release programmed for next month) - Volunteer in animal charity NGO's website development ( www.miaudota.com.br, www.natalanimal.com.br) - Sometimes contributing with web2py in testing/writing/talking/advocating/development -- Bruno Rocha

Re: [web2py] dal aggregation sum fields None

2011-10-22 Thread Bruno Rocha
for me it is a case for coalesce in pure SQL. I know dal offers coalesce support but I did not try yet. http://zerp.ly/rochacbruno Em 22/10/2011 09:47, apple simo...@gmail.com escreveu: I am summing some data using the DAL: cash_price = db.orderline.cash_price.sum() lines =

Re: [web2py] Looking for people to help test web2py support in New Relic.

2011-10-21 Thread Bruno Rocha
I will give it a try next week. Is it safe to work in a production website? I can test it with web2pyslices.com and other two working apps. Thank you. http://zerp.ly/rochacbruno Em 21/10/2011 23:34, Graham Dumpleton graham.dumple...@gmail.com escreveu: I tweeted about this already recently,

Re: [web2py] Re: SQLFORM.grid / Powergrid

2011-10-21 Thread Bruno Rocha
I created PowerTable and it has edit in place with Jquery Jeditable. but this project is frozen and I have not tested with new w2p version so I did not created any documentation. (someone wants to adopt it?) I also created PowerGrid and it is being developed (I have made a lot of improvements

Re: [web2py] Smartgrid documentation.

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 4:19 AM, annet annet.verm...@gmail.com wrote: Is smartgrid documented any where? Kind regards, Annet Not yet, only in this list you will find info about it. The book version 4.0 is coming and smartgrid will be there.

Re: [web2py] Re: grid custom button icons

2011-10-19 Thread Bruno Rocha
Here https://github.com/michenriksen/css3buttons you can find a list of all suported classes for standard style, for the ui-icon option take a look at jquery-ui theme roller page

Re: [web2py] AJAX weirdness

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 1:13 PM, Harshad hash0...@gmail.com wrote: Before we close this thead, I am curious as to why/how is this a security risk? Having a controller which returns nothing def index(): return dict() and for example in session. session.mysecretvariable = hello If the

Re: [web2py] Re: response.files.append attributes

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 1:26 PM, Francisco Costa m...@franciscocosta.comwrote: But if I want to upgrade web2py, I would lost that changes... Create your implementation under /modules or /models of your own application

Re: [web2py] Re: can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 1:31 PM, d sund...@gmail.com wrote: so, any idea where is problem? is it because fff() function is not right? Any @auth. decorators first check if the user is logged in. So it is checking for logged in user before fire your fff function. You can supress (only in

Re: [web2py] installing over network

2011-10-19 Thread Bruno Rocha
locations. I know this works with one operating system, but I am wanting to work with both PC and Mac. Any Ideas? Thanks! -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http

Re: [web2py] Re: Ubuntu 11.10 Internal error Ticket issued: unrecoverable

2011-10-18 Thread Bruno Rocha
I just downloaded ans runs ok. I am running stable 11.10 Oneiric Oceilot. Look screenshot: http://minus.com/mbkblfH0er GTK warnings still appears but does nothing..

Re: [web2py] AJAX weirdness

2011-10-18 Thread Bruno Rocha
response.generic_patterns = ['*'] or ['.json']

Re: [web2py] Unable to write to AppEngine DataStore using web2py's DAL

2011-10-17 Thread Bruno Rocha
On Mon, Oct 17, 2011 at 3:50 AM, Sathvik Ponangi psath...@gmail.com wrote: db.files[0] = dict(hash=name, name=name, path=name) may be you want to replace the above with: db.files.insert(hash=name, name=name, path=name) why are you assign it to db.files[0] ? when you do db.table[index] you

Re: [web2py] Re: Does auth.requires() always requires login?

2011-10-17 Thread Bruno Rocha
2. if @auth already means authentication, why there is still an auth.requires_login() which implemented as auth.requires(auth.is_logged_in())? Shouldn't this implementation imply that auth.requires() does not check is_logged_in()? All in all, what is auth.requires()'s semantics? Wait for

Re: [web2py] image uploading and storing in web2py

2011-10-17 Thread Bruno Rocha
If your image needs to be stored in database (not in filesystem) do: Field('name','upload',uploadfield=myblob),Field('myblob','blob',default='')

Re: [web2py] Re: image uploading and storing in web2py

2011-10-17 Thread Bruno Rocha
there is not to do about. On Mon, Oct 17, 2011 at 6:19 AM, Gour g...@atmarama.net wrote: On Mon, 17 Oct 2011 05:57:32 -0200 Bruno Rocha rochacbr...@gmail.com wrote: If your image needs to be stored in database (not in filesystem) do: Is it, in general, recommended to store image (blob) of such size

Re: [web2py] Re: request.vars is not working anymore?

2011-10-16 Thread Bruno Rocha
you can also do: from mymodule import request as legacy_request

Re: [web2py] Does auth.requires() always requires login?

2011-10-16 Thread Bruno Rocha
web2py 1.99.x enforces user login in auth.requires(...). Should it be? Any feedback is welcome. Regards, Ray (a.k.a. Iceberg) -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http

Re: [web2py] Does auth.requires() always requires login?

2011-10-16 Thread Bruno Rocha
I think it should be, because @auth means authentication, so needs authenticated user. In your case I should do differently. def secret(): if not request.client == '127.0.0.1' or not auth.user: redirect(URL('default', 'user', args='login')) return {: some cool stuff}

Re: [web2py] Re: criticism of web2py

2011-10-15 Thread Bruno Rocha
On Sat, Oct 15, 2011 at 10:06 AM, Farsheed Ashouri farsheed.asho...@gmail.com wrote: About the cms, I am actually working on a general, full featured CMS for my own company. just out of curiosity, anyone attracted to my blog systemhttp://rodmena.ourway.ir? If community like it, I'd open

Re: [web2py] Some say local_import is deprecated. Is it?

2011-10-14 Thread Bruno Rocha
that local_import is deprecated. http://comments.gmane.org/gmane.comp.python.web2py/67885 The web2py book (ed 3.1) has no mention about local_import being deprecated, so I would like to know it is or it is not. -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Bruno Rocha
http://zerp.ly/rochacbruno Em 14/10/2011 07:02, Johann Spies johann.sp...@gmail.com escreveu: On 14 October 2011 01:53, Massimo Di Pierro massimo.dipie...@gmail.comwrote: I have used mechanize and I was pretty impressed. http://wwwsearch.sourceforge.net/mechanize/ Thanks. I have spent

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Bruno Rocha
do you have firebug? splinter use same selectors of css (pure DOM) the id of field is something like 'tablename_fieldname' http://zerp.ly/rochacbruno Em 14/10/2011 07:02, Johann Spies johann.sp...@gmail.com escreveu: On 14 October 2011 01:53, Massimo Di Pierro massimo.dipie...@gmail.comwrote:

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Bruno Rocha
note: you can do that on the server side. just need to put all the files directly under upload folder and loop throught them. So the store method can be used to create the record. http://zerp.ly/rochacbruno Em 14/10/2011 07:18, Bruno Rocha rochacbr...@gmail.com escreveu: do you have firebug

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Bruno Rocha
http://zerp.ly/rochacbruno Em 14/10/2011 10:26, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: On the one side sharing information about yourself on the list is a good thing because other people will get to know you better. On the other side you cannot be guaranteed other people like

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Bruno Rocha
sometime ago I have been contacted by an user of this list asking me help for a project. After some messages, this user wanted me to develop an e-store for his client. A big company and this would be a great project (he would pay a large ammount of money for me) so I discovered that it was a

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Bruno Rocha
http://zerp.ly/rochacbruno Em 14/10/2011 16:15, Gour g...@atmarama.net escreveu: On Fri, 14 Oct 2011 11:27:20 -0300 Bruno Rocha rochacbr...@gmail.com wrote: sometime ago I have been contacted by an user of this list asking me help for a project. After some messages, this user wanted me

Re: [web2py] Some say local_import is deprecated. Is it?

2011-10-14 Thread Bruno Rocha
vinicius...@gmail.com escreveu: Where is the nem import system documented or where can we know more details about it? On Fri, Oct 14, 2011 at 3:24 AM, Bruno Rocha rochacbr...@gmail.com wrote: It is still supported and should work, but it is deprecated and encouraged to use the new import

Re: [web2py] Re: Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread Bruno Rocha
does work with openldap? http://zerp.ly/rochacbruno Em 14/10/2011 18:16, António Ramos ramstei...@gmail.com escreveu: Does this approach works with Novell Directory? 2011/10/14 juanduke juan.fu...@gmail.com look very very very simple! Great! You win a new Python Roll reader ;) thanks!

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Bruno Rocha
- group plugins in one place - deprecate web2py.com/applications and consolidate the good ones Take github as an option for doing that!

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Bruno Rocha
On Fri, Oct 14, 2011 at 9:38 PM, Farsheed Ashouri farsheed.asho...@gmail.com wrote: And probably we should consider porting web2py to python 3. That't not on the roadmap... in the future will be a web3py but not now. (may be web3py will be a completelly different project with the same goals)

Re: [web2py] Re: Some say local_import is deprecated. Is it?

2011-10-14 Thread Bruno Rocha
2011/10/14 seongjoo seongjoo@gmail.com track_changes() is a very nice feature to have. It's somewhat tricky to deal with python module import while in development. I would love to have track_changes() like dynamic reloading (reload only if there is some changes in the module) for basic

Re: [web2py] using web2py globals in modules

2011-10-13 Thread Bruno Rocha
for use the global variables in modules the new recommended way is using current object. in models/***.py from gluon import current current.foo = bar in modules/***.py from gluon import * foo = current.foo # current already has session, request, response and T http://zerp.ly/rochacbruno Em

Re: [web2py] Uploading 388 files

2011-10-13 Thread Bruno Rocha
a fun way is using splinter to emulate a browser action. http://splinter.cobrateam.info/ http://zerp.ly/rochacbruno Em 13/10/2011 07:23, Johann Spies johann.sp...@gmail.com escreveu: I want to upload 388 documents and I don't want to do that by typing the name of the document and clicking on

Re: [web2py] Re: using web2py globals in modules

2011-10-13 Thread Bruno Rocha
variable = current.anything is very dangerous at top level in a module because it is executed when the module is imported the first time, not for every request. The first time the a request arrives it works fine. If a second request arrives in another thread variables will point to the

Re: [web2py] Re: SQLFORM.factory does not create the table in db, so how to query results?

2011-10-12 Thread Bruno Rocha
Em 12/10/2011 03:57, dlypka dly...@gmail.com escreveu: Thanks - your reply helped me see how it works. I did not realize that web2py just puts the name of *only* the selected radio button in request.vars. That is not up to web2py. this is how html forms work in general. when a form is

Re: [web2py] Re: db events trigger

2011-10-12 Thread Bruno Rocha
Do not forget the *before render* and *after render* and workflow events. this is very useful triggers and are not related to database. maybe it is more easy to implement in template engine. http://zerp.ly/rochacbruno Em 12/10/2011 10:24, Massimo Di Pierro massimo.dipie...@gmail.com escreveu:

Re: [web2py] IMPORTANT

2011-10-12 Thread Bruno Rocha
How about including a diversity statement to the main website? just like these ones: http://www.python.org/community/diversity/ http://www.dreamwidth.org/legal/diversity http://www.ubuntu.com/community/ubuntuvalues

Re: [web2py] Re: Database constraints or Web2py validators

2011-10-11 Thread Bruno Rocha
and the user interface. Note that you can use db.table.validate_and_insert and db.table.validate_and_update to fire validators in pure DAL without forms. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ]

Re: [web2py] Re: db events trigger

2011-10-11 Thread Bruno Rocha
Would be nice to have some global events in web2py workflow. I can imagine some useful hooks: workflow global events: onrequest # before the execution of action/model prerender # after the execution of action/model but before the view rendering onrender # after the view render but before the

Re: [web2py] Re: Making slides with web2py and markmin

2011-10-11 Thread Bruno Rocha
you are putting it in modules while it has to be in models. if you want it in modules you will need to explicitely import all web2py helpers and context. from gluon import * http://zerp.ly/rochacbruno Em 11/10/2011 16:28, jotbe jan.beili...@gmail.com escreveu: Thanks for the module, Massimo!

Re: [web2py] Re: db events trigger

2011-10-11 Thread Bruno Rocha
. It would not be obvious and I am not sure people would agree. I do not oppose to this. I just want to hear more from you. Massimo On Oct 11, 4:57 pm, Bruno Rocha rochacbr...@gmail.com wrote: Would be nice to have some global events in web2py workflow. I can imagine some useful hooks

Re: [web2py] Re: SQLFORM and IS_IN_SET problem

2011-10-10 Thread Bruno Rocha
On Mon, Oct 10, 2011 at 5:38 PM, Cliff cjk...@gmail.com wrote: Anthony, I don't want multiple values. I just want one of those values. If you want only one value, why are you using list:string? change to Field('status', 'string'),

Re: [web2py] Re: SQLFORM and IS_IN_SET problem

2011-10-10 Thread Bruno Rocha
. So if I do this: Field('status', 'string', requires = IS_IN_SET({'A' : 'Apple', 'B': 'Banana'})) I will get a drop down? On Oct 10, 4:40 pm, Bruno Rocha rochacbr...@gmail.com wrote: On Mon, Oct 10, 2011 at 5:38 PM, Cliff cjk...@gmail.com wrote: Anthony, I don't

Re: [web2py] Tag handling suggestions

2011-10-10 Thread Bruno Rocha
are very helpful and fast. I also think it is the less complicated way. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ]

Re: [web2py] Tag handling suggestions

2011-10-10 Thread Bruno Rocha
process. But, certainly Massimo has a DAL trick to solve this use case in one line of code ;) -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ]

Re: [web2py] Re: Tag handling suggestions

2011-10-10 Thread Bruno Rocha
I like this, and it is really smarter than list:string option, but, imagine a blog where users include tags in an INPUT text field, this will be more difficult to store tags in other table (you can do using ajax or building a checkbox list of tags) but it is easy just to let the user put tags in a

Re: [web2py] Re: Import/execute sql file

2011-10-10 Thread Bruno Rocha
On Tue, Oct 11, 2011 at 12:32 AM, Brian M bmere...@gmail.com wrote: Try opening your file, reading its contents and then having db.executesql() execute what was read. Should work assuming the file's contents can be run by psycopg2 (i.e some special psql stuff might not work) #untested code

[web2py] [OT] python. pyc virus

2011-10-09 Thread Bruno Rocha
symantec found a worm which infects. pyc files[1] the virus source code is in [2] [1] http://www.symantec.com/connect/blogs/python-has-venom [2] https://github.com/maurobaraldi/Pytroj

Re: [web2py] Email Verification Issue

2011-10-09 Thread Bruno Rocha
i use gmail in many sites and never had a problem. can you try with a different gmail address¿ http://zerp.ly/rochacbruno Em 09/10/2011 09:04, horridohobbyist horrido.hobb...@gmail.com escreveu: I think I found a serious issue with email verification... I changed the following in db.py for

Re: [web2py] looking for suggestions - large number of selections

2011-10-09 Thread Bruno Rocha
looking for a convenient way to add a person's parent where they can select the person's parents (if they're already in the list) or add one if they're not. The way multiple.widgets is rendered now, the parents are not easily seen unless the user scrolls through the list. -- -- Bruno Rocha

Re: [web2py] Re: Major vulnerability in Janrain+AOL

2011-10-08 Thread Bruno Rocha
it is a bad idea to populate the email field with a dummy email generated based in registration_id ?

Re: [web2py] Building up a Query from nothing

2011-10-05 Thread Bruno Rocha
queries=[] queries.append(db.table.id0) # this is the main query if arg1 == x: queries.append(db.table.field == x) if arg2 == y: queries.append(db.table.otherfield == y) # many conditions here query = reduce(lambda a,b:(ab),queries) db(query).select()

Re: [web2py] How to define the initial value of SQLFORM fields?

2011-10-04 Thread Bruno Rocha
it? And why do I get the above error? Many thanks, Luca -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http

Re: [web2py] composite views

2011-10-03 Thread Bruno Rocha
not do that if possible. I also think that a simple redirect is not the right solution here. Can anyone advise as to the best way to do this? Or am I just on the wrong track with the whole extend idea? Thank you, Matt -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno

Re: [web2py] Re: CAS question

2011-10-03 Thread Bruno Rocha
appreciated. Thanks, Mart :) -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Re: [web2py] Re: MongoDB and Web2py

2011-10-02 Thread Bruno Rocha
? -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Re: [web2py] Re: help: different auth page

2011-10-02 Thread Bruno Rocha
On Sun, Oct 2, 2011 at 9:29 PM, Anthony abasta...@gmail.com wrote: I don't think you can do a conditional {{extend}}, can you? Yes it works, do not works only if you compile the app.

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Bruno Rocha
...@jabber.unbit.it -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Re: [web2py] any pt_BR mailing list?

2011-10-02 Thread Bruno Rocha
Cezar http://postgreslogia.wordpress.com -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Re: [web2py] webfaction clean install unable to save any files in admin edit mode

2011-10-01 Thread Bruno Rocha
Look for permissions and change it to the apache/nginx user. $chown -R user:user web2py/* Also create the deposit file in web2py root folder if not exists. And run web2py once from shell. Search for webfaction on this group there is another threads about. http://zerp.ly/rochacbruno Em

Re: [web2py] Try Flask in a browser

2011-09-30 Thread Bruno Rocha
Would be great a tryweb2pyshell or a simple try dal. http://zerp.ly/rochacbruno Em 30/09/2011 18:30, Marco Mansilla thebigsho...@gmail.com escreveu: El Fri, 30 Sep 2011 14:14:00 -0700 (PDT) pbreit pbreitenb...@gmail.com escribió: https://tryflask.ep.io/ hmmm login is broken... internal

Re: [web2py] images (uploaded files) not showing correctly after update?

2011-09-30 Thread Bruno Rocha
(instead of the last submitted one). Other fields (e.g. 'name') do show the latest data correctly. I'm using latest web2py trunk on win 7. Thanks, Carlos -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos

Re: [web2py] Try Flask in a browser

2011-09-30 Thread Bruno Rocha
On Fri, Sep 30, 2011 at 7:35 PM, Anthony abasta...@gmail.com wrote: We've already got http://www.web2py.com/demo_admin/default/site. I wonder if we could enable people to create their own apps and have them live for a day or so (the TryFlask apps last for 12 hours, and can be exported).

Re: [web2py] images (uploaded files) not showing correctly after update?

2011-09-30 Thread Bruno Rocha
the previous image (via the 'file' link). Can you please try it (see my simple model and controller) to see if you get this behavior too or is it just me?. Thanks, Carlos -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O

Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-09-30 Thread Bruno Rocha
grid should have a truncate parameter.

Re: [web2py] Help: multiple=True with requires = IS_IN_SET()

2011-09-29 Thread Bruno Rocha
How are you creating the form? Crud, form, sqlform, custom or html? http://zerp.ly/rochacbruno Em 29/09/2011 15:23, jkral jk...@gogoair.com escreveu: I am having some troubles getting my form to error when no items are selected in the environment field. Could someone please shed some insight?

Re: [web2py] Ajax login

2011-09-28 Thread Bruno Rocha
I use auth.login_bare function. Just post user and password to it. It will do the rest of the job. http://zerp.ly/rochacbruno Em 28/09/2011 06:15, Marek Mollin rog...@gmail.com escreveu: Hello, I am wondering how to properly do an ajax login. I will be doing the whole thing with jquery ajax.

[web2py] PyCon Brasil app - help me test it

2011-09-28 Thread Bruno Rocha
Hi. I developed an app to manage schedule, lighting talks and talk pos avaluation on Pycon Brasil. If this app could be useful for anyone I will open the source. Help me test it (Pycon starts tomorrow) give me your suggestions. The app has 3 purposes: You create a schedule based on conf

Re: [web2py] Re: Ajax login

2011-09-28 Thread Bruno Rocha
:29, Marek Mollin rog...@gmail.com escreveu: Good man! Thank a lot, its also undocumented in the book ;] On Sep 28, 11:24 am, Bruno Rocha rochacbr...@gmail.com wrote: I use auth.login_bare function. Just post user and password to it. It will do the rest of the job. http://zerp.ly/rochacbruno

[web2py] help on routes

2011-09-28 Thread Bruno Rocha
With this setup, I have no access to admin... https://pythonbrasil.web2py.com.br/admin/design/pytalks This worked before, any change on routes? default_application = 'pytalks'# ordinarily

[web2py] Re: help on routes

2011-09-28 Thread Bruno Rocha
I am sure something have changed on this, I used this same setup before and worked well.. works here: www.serafimnatural.com.br (web2py 1.82.x) but not here: pythonbrasil.web2py.com.br --- default_application = 'init'# ordinarily set in base routes.py

Re: [web2py] Re: help on routes

2011-09-28 Thread Bruno Rocha
How can I have this behavior now? I want pythonbrasil.web2py.com.br/index /otherfunction /appadmin but I want to keep admin working...

Re: [web2py] help on routes

2011-09-28 Thread Bruno Rocha
Ok, now I got it to work with this: routers = dict( # base router BASE = dict( default_application = 'pytalks', default_controller = 'default', controllers=['appadmin','default'], applications=['pytalks','admin'], ), ) Thank you

Re: [web2py] web2py 1.99.2 is OUT

2011-09-26 Thread Bruno Rocha
This is the right link to try the grid : http://labs.blouweb.com/web2pygrid The other is twitter bootstrap app

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-09-26 Thread Bruno Rocha
You can set showbuttontext=False you will get only icons. http://zerp.ly/rochacbruno Em 26/09/2011 07:56, António Ramos ramstei...@gmail.com escreveu: can i create a collapsible/expandable column ? Also the edit button and delete button takes a lot of space in the right side of the table.Also

Re: [web2py] Re: web2py with twitter bootstrap - very clean interface ...

2011-09-26 Thread Bruno Rocha
We are planning to include it in the next web2py version. I will share the actual w2p after a clean up. http://zerp.ly/rochacbruno Em 26/09/2011 17:36, Matt Gorecki m...@goelephant.com escreveu: This is excellent. Would you mind sharing your layout.html?

[web2py] [tip] Now we can run web2py modules on PiCloud

2011-09-26 Thread Bruno Rocha
(your_func, _env='your_env_name') That's all it takes to start using non-Python dependencies on PiCloud! Check out our blog posthttp://blog.picloud.com/2011/09/26/introducing-environments-run-anything-on-picloud/to see more. Happy coding! The PiCloud Team -- -- Bruno Rocha [ About me: http

Re: [web2py] dropbox python api

2011-09-24 Thread Bruno Rocha
I am using this in AnimalSystem.com.br for two purposes.. Clinical reports are saved by veterinary laboratory in a local shared folder, so from system I have a Fetch reports button which goes to Dropbox folder and take the docs. teh accounts are configured by users and strored in a database.

Re: [web2py] cs-cz.py

2011-09-24 Thread Bruno Rocha
Open a google issue for this... http://zerp.ly/rochacbruno Em 23/09/2011 17:42, sd eez...@gmail.com escreveu: Czech translation http://pastebin.com/pg4xhzJt ps: chtelo by to nejakou osvetu na zdrojak.root.cz :)

Re: [web2py] web2py slides from pycon argentina (spanish)

2011-09-24 Thread Bruno Rocha
Congrats Martin, Great slides, I am going to stole something for my talk sept 29. http://zerp.ly/rochacbruno Em 24/09/2011 11:25, Martín Mulone mulone.mar...@gmail.com escreveu: web2py slides from pycon argentina (spanish) -- http://martin.tecnodoc.com.ar

Re: [web2py] html in displayed text field

2011-09-24 Thread Bruno Rocha
{{=XML(row.field)}} http://zerp.ly/rochacbruno Em 24/09/2011 17:18, monotasker scotti...@gmail.com escreveu: I have a db text field that is displayed to the user and I'd like to be able to format the text inside using html. But when I retrieve a row (using db.select()) and display the field

Re: [web2py] Translation support in Auth Registration form

2011-09-23 Thread Bruno Rocha
I think is it easy to do: in controllers/default.py def user(): if 'register' in request.args: db.auth_user.email.label = T('Email) db.auth_user.password.label = T('Password') db.auth_user.accept_promotion = T('Accept promotional Email?') elif 'profile' in

Re: [web2py] mailing list and web2py apps

2011-09-23 Thread Bruno Rocha
if it's not meant for that, so what is the lists' policy about it? Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- -- Bruno Rocha [ About

Re: [web2py] mailing list and web2py apps

2011-09-23 Thread Bruno Rocha
One more thing.. The voodoo option is only valid if the I am not the author of the app.. :)

Re: [web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Bruno Rocha
And if use db. dont forget the proper commits and rollbacks! http://zerp.ly/rochacbruno Em 23/09/2011 12:39, Ross Peoples ross.peop...@gmail.com escreveu: I forgot to mention that if you are using db at all in your script, that you need to use the -M option to import the models.

Re: [web2py] validators

2011-09-22 Thread Bruno Rocha
only work against data submitted using SQLFORM, and not against data submitted in other ways? Thanks, Chris -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http

<    5   6   7   8   9   10   11   12   13   14   >