Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Bruno Rocha
/applications/examples /applications/welcome In your app, you can delete controllers/appadmin.py -- -- 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

Re: [web2py] Re: web2py for freelance work

2011-08-01 Thread Bruno Rocha
I frequently use some plugins that I created, and I also created a micro-CMS calles SimplrCMS which is very based in radiant cms. But I do not finish it for release yet.

Re: [web2py] Delete buttons not working

2011-07-31 Thread Bruno Rocha
to force the link to the 'data' functions got it further but then I get a page not found, which is strange as the details and edit buttons do work fine. I hope this is useful feedback. Peter -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

Re: [web2py] blogs

2011-07-29 Thread Bruno Rocha
http://labs.blouweb.com/PowerGrid/default/blog http://zerp.ly/rochacbruno Em 29/07/2011 04:10, pbreit pbreitenb...@gmail.com escreveu: Here's an approach: http://web2py.com/book/default/chapter/12#Pagination

Re: [web2py] Speed Question

2011-07-29 Thread Bruno Rocha
It depends on your host and how large is the connection of your users. http://zerp.ly/rochacbruno Em 29/07/2011 03:18, Web2Py Freak halna...@gardeniatelco.com escreveu: the speed of my website when am trying any view is fast , is it going to be in the same speed when its online ???

Re: [web2py] Re: crud.search() example

2011-07-29 Thread Bruno Rocha
Crud.search returns a tuple with two objects. http://zerp.ly/rochacbruno Em 29/07/2011 08:21, Web2Py Freak halna...@gardeniatelco.com escreveu: i tryed {{=crud.search(db.blogposts)}} and it gives me this (gluon.html.FORM object at 0x0708F3F0, []) in the page !

Re: [web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-29 Thread Bruno Rocha
You are missing the fact that upliad folder is pritected. Accessible only via download function. http://zerp.ly/rochacbruno Em 27/07/2011 12:37, Jagmal jag...@gmail.com escreveu: Does 'upload' field not just copy file over to a location and provide its link when asked? If so, I should be able

Re: [web2py] jqgrid widget with no table source

2011-07-28 Thread Bruno Rocha
code, I suppose that's not, but may be there someone around more inspired than me. Thanks in advance. -- -- 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

Re: [web2py] send email on create a record

2011-07-28 Thread Bruno Rocha
António Ramos ramstei...@gmail.com hello, what is the best way to add an event like on create on a table model? i want to send an email every time a record is create on a table. thank you António -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

Re: [web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Bruno Rocha
can not change/remove it (at least not in near future). -- -- 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] Problems with online book?

2011-07-26 Thread Bruno Rocha
May be it is a Marketing strategy, making you all to buy the printed version of the book! LOL... (or just Massimo updating something)

Re: [web2py] Problems with online book?

2011-07-26 Thread Bruno Rocha
seend to be a routes problem (on web2py or on webserver) http://www.web2py.com/plugins http://www.web2py.com/ http://www.web2py.com/pluginslayouts http://www.web2py.com/ http://www.web2py.com/pluginsbook Every other app then the default one is broken.

Re: [web2py] Problems with online book?

2011-07-26 Thread Bruno Rocha
On Tue, Jul 26, 2011 at 4:34 PM, cjrh caleb.hatti...@gmail.com wrote: Book is working again. WOW, it means that web2py printed book goes out-of-stock and the selling campaign could be interrupted. :) But, don't lose your hope you can still find some copies to buy.. run to lulu.com or amazon

Re: [web2py] The web2py book is broken

2011-07-26 Thread Bruno Rocha
On Tue, Jul 26, 2011 at 4:34 PM, cjrh caleb.hatti...@gmail.com wrote: Confirmed. Yep, it now working here! also /plugins http://web2py.com/plugins :)

Re: [web2py] Upload File via HTTP

2011-07-26 Thread Bruno Rocha
mean, make a server and a client script. Is it possible?? client does't have web2py, just python, server is running web2py. -- -- 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] The web2py grid/crud plugin you've always dreamed about!

2011-07-25 Thread Bruno Rocha
2011/7/25 Kenneth Lundström kenneth.t.lundst...@gmail.com headers=[['f_name',T('Name')] I think you can use headers=[['f_name',str(T('Name'))] The highlight can be easuly implemented with JavaScript and CSS.

Re: [web2py] The web2py grid/crud plugin you've always dreamed about!

2011-07-25 Thread Bruno Rocha
it was working. Any ideas? I think you can use headers=[['f_name',str(T('Name'))] This works. Thanks. The highlight can be easuly implemented with JavaScript and CSS. The idea was that the trigger was the data, if e.g. a rows' sum is 0 it would be highlighted. Kenneth -- -- Bruno Rocha

Re: [web2py] Is the classic green and black layout still available?

2011-07-25 Thread Bruno Rocha
on the page to download new layouts. Is this layout still available somewhere? Here is an image showing what I mean http://web2py.com/book/static/book_images_png/plugin_wiki_crud.png Thanks, G -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

Re: [web2py] Re: Tutorial about making a Layout

2011-07-24 Thread Bruno Rocha
I wrote something in pt-BR http://web2pybrasil.appspot.com/init/plugin_wiki/page/curso-web2py-017 http://zerp.ly/rochacbruno Em 24/07/2011 14:36, Anthony abasta...@gmail.com escreveu: On Sunday, July 24, 2011 1:04:41 PM UTC-4, Ramos wrote: Ok, but the book is only text i need some images to

Re: [web2py] Re: Can't get linkto working in SQLFORM

2011-07-24 Thread Bruno Rocha
I always use virtual fields for links. http://zerp.ly/rochacbruno Em 24/07/2011 05:40, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: P.S. I would not suggest using this for anything else by appadmin. On Jul 24, 3:39 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The fact is

Re: [web2py] Re: The web2py grid/crud plugin you've always dreamed about!

2011-07-24 Thread Bruno Rocha
know how it worked. Thanks again for the feedback, - Tom On Jul 23, 9:38 pm, Bruno Rocha rochacbr...@gmail.com wrote: On Sat, Jul 23, 2011 at 2:34 AM, tomt tom_tren...@yahoo.com wrote: DatabaseError: malformed database schema (comments) - near by: Hi Tom, I just tested

Re: [web2py] Re: The web2py grid/crud plugin you've always dreamed about!

2011-07-23 Thread Bruno Rocha
On Sat, Jul 23, 2011 at 2:34 AM, tomt tom_tren...@yahoo.com wrote: DatabaseError: malformed database schema (comments) - near by: Hi Tom, I just tested it and works normally with latest web2py from download link, I am using Ubuntu 11.04 and Python 2.7. It seens to be a problem in

Re: [web2py] Re: The web2py grid/crud plugin you've always dreamed about!

2011-07-23 Thread Bruno Rocha
On Sat, Jul 23, 2011 at 3:13 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: should this be included in web2py/contrib? Would be very nice if it can go to contrib, but wait it to left beta version, I am doing a lot of tests and writing a better docs. as it uses model and controller,

Re: [web2py] Re: The web2py grid/crud plugin you've always dreamed about!

2011-07-23 Thread Bruno Rocha
On Sat, Jul 23, 2011 at 1:22 PM, mr.freeze nfre...@gmail.com wrote: Fantastic! I modified the WebGrid slice to recommend using this instead. Great work. Nice, thanks! But, this is in beta, some things can crash, and webgrid works with more datasources, PowerGrid is working only with Table

Re: [web2py] Re: The web2py grid/crud plugin you've always dreamed about!

2011-07-23 Thread Bruno Rocha
On Sat, Jul 23, 2011 at 8:23 AM, Martín Mulone mulone.mar...@gmail.comwrote: Very nice and have a lot of examples. I'm rewriting powerpack, to come in a few weeks in version 2.0. Do you want to include in it also as an example? Hi Martin, of course it will be nice to have it included in your

Re: [web2py] deploying web2py app on gae

2011-07-22 Thread Bruno Rocha
How is your app.yaml ?

Re: [web2py] jQuery templates

2011-07-22 Thread Bruno Rocha
''')}}\n, escape=False) ^ SyntaxError: invalid syntax Is there any other way I can do that? Thanks in advance YAYA -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os

Re: [web2py] jQuery templates

2011-07-22 Thread Bruno Rocha
I got the diiffs HTML encoding Using {{html fieldNameOrExpression}} is equivalent to using ${fieldNameOrExpression}, except that it renders unencoded text into the HTML DOM, whereas ${} encodes values by default. On Fri, Jul 22, 2011 at 4:56 AM, Bruno Rocha rochacbr...@gmail.com wrote: I am

Re: [web2py] Re: Web2py Powertables plugin : in-line editing problem.

2011-07-22 Thread Bruno Rocha
PowerTable is being rewriten, for lots of improvements and no more dependency on SQLTABLE. By now, in powertable the only out-of-box option for edit is inline editing, or you can load an IFRAME(CRUD) form in details and edit records there. Optionally you can use VirtualFields to append new

Re: [web2py] Web2py Certification Program ?

2011-07-22 Thread Bruno Rocha
for the programmer and for web2py Thank you António -- -- 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: Re : Re: [web2py] Re: Web2py Powertables plugin : in-line editing problem.

2011-07-22 Thread Bruno Rocha
other view containing forms and it's Ok for me. Yet is Powergrid intended to replace PowerTable or will you work on both project? That's just to know which plugin to choose for my work. I do understand it's a hard job to maintain it and thank you for the job you share. -- -- Bruno Rocha

Re: [web2py] Admin is disabled because insecure channel

2011-07-22 Thread Bruno Rocha
Use https or change security checks at your own risk in applications/admin/models 0.py and access.py. 2011/7/22 António Ramos ramstei...@gmail.com i´m trying to access my server from another machine. i started web2py with this command line c:\web2py\web2py.exe -i 192.168.1.8 How to solve

Re: [web2py] [Newbie] Best practice to set application wide settings

2011-07-22 Thread Bruno Rocha
be using the same model class to configure DB and other application wide settings? Regards, Jagmal -- -- 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

Re: [web2py] Re: [Newbie] Best practice to set application wide settings

2011-07-22 Thread Bruno Rocha
look at this - http://martin.tecnodoc.com.ar/default/post/2011/05/13/20_optimize-your-web2py-app-using-the-new-import-method

Re: [web2py] web2py videos on the internet

2011-07-22 Thread Bruno Rocha
... As a brilliant guy that he is he should be woking on more important things. IMO Best regards António -- -- 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

Re: [web2py] autofilling (redefining?) a Field value

2011-07-22 Thread Bruno Rocha
the 'URL' field to autofill with the user's server choice as variable. So something like the last validation line above ( db.build.URL='http://{0}/blueLite/default/ index.html'.format(db.build.buildServer) ) Any ideas how this can work? thanks, Mart :) -- -- Bruno Rocha [ About me

[web2py] The web2py grid/crud plugin you've always dreamed about!

2011-07-22 Thread Bruno Rocha
/PowerGrid/default/get !!! BETA VERSION, SOME THINGS CAN CRASH, THE SERVER IS A BIT SLOW, IT WILL BE VERY MORE QUICKLY IN A GOOD SERVER OR GAE !!! Thanks if you can test and report on BitBucker or omments page. Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

Re: [web2py] web2py vs Drupal

2011-07-21 Thread Bruno Rocha
Absolutelly different projects. Drupal is a cms and web2py is a framework. We do not have. Yet. A complete cms like Drupal. http://zerp.ly/rochacbruno Em 21/07/2011 17:58, elffikk elff...@gmail.com escreveu: hi, soon I will have a conversation with a client and it is possible that we will

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Bruno Rocha
Sorry, Powertable is 'alpha' and I have too much work to do to improve it. I am trying to solve things.. BTW: I am comming with a new grid system, a complete one, based on CRUD http://labs.blouweb.com/PowerGrid/default/noimages (in tests)

Re: [web2py] apologies

2011-07-20 Thread Bruno Rocha
: travel, power outage, jetlag. Anyway, looks like Anthony, Jonathan and a few others manage to answer almost all the questions which proves I am not needed and that is good. ;-) Anyway, if there is any pending issue feel free to ping. Massimo -- -- Bruno Rocha [ About me: http://zerp.ly

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Bruno Rocha
DOWNLOAD app plugin : https://bitbucket.org/rochacbruno/powergrid/downloads http://labs.blouweb.com -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda Python e web2py online: http://CursoDePython.com.brhttp://cursodepython.com.br/ ] [ O seu aliado nos cuidados com os animais: http

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-19 Thread Bruno Rocha
is not helpful... On Jul 18, 1:25 pm, Roberto Perdomo roberto...@gmail.com wrote: I now discover that only show the details only for the first 10 records. I send you to your mail my app, because is very hevy for the group mail. 2011/7/18 Bruno Rocha rochacbr...@gmail.com

Re: [web2py] Re: Limitation in template system

2011-07-19 Thread Bruno Rocha
may need to use python code in a view, or html code in a controller, there is nothing wrong with that, but it should be that, exceptions, please do not turn web2py into another PHP-like web development environment and further fuel those that want to see us struggle... Thanks. -- -- Bruno

Re: [web2py] Web2py Powertables plugin : in-line editing problem.

2011-07-19 Thread Bruno Rocha
update the records in the Db ? Thanks in advance. -- -- 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] powertable ( multiple tables on the same page )

2011-07-18 Thread Bruno Rocha
{{=ownedByUser}} /div div style=height:50%; overflow:auto; div class=centerText style=font-size:x-large; padding: 10px;Grafted Tables Shared With You/div {{=sharedWithUser}} /div /div -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda

Re: [web2py] Load view or controllers without load

2011-07-17 Thread Bruno Rocha
I guess I can help you with this. In this case powertable needs to load java script via response.js Can you send a code or an app as example to reproduce the problem? http://zerp.ly/rochacbruno Em 17/07/2011 23:31, Roberto Perdomo roberto...@gmail.com escreveu: Hi, i have problems loading

Re: [web2py] Problem using load with powertables

2011-07-15 Thread Bruno Rocha
,ajax_trap=False)}}, but the table not show details when click the green plus button. The error is: Cannot read property '_aData' of undefined. I load the table inside a tab, inside other page, but the error persist. I dont know what happen, I appreciate your suggestions. -- -- Bruno

Re: [web2py] Pagination

2011-07-15 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] Pagination

2011-07-15 Thread Bruno Rocha
On Fri, Jul 15, 2011 at 5:16 PM, Anthony abasta...@gmail.com wrote: Is PowerGrid intended to have a different purpose from PowerTable, or is it just an alternative grid plugin? What are the differences? PowerGrid is not only a grid plugin, besides the name it is a Paginator. One can use it to

Re: [web2py] date internationalization in view

2011-07-14 Thread Bruno Rocha
TD(row.date.strftime('%y-%m-%d')) http://zerp.ly/rochacbruno Em 14/07/2011 09:23, andrej burja andrej.bu...@gmail.com escreveu: in model i have T.force('sl-si') and db.course.date.requires = IS_DATE(T('%Y-%m-%d')) in language fiel i have %Y-%m-%d %d %m %y in SQLFORM (od crud) and also

Re: [web2py] slides of the San Francisco talk

2011-07-14 Thread Bruno Rocha
On Thu, Jul 14, 2011 at 3:33 PM, Massimo Di Pierro mdipie...@cs.depaul.eduwrote: http://www.scribd.com/doc/60038745/web2py-talk I also gave a Talk about web2py on TheDevelopersConference 2011 ( http://www.thedevelopersconference.com.br/tdc/2011/saopaulo/trilha-python#programacao )

Re: [web2py] slides of the San Francisco talk

2011-07-14 Thread Bruno Rocha
I almost forgot... Congrats, very nice slides! I will copy some slides to use with my students and maybe in PyConBrasil

Re: [web2py] We just hit 3000 members!

2011-07-14 Thread Bruno Rocha
3243 http://awesomescreenshot.com/08agmmiad On Thu, Jul 14, 2011 at 5:34 PM, Anthony abasta...@gmail.com wrote: Does member #3000 get a prize? https://lh4.googleusercontent.com/-0HoxZbNFlcg/Th9SqC6AlEI/A8k/YZYIzwDr4so/3000.png -- -- Bruno Rocha [ About me: http://zerp.ly

Re: [web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Bruno Rocha
May be, the new project could be a kind of merge with Bottle ( http://bottlepy.org/docs/dev/, Web2py libs fits perfectly with Bottle, and bottle has a very nice base system. Maybe we cam have a bottle2py-project with Python3 as goal.

Re: [web2py] Help : SQLFORM.factory with multiple submit button ?

2011-07-13 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: redirect to profile if first time login

2011-07-12 Thread Bruno Rocha
Auth has an auth_event which stores login events for users. You can make a count on event table to know if it is first time ligin. http://zerp.ly/rochacbruno Em 12/07/2011 11:57, Nicolas Palumbo napalu...@gmail.com escreveu: Any ideas on how to implement this? On Wed, Jul 6, 2011 at 7:13 PM,

Re: [web2py] Re: Many modal windows on one page

2011-07-12 Thread Bruno Rocha
define what record I悲 like to edit. Any ideas how to achieve this? Kenneth -- -- 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

Re: [web2py] Re: Many modal windows on one page

2011-07-12 Thread Bruno Rocha
On Wed, Jul 13, 2011 at 12:12 AM, pbreit pbreitenb...@gmail.com wrote: Easyframework is kind of neat but the licensing is ridiculous for this sort of thing. It is really Easy to use, and I do not worry about spending only $49 to get it working on my apps. I will try to create a demo app, but

Re: [web2py] Re: Many modal windows on one page

2011-07-12 Thread Bruno Rocha
On Wed, Jul 13, 2011 at 12:54 AM, pbreit pbreitenb...@gmail.com wrote: The price is only part of the problem. That and the limited license almost guarantee minimal usage and I would never feel comfortable recommending it. Stuff like that benefits from lots of users. I think the developer has

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Bruno Rocha
** I Meant Celery is a Task/queue manager, which depends on a Message Broker! DAL can be used I guess.

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Bruno Rocha
On Mon, Jul 11, 2011 at 12:20 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: If anybody is using celery with web2py and have example to share it will be useful to many of us. I am using Celery standalone and have worked in a project with Django DjCelery[1] Celery is very smart, bit

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Bruno Rocha
Is it possible to include these options in the init script? uwsgi socket127.0.0.1:9006/socket pythonpath/home/www-data/myapp//pythonpath app mountpoint=/ scriptwsgihandler/script /app /uwsgi

Re: [web2py] New Plugin: plugin_ckeditor

2011-07-08 Thread Bruno Rocha
Congrats, this is a very useful plugin, and certainly will be one of most importants and for sure it is very wanted. I would like to use, let me know if you want some help testing. (i am curious to see how it integrates with FormWizard plugin) I am working a lot to finish the web2pyslices 2. In

Re: [web2py] headers argument behavior in v1.97.1

2011-07-07 Thread Bruno Rocha
' ,'address.country':'Country'}) until I add a header for address.is_type, too. Is this a bug or a new feature? -- -- 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

Re: [web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-07 Thread Bruno Rocha
Massimo Di Pierro massimo.dipie...@gmail.com wrote: Do we have a method to upload plugins in web2pyslices? If not, I will extend web2py.com/plugins it is becoming hard for me to keep track Not yet, but I am writing 2.0 and this will allow some cool options for plugins!

[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-07 Thread Bruno Rocha
is the use for single step forms: http://labs.blouweb.com/powerformwizard/default/singlestep You can use the plugin for one step (normal) forms, use the client side validation and layout! More comming... On Tue, Jul 5, 2011 at 6:53 AM, Bruno Rocha rochacbr...@gmail.com wrote: HI, I just finished

Re: [web2py] easy way to validate a list of emails?

2011-07-06 Thread Bruno Rocha
email address, but a list of comma-separated email addresses? Thanks! Luis. -- -- 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

Re: [web2py] easy way to validate a list of emails?

2011-07-06 Thread Bruno Rocha
forget the latest, I wrote directly here in email and there were errors. This is the tested code: ### put in models ### class IS_EMAIL_LIST(object): def __init__(self, error_message=Email %s is invalid, sep=,): self.error_message = error_message self.sep = sep def

Re: [web2py] easy way to validate a list of emails?

2011-07-06 Thread Bruno Rocha
https://gist.github.com/1066850

[web2py] web2py and DreamPie - The Python shell you've always dreamed about!

2011-07-05 Thread Bruno Rocha
Does anybody knows how can we run web2py in shell mode under DreamPie? http://dreampie.sourceforge.net/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

[web2py] PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Bruno Rocha
of the week, preview - http://labs.blouweb.com/PowerGrid Need help, contribution, test.. []'s -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Bruno Rocha
Smalll typo, the new method is called *.auto_validation()* #not auto_validate()

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Bruno Rocha
+':', new_input )) elif field.data_type == 'text': -- -- 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

Re: [web2py] autocomplete widget does not work on GAE

2011-07-03 Thread Bruno Rocha
. Regards. José L. -- -- 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] question about count()

2011-07-03 Thread Bruno Rocha
we count if there's a left join, except by doing a select and then a len(db(query).select(...left=[...]))? Seems like it should be able to do db(query).count(left=[...]). -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O

Re: [web2py] autocomplete widget does not work on GAE

2011-07-03 Thread Bruno Rocha
,'plugin_wiki','page',args=page.slug))) for page in pages]) else: return nfmessage % string else: return '' 2011/7/3 José Luis Redrejo Rodríguez jredr...@debian.org startswith and endswith are not supported in GAE either 2011/7/3 Bruno Rocha rochacbr

Re: [web2py] Re: Dropdown field not being accepted

2011-07-01 Thread Bruno Rocha
Here is a modified version https://bitbucket.org/rochacbruno/surveycloud Bug fixes Auth included No more cpuckle Powertables Smart reports http://zerp.ly/rochacbruno Em 30/06/2011 23:59, pbreit pbreitenb...@gmail.com escreveu: Everything above the if form.accepts() is run each time the submit

Re: [web2py] SQL UNIQUE IN WEB2PY : CONSTRAINT unique_test UNIQUE (num_part1, num_part2, num_part3, title)

2011-07-01 Thread Bruno Rocha
Db.define_table('foo',Field('a'),Field('b'), Field('ab',unique=True, compute=lambda r: r.a + r.b)) http://zerp.ly/rochacbruno Em 30/06/2011 23:04, Nick Arnett nick.arn...@gmail.com escreveu: On Thu, Jun 30, 2011 at 6:43 PM, Nick Arnett nick.arn...@gmail.com wrote: On Thu, Jun 30, 2011 at

Re: [web2py] SQL UNIQUE IN WEB2PY : CONSTRAINT unique_test UNIQUE (num_part1, num_part2, num_part3, title)

2011-07-01 Thread Bruno Rocha
Validators, by the way, are enforced at the form level and have no direct effect on the db. There are 3 levels of validation. Db validadors: Unique, notnull, expression etc Dal validators: Required, compute, default etc Form dal validators: IS_IN_DB etc.. Note the former will be checked in

Re: [web2py] Re: counter implementation

2011-07-01 Thread Bruno Rocha
(db.mytab.id==mytab_id).update(db.mytab.cnt=(lambda x: x+1)(db.mytab.cnt) ) SyntaxError: keyword can't be an expression -- -- 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

Re: [web2py] Re: counter implementation

2011-07-01 Thread Bruno Rocha
forget the lambda.. the problem is the key mytab=123 db(db.mytab.id==mytab_id).update(*cnt*=db.mytab.cnt+1 ) SyntaxError: keyword can't be an expression

Re: [web2py] Re: new plugin - web2py Form Wizard - PowerFormWizard

2011-06-30 Thread Bruno Rocha
I hope to have the first version soon. http://labs.blouweb.com Suggestions, testers, issues, contributions etc on bitbucket: https://bitbucket.org/rochacbruno/powerformwizard Hope it helps someone! Thanks. -- Bruno Rocha [ About me:http://zerp.ly/rochacbruno

Re: [web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-30 Thread Bruno Rocha
download to there, because of the counter https://bitbucket.org/rochacbruno/powerformwizard/downloads -- -- 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

Re: [web2py] Re: web2py license

2011-06-30 Thread Bruno Rocha
a comercial product, but not a comercial framework. -- -- 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: web2py license

2011-06-30 Thread Bruno Rocha
On Thu, Jun 30, 2011 at 2:05 PM, Vasile Ermicioi elff...@gmail.com wrote: what about an opensource framework :) e.g. ( bottle+dal+template+rocket) ? Martin Mulone started a project for that https://bitbucket.org/mulonemartin/web2tools/overview -- -- Bruno Rocha [ About me: http

Re: [web2py] requires and T()

2011-06-30 Thread Bruno Rocha
'), OPTION(T('No'), _value='N'), ) ... works depending on the T-language, but I don't know how to put a _values into the SQLFORM. Any hints? Regards, Martin -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O

Re: [web2py] requires and T()

2011-06-30 Thread Bruno Rocha
translation]. I have expected 'Yes' and 'No', but I got again 'Ja' and 'Nein'. And: how to set the default value? 2011/6/30 Bruno Rocha rochacbr...@gmail.com IS_IN_SET( [ ('Y',T('Yes')), ('N',T('No')) ] ) Is in set, can receive a list of tuples, where first element is value, second is text

Re: [web2py] Re: slices and generic.load

2011-06-30 Thread Bruno Rocha
. Massimo is not referring the web2py official book , he is talking about another book. -- -- 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

Re: [web2py] pop-up pages interface

2011-06-29 Thread Bruno Rocha
if want an easy way... http://easyframework.com/ + web2py -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Tue, Jun 28, 2011 at 5:32 AM, niknok nikolai...@gmail.com wrote: ** Hello all. How can I create a web2py interface similar to that of the Chromium Browser when you need

[web2py] new plugin - web2py Form Wizard - PowerFormWizard

2011-06-29 Thread Bruno Rocha
, contributions etc on bitbucket: https://bitbucket.org/rochacbruno/powerformwizard Hope it helps someone! Thanks. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda Python: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br

[web2py] Re: [web2py-users-brazil:2119] new plugin - web2py Form Wizard - PowerFormWizard

2011-06-29 Thread Bruno Rocha
on choices of a previous step? Not yet in plugin, but, That's all Java Script, so you can raise the method by hand. Is there a public JS method: $.fn.stepy.step(2, '#powerformwizard'); and you can change the _id on form creation. I will think about to include it in plugin. []' s -- Bruno

Re: [web2py] Exception calling value in template that is not defined.

2011-06-29 Thread Bruno Rocha
{{if 'form' in globals():}} {{=form }} {{pass}} On Wed, Jun 29, 2011 at 12:00 PM, David J. da...@styleflare.com wrote: I am wondering why if I dont return anything in my dict and in my view {{if form:}} {{= form }} {{pass}} I get an exception. S'Traceback (most recent call last):\n

Re: [web2py] routes and SEO question

2011-06-29 Thread Bruno Rocha
In default.py just create a function called default. def default(): if request.args(0): redirect(URL(default, request.args(0)) This will act as a proxy. http://zerp.ly/rochacbruno Em 29/06/2011 13:27, elffikk elff...@gmail.com escreveu: how is reacting google (and other search

Re: [web2py] slices and generic.load

2011-06-29 Thread Bruno Rocha
I think in web2pyslices2 will need to have some editors. By now we can use the comments for this. http://zerp.ly/rochacbruno Em 29/06/2011 16:43, Richard Vézina ml.richard.vez...@gmail.com escreveu: Hello, With the last update I presume that many slice (app) are not working anymore for

Re: [web2py] Navigation in Web2py having an active link

2011-06-29 Thread Bruno Rocha
={{=URL('default', 'contact')}}Contact Us/ a/li /ul if the current page is active I would like to set li to li class=selected Any ideas how to do this *cheers -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu

Re: [web2py] Invalid view in 1.97.1

2011-06-29 Thread Bruno Rocha
(425) 895-4418 -- -- 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: proven hosting sites for web2py

2011-06-28 Thread Bruno Rocha
I agree a little with GoldenTiger, I recently changed my 20 web2py applications that were hosted in different webfaction accounts, I figured out that Linode with stack script is better, easy and less expensive. In 10 minutes you have a web2py application running on Linode with Uwsgi and Nginx,

Re: [web2py] how to round the number of seconds

2011-06-25 Thread Bruno Rocha
mydate = request.now() mydate.strftime('%Y-%m-%d %H:%M:%S') -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Sat, Jun 25, 2011 at 3:36 AM, dorasan portabled...@gmail.com wrote: Hello everyone. Could you tell me how to round the number of seconds which 'request.now' represents

Re: [web2py] how to download an audio file

2011-06-25 Thread Bruno Rocha
{{=A(_src=URL('static','files', args='longfilename.mp3'))}} Does not works? -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Sun, Jun 26, 2011 at 1:38 AM, weheh richard_gor...@verizon.net wrote: I want to click on a link and have a jpeg or an mp3 file downloaded from the server

Re: [web2py] Re: Suggested functionality extention for SQLTABLE

2011-06-23 Thread Bruno Rocha
I am also interested, would help me on the new version of PowerTable plugin. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Thu, Jun 23, 2011 at 6:48 PM, Martin.Mulone mulone.mar...@gmail.comwrote: This patch was applied?. I'm interested in this function.

<    8   9   10   11   12   13   14   15   16   17   >