Re: [web2py] Re: Some powerTable questions

2011-08-29 Thread Bruno Rocha
something like this: http://wijmo.com/Wijmo-Complete/samples/#tree|overview or may be this: http://wijmo.com/Wijmo-Complete/samples/#grid|grouping-and-aggregates (the column resizing you talk http://wijmo.com/Wijmo-Complete/samples/#grid|column-resizing)

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Bruno Rocha
I commented in Anthony notes, but I will replicate it here. --- I created my own mechanism for mobile detection, which I am using for a long time. So there is one thing I decided. It is better to prefix instead of suffix. so I named my views as mobile.index.html instead of index.mobi. why?

Re: [web2py] 3 functions and a decorator?

2011-08-28 Thread Bruno Rocha
=form) def c(): return c * a, b and c have their own views. I do not want to allow any user to start at function b or c. Everybody has to start at a. I think, this problem could be solved using a decorator, but I could not find how. Regards, Martin -- -- Bruno Rocha

Re: [web2py] new in trunk

2011-08-28 Thread Bruno Rocha
',callback=URL('delete_record',args=id),delete=tr) -- -- 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] Re: crud.update change field value in controller

2011-08-28 Thread Bruno Rocha
On Sun, Aug 28, 2011 at 12:06 PM, JaapP j...@tetra.nl wrote: db.bestelling.bedrag.update = '10' It is wrong. shoud be simething like: db(db.bestelling.id==request.args(0)).update(bedrag = '10') -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

[web2py] [tip] for those who likes jQUery UI

2011-08-28 Thread Bruno Rocha
For those who likes jQueryUI I recommend WijmoUI Wijmo is jQUeryUI extended and has a free and a comercial version. I am using this in many projects with web2py and works great. http://www.wijmo.com/demo/explore/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

Re: [web2py] Re: [tip] for those who likes jQUery UI

2011-08-28 Thread Bruno Rocha
On Sun, Aug 28, 2011 at 1:51 PM, pbreit pbreitenb...@gmail.com wrote: It's nice but still too thick for my tastes. I wish these types of libraries would be designed to fit in better with a broader array of site designs. They all need so many modifications to avoid clashing with an existing

Re: [web2py] Useful validators IS_LETTERS, IS_DIGITS

2011-08-28 Thread Bruno Rocha
()(!) ('!', 'enter only numbers') def __init__(self, error_message='enter only digits'): IS_MATCH.__init__(self, '^[0-9]*$', error_message) Regards, Saurabh Sawant -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http

Re: [web2py] parametric router enhancements

2011-08-28 Thread Bruno Rocha
Jonathan, Lets say I have a dict of all my controlers/actions dict(default=['index','page'], account=['user','login','profile','logout']) when requests any that are in the dict should be executed, normal.. but if request anything that are not in the dict I want to pass it to a default

Re: [web2py] parametric router enhancements

2011-08-28 Thread Bruno Rocha
Proxy is a great idea, but I would like to keep the url as it is. I will make account the default controller, and in account I will create a proxy to redirect to the index page if passed /index, or something like this. Thanks.

Re: [web2py] Re: [tip] for those who likes jQUery UI

2011-08-28 Thread Bruno Rocha
free - http://wijmo.com/Wijmo-Open/samples/ comercial - http://wijmo.com/Wijmo-Complete/samples/ On Sun, Aug 28, 2011 at 3:44 PM, Martín Mulone mulone.mar...@gmail.comwrote: beautifull what is the difference free and commercial? 2011/8/28 Bruno Rocha rochacbr...@gmail.com On Sun, Aug

Re: [web2py] Insert Selects with web2py

2011-08-28 Thread Bruno Rocha
I am not sure if DAL can handle SQL mult-insertions but you can build a string and do: db.execute_sql(INSERT IN)

[web2py] [tip] Python Cloud IDE

2011-08-28 Thread Bruno Rocha
http://pythonfiddle.com/ Maybe they can include gluon in packages -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

Re: [web2py] Compile from command line

2011-08-28 Thread Bruno Rocha
it before. Does anybody know what the command is to compile from the command line ? Also is there are website or part of the book that will collect this so I can add it ? Thanks in advance. With regards, Mike Veltman -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno

Re: [web2py] Compile from command line

2011-08-28 Thread Bruno Rocha
On Sun, Aug 28, 2011 at 10:42 PM, Anthony abasta...@gmail.com wrote: All the functions available in the 'admin' app are available in /gluon/admin.py for command line use. The function for compiling the app is app_compile(app, request), which in turn calls gluon.compileapp.compile_application.

Re: [web2py] Re: crud not updating

2011-08-28 Thread Bruno Rocha
if onaccept raises an exception, there will be a rollback?

Re: [web2py] Re: [tip] for those who likes jQUery UI

2011-08-28 Thread Bruno Rocha
On Mon, Aug 29, 2011 at 12:32 AM, pbreit pbreitenb...@gmail.com wrote: I meant the look and feel. The designs of many of these types of libraries are so stylized that they always seem to clash with existing sites. You do not have do use default themes, you can start with a clean theme and

Re: [web2py] Re: crud not updating

2011-08-28 Thread Bruno Rocha
On Mon, Aug 29, 2011 at 12:59 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Not automatically. OK, I was just thinking if it could be the origin of the problem.

Re: [web2py] Published my collection of plugins

2011-08-27 Thread Bruno Rocha
). I'll appreciate your feedback and advises (especially for design decisions). I'll keep trying to create useful plugins and to improve them! -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os

Re: [web2py] Published my collection of plugins

2011-08-27 Thread Bruno Rocha
I loved the extracolumns feature! this really need to be included in SQLTABLE!

Re: [web2py] Published my collection of plugins

2011-08-27 Thread Bruno Rocha
On Sat, Aug 27, 2011 at 8:01 AM, Martín Mulone mulone.mar...@gmail.comwrote: Bruno extracolumns are in SQLTABLE. really? LOL.. never knew about it.

Re: [web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-26 Thread Bruno Rocha
. After the user clicks on the email link, the user will be able to login again with full access. -- -- 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] new feature in trunk: auth.settings.login_after_registration

2011-08-26 Thread Bruno Rocha
Or, we need to logout the user and force the to login again.

Re: [web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-26 Thread Bruno Rocha
temporarily solved with auth.settings.verify_email_next = URL(r=request, c='default', f='user', args='logout') so when user loggin again he got no auth.user.registration_key But, there is a way to do it inside tools.py verify_email ?

Re: [web2py] Spell Check in text field ?

2011-08-26 Thread Bruno Rocha
plugin_chkeditor has spell check 2011/8/26 António Ramos ramstei...@gmail.com hello, is it possible to have spell check in a text field? thank you -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos

Re: [web2py] Re: New 'represent' syntax

2011-08-26 Thread Bruno Rocha
Do you have some field.of type list:... ? I am having trouble with it in grid. http://zerp.ly/rochacbruno Em 26/08/2011 10:54, Johann Spies johann.sp...@gmail.com escreveu: Hallo Martín, Thanks for your reply. Unfortunately the problem persists: I have in Massimo's demo code for the

Re: [web2py] Published my collection of plugins

2011-08-26 Thread Bruno Rocha
(especially for design decisions). I'll keep trying to create useful plugins and to improve them! -- -- 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: GAE deployment problem

2011-08-26 Thread Bruno Rocha
Go to GAE dashboard and manage versions choose the default version. rename your app to 'init' Then you have now myapp.appspot.com

Re: [web2py] Re: CAS Auth redirect loop

2011-08-25 Thread Bruno Rocha
I ran in the same problem, I figured out that using custom auth tables in provider app make the client app to run in infinite loop. I also tried to include 'username' field to the custom Auth table but did not solve the problem. My custom Auth Table https://gist.github.com/1172687 ( I tried with

Re: [web2py] Re: CAS Auth redirect loop

2011-08-25 Thread Bruno Rocha
, but this apps has default auth table and runs very well, I also created an adapter to bring groups and permissions from provider to client and stores in a kind of cache. The problem seems to be when using custom auth tables. Any clue? -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno

Re: [web2py] Re: CAS Auth redirect loop

2011-08-25 Thread Bruno Rocha
custom auth tables. Any clue? -- -- 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: table, grid, smartgrid, getting better

2011-08-24 Thread Bruno Rocha
. It's very nice, another thing yesterday I have an exception using with table auth_membership. 2011/8/24 Bruno Rocha rochacbr...@gmail.com JqueryUI Applied! (Any Theme from http://jqueryui.com/themeroller) Take a look in attached screenshots (a patch is comming to Massimo's mail

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

2011-08-24 Thread Bruno Rocha
Working demo: http://labs.blouweb.com/web2pygrid (Choose a theme) Note that darker themes conflicts with base.css (but this is not a problem, users can override it with !important, in case of use darker themes)

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Bruno Rocha
I dont understand why we do need jquery to take this action? just incluce label for='' and this wiill be done! or not?

Re: Re : Re: [web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread Bruno Rocha
They have pro plans. Starting in $1 to $9 month. But. If I understand well, the goal there is not website/webapp hosting. The main purpose there is webservices histing. You can write bots, schedullers, or post tasks throught some API. As a webservice this consumes less requests but has more

Re: [web2py] CRUD update in modal iframe

2011-08-24 Thread Bruno Rocha
Your modal uses Iframe? nyroModal needs target='_blank' to open in iframe and work as you want. Other modal plugins has other ways for doing it. For redirect in parent window. You ll need to execute a javascript inside modal. window.parent.location = '' http://zerp.ly/rochacbruno Em

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-23 Thread Bruno Rocha
I have a patch for adding for attr in labels for checkbox, radio and upload. I sent the demo code to Massimo, now I will submit a patch. I also think this widgets needs to follow the formstyle and not always be hander as a table. http://zerp.ly/rochacbruno Em 23/08/2011 11:35, Anthony

Re: [web2py] Re: field inheritance

2011-08-23 Thread Bruno Rocha
On Tue, Aug 23, 2011 at 11:18 PM, DenesL denes1...@yahoo.ca wrote: Thanks pbreit, but they are not virtual fields, they are just based on another field definition. Maybe with a function: def like(field, name): import copy f = copy.copy(field) f.name = name f.label = '

Re: [web2py] Re: field inheritance

2011-08-23 Thread Bruno Rocha
Of course or you pass desired template explicit to Field.template or set globally in DAL # define field templates DAL.field_templates = dict( text = Field('name','text',requires=IS_NOT_EMPTY(), represent=...), integer = Field('name','integer',.) ) Field.template(integer,'') and

Re: [web2py] iconset

2011-08-23 Thread Bruno Rocha
the triangle but also a few more action icons (on, off, edit, delete, etc.). Should be small, color neutral, free. Can you suggest one? -- -- 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] Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
practice to get into? Is there an ideal way? -- -- 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: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
pm, Bruno Rocha rochacbr...@gmail.com wrote: I guess it is not wrong, but I do not recommend too much code in controllers, controllers should be for decide the app flow. I reccomend you to create a module in /modules # modules/myobjects.py from gluon import

Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
did you imported in this way: from objects import Search return dict(search=Search.show(db)) ???

Re: [web2py] Re: please help me test new form API

2011-08-22 Thread Bruno Rocha
I just realized another benefit, for some reason you can create and validate/store forms directly in views. {{=SQLFORM(db.auth_group).process()}}

Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
share your whole code in some pastie, gist or send the .py files I will take a look and try it here.

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

2011-08-22 Thread Bruno Rocha
I am using nyroModal which I think is a very nice modal plugin, but I really think it is time to include jQuery UI in to web2py scaffold. so we an use jQueryUI dialog.

Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
This should work http://pastie.org/2412537

Re: [web2py] Re: fluxflex

2011-08-22 Thread Bruno Rocha
I installed by pushing to github. That is the way. http://zerp.ly/rochacbruno Em 22/08/2011 23:00, nic nicats...@gmail.com escreveu: This looks fantastic. Got web2py up and running in 2 mins as advertised. However when I tried to install the plugin_wiki I got the following error. Internal

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

2011-08-22 Thread Bruno Rocha
Anyway, let me know how you think it should work, perhaps I am missing something and I am sure it can be improved. Welcome already comes with default/data which is an API for crud, I do that in PowerGrid plugin, buttons calls default/data passing record id (with signature). No need to write

[web2py] get rid of 'verify password' in register?

2011-08-22 Thread Bruno Rocha
? ( auth.settings.verify_password = False ??? ) -- 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: get rid of 'verify password' in register?

2011-08-22 Thread Bruno Rocha
, is there a simple way to remove the need of Verify Password from auth/register? I want the user only to use [name, email, password, submit], I know how to do that hacking a bit or using custom forms. But, is there an API way? ( auth.settings.verify_password = False ??? ) -- Bruno Rocha

Re: [web2py] Re: fluxflex

2011-08-21 Thread Bruno Rocha
Very good! And admin works perfectly! I am already running an app with MySQL and web2py Trunk. We can create our instalations on github by forking this; https://github.com/nus/web2py-for-fluxflex and customizing to our project needs, so deployment will be very very easy. I didt find any

Re: [web2py] Re: fluxflex

2011-08-21 Thread Bruno Rocha
Found about the QUOTA Processed Time 19 / 1 Requests Processed Time 5.25 / 900.0 seconds (0.25 Hours) Transfer In 14646 / 268435456.0 Bytes (0.25 GB) Transfer Out 106990 / 268435456.0 Bytes (0.25 GB) Storage Size 0.0 / 256.0 MBytes (0.25 GB)Database Size0.0 / 25.6 MBytes (0.025 GB)

Re: [web2py] Re: fluxflex

2011-08-21 Thread Bruno Rocha
and PLANS PlanProjects TrafficProcessed Time Transfer InTransfer Out Disk SpaceDB Space *super geek* ($9.0/month)100 unlimited 10.0GB/day3.0GB/day 3.0GB/day4.0GB 0.5GBChangehttps://www.fluxflex.com/settings/billing# *standard* ($1.0/month)15 5.0/day 5.0GB/day1.0GB/day 1.0GB/day1.0GB

Re: [web2py] Re: Best way to extend user profiles in web2py?

2011-08-20 Thread Bruno Rocha
def user() if request.args(0) == 'profile': db.auth_user.email.readable = db.auth_user.email.writable = False

Re: [web2py] Re: built-in lazy virtual fields

2011-08-20 Thread Bruno Rocha
why static_method is used to define this? not better to have some @lazy decorator?

Re: [web2py] Re: built-in lazy virtual fields

2011-08-20 Thread Bruno Rocha
Massimo, As you are dealing with VirtualFields, consider including some standard properties such as: Label, Comment, Represent, and Type. Label is the more usable of them, specially to display headers=labels in SQLTABLE. In PowerTable I used something like: @virtualsettings(label=..., type=...)

Re: [web2py] Slick new CSS framework from Twitter

2011-08-19 Thread Bruno Rocha
The caveat is teh fact that it is designed for modern browsers only, even in Chrome the fonts seems to be strange. I prefer to continue using the pack: 960.gs, HTML5 Boilerplate, CSS3Buttons, EasyFramework + Wijmo.

Re: [web2py] request.now is in local time?

2011-08-19 Thread Bruno Rocha
a request.utcnow would also be useful (now can be derived from utcnow, but the other way around is not 1:1 on days when daylight saving time changes) -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os

Re: [web2py] Re: web2py wiki?

2011-08-19 Thread Bruno Rocha
I have been working on another projects, but web2yslices2.0 is being developed. The delay was very good because now we can enjoy the new features of web2py. I think in few weeks I will come with the new website! (Wiki, Repository, Plugins, Pyforum...) All integrated.

Re: [web2py] R: How to insert icons into a column of a table created using SQLTABLE()

2011-08-18 Thread Bruno Rocha
def imagepicker(text): if text = : return IMG() elif text = : return IMG() ... db.table.field.represent = lambda text: imagepicker(text) table = SQLTABLE(.) Another possibility is using Virtual Fields or manipulating the object with server side

Re: [web2py] Has anybody tried mobilize.js

2011-08-18 Thread Bruno Rocha
problems with large tables because it is not resized automagically. I ended up using SenchaTouch for my applications which is a bit more complicated On Thu, Aug 18, 2011 at 5:59 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://mobilizejs.com/ Opinions? -- -- Bruno Rocha

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

2011-08-18 Thread Bruno Rocha
this should be SQLTABLE.smart SQLFORM.grid or both?

Re: [web2py] Re: Has anybody tried mobilize.js

2011-08-18 Thread Bruno Rocha
On Thu, Aug 18, 2011 at 2:18 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: If I understand, jquery.mobile requires that you edit the html. mobilize.js will change the html for you on the client side. Yes! you set in JavaScript which selectors need to be placed in header, content

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

2011-08-18 Thread Bruno Rocha
just tested! very nice! I see a new version of PowerTable coming based on this! thanks. would be very nice to have a jquery-iu=True|False (default to false) option to include ThemeRoller classes in to this http://jqueryui.com/themeroller/

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

2011-08-18 Thread Bruno Rocha
, Aug 18, 2011 at 2:21 PM, Bruno Rocha rochacbr...@gmail.comwrote: just tested! very nice! I see a new version of PowerTable coming based on this! thanks. would be very nice to have a jquery-iu=True|False (default to false) option to include ThemeRoller classes in to this http://jqueryui.com

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

2011-08-18 Thread Bruno Rocha
2011/8/18 António Ramos ramstei...@gmail.com where can i download this plugin? This is not a plugin, this is included in web2py in trunk.

Re: [web2py] SQLTABLE default numeric format

2011-08-18 Thread Bruno Rocha
)}} where rows is the result of a select, is there any way to specify a default numeric precision, e.g. '%0.2f' to be applied to all float values in the table? Thanks, Mike -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu

Re: [web2py] SQLTABLE default numeric format

2011-08-18 Thread Bruno Rocha
CORRECTIONl: for field in db.mytable.fields: *field = db.mytable[field]* if field.type == 'double': field.represent = lambda value: %.2f % value

Re: [web2py] Re: How to insert icons into a column of a table created using SQLTABLE()

2011-08-17 Thread Bruno Rocha
On Wed, Aug 17, 2011 at 3:28 AM, TomPliss tompl...@gmail.com wrote: Can't you use the represent field of the column, to show an image ? Yes you can. db.table.field.represent = lambda value: IMG(_src=URL(...), _alt=value)

[web2py] [OFF] what-should-a-developer-know-before-building-a-public-web-site

2011-08-17 Thread Bruno Rocha
useful reading http://programmers.stackexchange.com/questions/46716/what-should-a-developer-know-before-building-a-public-web-site

[web2py] The use of dashes in helpers arguments.

2011-08-17 Thread Bruno Rocha
I need to create this: div data-role=controlgroup data-type=horizontal using helpers this should be: DIV(_data-role='controlgroup', _data-type='horizontal') but the code above raises a Python error: SyntaxError: keyword can't be an expression what shoud I use in the place of dashes? thanks.

Re: [web2py] jqgrid-module import problem

2011-08-17 Thread Bruno Rocha
and excellence. 2 Pet. 1:2b,3a -- -- 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] jqgrid-module import problem

2011-08-17 Thread Bruno Rocha
No more need to use lical_import it is deprecated. Newest web2py has a custom importer which works much better. http://zerp.ly/rochacbruno Em 17/08/2011 08:20, Johann Spies johann.sp...@gmail.com escreveu: On 17 August 2011 12:55, Bruno Rocha rochacbr...@gmail.com wrote: try changing

Re: [web2py] Re: The use of dashes in helpers arguments.

2011-08-17 Thread Bruno Rocha
Thank you Massimo, this works very well. For the record, this is needed by JqueryMobile and Sencha Touch. On Wed, Aug 17, 2011 at 8:28 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: DIV(**{'_data-rol':'controlgroup', '_data-typ':'horizontal'}) On Aug 17, 5:29 am, Bruno Rocha

Re: [web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-17 Thread Bruno Rocha
(models), they are huge, and I haven't had the chance to prepare something much smaller ... but I hope someone out there (Massimo?) can help me fix these show-stopper problems. Any clues?, thanks, Carlos -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar

Re: [web2py] How to customize widget rendering in form

2011-08-16 Thread Bruno Rocha
How do I customize the rendering into: div name=tags id=tag_tags class=list input type=checkbox value=12 name=tagsbusinessbr / input type=checkbox value=11 name=tagsfamilybr / input type=checkbox value=10 name=tagsfriendbr / /div Thanks in advance. -- -- Bruno Rocha [ About me: http

Re: [web2py] How to insert icons into a column of a table created using SQLTABLE()

2011-08-16 Thread Bruno Rocha
? Thanks in advance for suggestions. Valter -- -- 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] please help me test new form API

2011-08-14 Thread Bruno Rocha
You can also do. def action(): return dict(form=SQLFORM(db.table).process()) Or. def action(): form = SQLFORM(...) form.validate() # as shortcut to if form.accepts... return dict(form=form) http://zerp.ly/rochacbruno Em 14/08/2011 19:14, Massimo Di Pierro

Re: [web2py] W3C Validator errors

2011-08-11 Thread Bruno Rocha
http://www.w3schools.com/html5/att_meta_name.asp?output=print http://zerp.ly/rochacbruno Em 11/08/2011 04:37, rif feric...@gmail.com escreveu: If we validate the welcome app with http://validator.w3.org we only have two errors: 1. 2. *Line 12, Column 66*: Bad value X-UA-Compatible for

Re: [web2py] W3C Validator errors

2011-08-11 Thread Bruno Rocha
Strange. copyright is not listed as html5 meta tag http://www.w3schools.com/html5/tag_meta.asp http://zerp.ly/rochacbruno Em 11/08/2011 04:37, rif feric...@gmail.com escreveu: If we validate the welcome app with http://validator.w3.org we only have two errors: 1. 2. *Line 12, Column 66*:

Re: [web2py] Re: infoworld put web2py in the top of python frameworks

2011-08-11 Thread Bruno Rocha
I am using wingIDE for debug. But not always. Most times I only need shell and prints. http://zerp.ly/rochacbruno Em 11/08/2011 07:49, Mariano Reingart reing...@gmail.com escreveu: There is online shell debugger (based on PDB) approach already included with web2py:

[web2py] Interesting new SQLite/JSON based database

2011-08-11 Thread Bruno Rocha
Interesting project, a JSON+SQLite based database with rest API. https://bitbucket.org/robertodealmeida/jsonstore May be web2py DAL can have an adapter for it, or something like this. A schema-free database for JSON documents, exposed through a REST API. JSONStore supports a wide range of

Re: [web2py] Re: infoworld put web2py in the top of python frameworks

2011-08-10 Thread Bruno Rocha
On Wed, Aug 10, 2011 at 1:57 PM, mikech mp.ch...@gmail.com wrote: Very nice! - Going to retweet this again :) Acording ti this table - http://www.infoworld.com/d/application-development/pillars-python-six-python-web-frameworks-compared-169442?page=0,2 web2py only misses a real time debugger,

Re: [web2py] Re: web2py ranked best out of Six web frameworks

2011-08-10 Thread Bruno Rocha
yep, and web2py.com suffers from slashdot effect.. I am curious to see the access report for today!

Re: [web2py] Re: Forcing table name in row object?

2011-08-09 Thread Bruno Rocha
rows = db(...).select(...) rows.compact = False and now you always have the rows[i].table.field syntax. no more rows[i].field shortcuts. Thank you Massimo, this will save some 'ifs' that i've made in my plugins.

Re: [web2py] video about new web2py scheduler [RFC]

2011-08-09 Thread Bruno Rocha
thank you, I am already testing it, nice solution. I was working with this one https://github.com/lucasdavila/web2py-queue (which is not complete yet) but now I am trying your solution for one of my systems. Thanks

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

2011-08-08 Thread Bruno Rocha
it get this path from? Thanks Peter On Aug 6, 6:01 pm, peter peterchutchin...@gmail.com wrote: It is 1.98.2 On Aug 6, 5:28 pm, Bruno Rocha rochacbr...@gmail.com wrote: What is your web2py version? The plugin works only in 1.97+ http://zerp.ly/rochacbruno Em 06/08/2011

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-08 Thread Bruno Rocha
I enabled a different set of toolbar buttons. I will send a patch which provides an python API to deal with toolbar set. http://zerp.ly/rochacbruno Em 08/08/2011 10:59, Ross Peoples ross.peop...@gmail.com escreveu: I have applied Bruno's patch to the plugin on BitBucket. Thanks again Bruno for

Re: [web2py] ValueError - legacy database

2011-08-08 Thread Bruno Rocha
You do not have to define field type when referencing. Field('fieldname', db.referencetable) No need to define as 'integer' http://zerp.ly/rochacbruno Em 08/08/2011 17:46, Ramiro B. da Luz ramiro...@gmail.com escreveu: I asked this in the irc channel but as I was leaving I pasted it here:

Re: [web2py] ValueError - legacy database

2011-08-08 Thread Bruno Rocha
I mean, this: Field('a_fon_codigo', 'integer', db_pgsql.t_fone) should be: Field('a_fon_codigo', db_pgsql.t_fone)

Re: [web2py] Pagination

2011-08-06 Thread Bruno Rocha
db(db.posts.id0).select(limitby=(0,10)) http://zerp.ly/rochacbruno Em 06/08/2011 05:00, Web2Py Freak halna...@gardeniatelco.com escreveu: Hey guys , Anyone Used Pagination before , i have a table named blogpost and i want it to view every 10 post in a page , how can i do that ??

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

2011-08-06 Thread Bruno Rocha
What is your web2py version? The plugin works only in 1.97+ http://zerp.ly/rochacbruno Em 06/08/2011 08:55, peter peterchutchin...@gmail.com escreveu: I have powergridapp working on my system, however when I added the powergrid plugin to my app I get No module named

Re: [web2py] Re: using sum with left join

2011-08-06 Thread Bruno Rocha
Probably with subqueries. select (select sum(...) from. ..) as mysum, otherfield, otherfield... http://zerp.ly/rochacbruno Em 06/08/2011 20:02, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: How would you do it in SQL? I do not know. On Aug 6, 5:54 pm, Tim Korb jtk...@gmail.com wrote:

Re: [web2py] Crud.select creates a table in textarea

2011-08-06 Thread Bruno Rocha
I guess you have to replace crud.select with db.select Crud returns a form using tables by default unless you specify formstyle parameter. In your case. You probably need only data as a value. So use db.select not crud.select http://zerp.ly/rochacbruno Em 06/08/2011 23:45, Hybride

Re: [web2py] Re: What is the best deployment method.

2011-08-05 Thread Bruno Rocha
I do my dev on a Mac and deploy to 2 Ubuntu cloud servers, one for testing and one for production. I use Fabric scripts to pull from a Bitbucket repo. Works fine. I use Ubuntu on local server, I jsut use mercurial to deploy, push from local, pull from remote. managing branches etc... I

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-03 Thread Bruno Rocha
I found an issue, as issues is disabled in your bitbucket, I created a wiki page. https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/issue

Re: [web2py] email to all users of a group. Howto?

2011-08-03 Thread Bruno Rocha
=demo,message=demo) 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://www.blouweb.com ]

Re: [web2py] Powergrid documentation?

2011-08-01 Thread Bruno Rocha
I am writing some docs and solving some issues. Thanks http://zerp.ly/rochacbruno Em 01/08/2011 11:28, Johann Spies johann.sp...@gmail.com escreveu: I am trying out PowerGrid. As I could not find good documentation that explains how to use it, I was following the examples to try and figure out

Re: [web2py] Check out my new web2py website

2011-08-01 Thread Bruno Rocha
://www.yakitome.com is for that. It will be supported in parallel until the new site is solid. Feedback on the new site will be appreciated. Use the contact form. Thanks. -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu

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