Re: [web2py] Python Code in DB

2012-03-01 Thread Bruno Rocha
you can read the field and pass it as an arg to template.render. it will act like a view file. from gluon.template import render row = db.mytable[id] template = row.template return render(template, dict(form=form, x=y)) http://zerp.ly/rochacbruno Em 01/03/2012 08:57, Hassan Alnatour

Re: [web2py] web2py 1.99.5 (please read)

2012-02-29 Thread Bruno Rocha
is the experimental model map included? or it is not done yet? http://zerp.ly/rochacbruno Em 28/02/2012 17:28, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: I am planning to release this tomorrow but you can test it today. ***Please help us test it today*** It is really important.

Re: [web2py] db.Table in appadmin when used in a module

2012-02-29 Thread Bruno Rocha
where the akb_signature_uuid is defined? in a model or module from gluon import current current.akb_signature_uuid = akb_signature_uuid = something then in appadmin from gluon import current does not works¿ http://zerp.ly/rochacbruno Em 29/02/2012 06:26, Johann Spies johann.sp...@gmail.com

Re: [web2py] Re: web2py 1.99.5 (please read)

2012-02-29 Thread Bruno Rocha
no, I mean the model-execution-mapping. http://zerp.ly/rochacbruno Em 29/02/2012 09:03, Alan Etkin spame...@gmail.com escreveu: Massimo: I've found that the timing changes to the LOAD() helper have learnt the first lesson of not being seen. The problem is that the changes to web2py.js I

Re: [web2py] Re: Inheritance and composition of views

2012-02-29 Thread Bruno Rocha
Dont know if it helps, but note that you can enclose HTML as a function. views/my_html_functions.html {{def my_html_block(args):}} {{if args.:}} tag/tag {{pass}} {{=DIV(UL(LI()))}} tag/tag tag/tag tag/tag {{return}} views/anyfile.html {{extend

Re: [web2py] V199.4 Error when define table in module and import it?

2012-02-28 Thread Bruno Rocha
,writable=False,readable=False), Field('created_on','datetime',default=current.request.now,writable=False,readable=False), migrate=True) return db[table_name] -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Error that i really dont understand

2012-02-28 Thread Bruno Rocha
= val.split( ) ValueError: need more than 1 value to unpack ERROR SNAPSHOT type 'exceptions.ValueError'(need more than 1 value to unpack) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Error that i really dont understand

2012-02-28 Thread Bruno Rocha
: The ALTER table is a limitation of sqlite, other db engines works nice with this. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] help with css

2012-02-28 Thread Bruno Rocha
I've never seen this plus icon, so I created a new widget with an add new button. This widget I am using for cook recipes in Movuca. The code is in github. http://zerp.ly/rochacbruno Em 28/02/2012 14:40, Massimo Di Pierro massimo.dipie...@gmail.com escreveu:

Re: [web2py] Thumbnails

2012-02-28 Thread Bruno Rocha
I do it using the compute attribute, take a look: http://movu.ca/demo/article/show/36/creating-thumbnails-with-web2py On Tue, Feb 28, 2012 at 3:32 PM, Ivan Vilches Basaul ivan_vilc...@hotmail.com wrote: Any way for automatic thumbnails creation? Thanks Ivan Vilches Basaul -- Bruno

Re: [web2py] help with css

2012-02-28 Thread Bruno Rocha
That is my widget: http://awesomescreenshot.com/07fnx882 and this is the code: https://github.com/rochacbruno/Movuca/blob/master/modules/helpers/widgets.py#L241 On Tue, Feb 28, 2012 at 4:20 PM, Bruno Rocha rochacbr...@gmail.com wrote: I've never seen this plus icon, so I created a new widget

Re: [web2py] Request for some formal guidelines on models in modules

2012-02-27 Thread Bruno Rocha
Massimo and Mariano are developing a conditional model_map, so you will be able to choose which model files to run for each requested controller, it will be a very good add to web2py. Maybe it will be included only in web2py 2.0. I still think we need a model-less approach using modules, and it

Re: [web2py] Re: cron setup

2012-02-27 Thread Bruno Rocha
thanks Luciano! I will migrate your recipe to the new web2pyslices website. http://zerp.ly/rochacbruno Em 27/02/2012 09:16, Luciano Pacheco lucm...@gmail.com escreveu: Example: http://movu.ca/demo/article/show/31/web2py-cron-task My first try in movu.ca :-) On Mon, Feb 27, 2012 at 2:32

Re: [web2py] Request for some formal guidelines on models in modules

2012-02-27 Thread Bruno Rocha
and Flask, Bottle etc.. all good frameworks, It is very nice to give a try to everyone of them! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Access to app variables in modules

2012-02-26 Thread Bruno Rocha
gluon import current and access current.object for (session|request|response|cache|T) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Hide the Extra added fields from auth table during the registrations

2012-02-23 Thread Bruno Rocha
- Last name - email-id - Password - verify password -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: accurate prettydate

2012-02-22 Thread Bruno Rocha
, precision) precision in ['year', 'month', 'week', 'day', 'hour'] or 'auto' 'auto' gets the largest unit of time = now - date mic -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] accurate prettydate

2012-02-21 Thread Bruno Rocha
somebody implemented that? can you share the code? Thanks -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: can the query in IS_IN_DB have more than one table?

2012-02-21 Thread Bruno Rocha
db.othertable(db.person(db.person.id ).fk_to_other_table_id).field_other_table) Not possible, but this is possible: db.dog.owner.requires = IS_IN_DB(db, db.person.id, *lambda row: db(db.othertable.foreign_key == row.reference_key ).select().first().somefield*) -- Bruno Rocha [http

Re: [web2py] The Great Web Framework Shootout

2012-02-19 Thread Bruno Rocha
I did not see web2py on the list... Em 20/02/2012 03:03, pbreit pbreitenb...@gmail.com escreveu: http://blog.curiasolutions.com/the-great-web-framework-shootout/ https://github.com/seedifferently/the-great-web-framework-shootout

Re: [web2py] Forms not working with web2py in Chrome

2012-02-16 Thread Bruno Rocha
refreshes with cleared inputs as new. The form works with other browsers as expected (Firefox, Opera, IE) I'm running on Windows 7. Anybody knows what is causing such problem ?? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: html5 suport for forms

2012-02-16 Thread Bruno Rocha
pattern, also it can receive some extra values as fields_order, include_fieldset=True, labels={}, and subform=FORM() I did not started to code the plugin, I am just wondering about it. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: why web2py is not listed in Google App Engine ? (Django is there!)

2012-02-15 Thread Bruno Rocha
Python is a Django-centric community. http://zerp.ly/rochacbruno Em 15/02/2012 12:05, Alan Etkin spame...@gmail.com escreveu: That is the experimental 2.7 runtime version of GAE, I guess they just didn't bother adding the web2py compatibility information On Feb 15, 6:54 am, Sebastian E.

Re: [web2py] Re: Instalação do badmin

2012-02-15 Thread Bruno Rocha
2012/2/15 Ciro cal...@gmail.com badmin/index se você renomeu para plugin_ então tente plugin_badmin/index -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] loop inside helper

2012-02-15 Thread Bruno Rocha
1. TD(*[INPUT(_value=var) for var in somelist]) 2. td = TD() for var in somelist: td.append(INPUT(_value=var)) -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] html5 suport for forms

2012-02-15 Thread Bruno Rocha
of performance. Someone already implemented it directly with web2py FORM, SQLFORM ? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-14 Thread Bruno Rocha
thank you all, this post is a livensing tutorial. I changed Movuca to LGPL, I will talk to Michele about facebook contribs. I am finishing the instalation interface and admin panel. Planning to pack and release b0.1 until next weekend. Thank you all for the help. http://zerp.ly/rochacbruno Em

Re: [web2py] request.args returns each arg as string

2012-02-13 Thread Bruno Rocha
in the second example the DAL query operator == is taking care of trying to convert your data to the right type. http://zerp.ly/rochacbruno Em 14/02/2012 05:14, Annet anneve...@googlemail.com escreveu: I posted a question asking why this doesn't work: if request.args(0)==1 the answer:

Re: [web2py] Dedicated IDE

2012-02-11 Thread Bruno Rocha
to work). Would anyone be interested in making a dedicated standalone IDE for web2py? -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com -- Bruno Rocha [http

Re: [web2py] Making Internationalization Easier

2012-02-10 Thread Bruno Rocha
I am interested in this, did you see how Magento inline translations works? Let me know if I can help. http://zerp.ly/rochacbruno Em 10/02/2012 13:42, Bruce Wade bruce.w...@gmail.com escreveu: Hello, I am working on a module for my current site that will make doing internationalization

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-10 Thread Bruno Rocha
On Fri, Feb 10, 2012 at 1:00 PM, Wikus van de Merwe dupakrop...@googlemail.com wrote: GPLv3 Whats the key differences between GPLv3 and LGPLv3 ? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-10 Thread Bruno Rocha
/Home] Maybe I am going to use another libraries, how can I know if it is compatible or not? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Chain/Multiple condition on select

2012-02-10 Thread Bruno Rocha
requete/statement : ?? sql = -- if tag : sql += tag = xxx -- if status: sql += and status = xxx result = db(sql).select() it's just an example, wich don't work, but i don't understand how to chain condition of a query :$ Best regards -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-10 Thread Bruno Rocha
: http://code.google.com/p/web2py/ official : http://www.web2py.com/ -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Modules: how to access db

2012-02-09 Thread Bruno Rocha
outside the function, it will be evaluated only at the first request, and for the subsequents, the request object will always be the same. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-09 Thread Bruno Rocha
important feature for Large complex systems. My Project is growing big and should be able to organize code. 50 files of code spreading inside just one controller folder is a management nightmare. Thanks. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Modules: how to access db

2012-02-09 Thread Bruno Rocha
I dont know exactly how it works, but I had problems serializing db in to current, so Massimo said to always pass it explicitly to classes ad functions, I remember that SQLITE worked, but not Postgres. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] DAL speed - an idea

2012-02-09 Thread Bruno Rocha
most of the speed problem when it is needed, but still maintains a lot of the features of the SQL DAL processing. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-09 Thread Bruno Rocha
for this? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-09 Thread Bruno Rocha
anyone wishing to take open source code for free, closing it and sell binary only copies. That really hurts free software in this case. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-09 Thread Bruno Rocha
/web2py/ official : http://www.web2py.com/ -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Odd hasattr(session, 'blah'). Don't understand it.

2012-02-09 Thread Bruno Rocha
was not an attribute of session? Thanks, Cliff Kachinske -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-09 Thread Bruno Rocha
it?) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [web2py-users-brazil:2924] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-08 Thread Bruno Rocha
://www.warplydesigned.com http://www.fitnessfriendsfinder.com -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Workflow engine for web2py

2012-02-07 Thread Bruno Rocha
+1 I would like to have it, lets start coding? http://zerp.ly/rochacbruno Em 18/01/2012 22:02, António Ramos ramstei...@gmail.com escreveu: is it dificult to do something like this in web2py? http://blog.aizatto.com/2009/12/07/ruby-on-rails-finite-state-machine-plugin-workflow/

Re: [web2py] How to disable debugging

2012-02-07 Thread Bruno Rocha
of the page rendered, and there is some debugging information. How can I disable it? regards Praveen -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Movuca - Social CMS beta 0.1

2012-02-07 Thread Bruno Rocha
intranets, also we are going to offer commercial support and commercial plugins when the app outs of beta. -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-07 Thread Bruno Rocha
the plugin with any license (not?) So if someone change the core, it will be needed to released the changes as open source. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-07 Thread Bruno Rocha
. Is there a license? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-07 Thread Bruno Rocha
OK, I am going to change it to LGPL3 (the same of web2py) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] default layout.html error (or just me)

2012-02-07 Thread Bruno Rocha
/Resources/applications/images/views/default/index.html, line 79 response.write('\n ', escape=False) ^ SyntaxError: invalid syntax TiA. Andreas -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-07 Thread Bruno Rocha
it without code distribution, for example in a software as service model. Only AGPL will prevent that, as it requires to make the source available whenever the code is deployed on a server. -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-07 Thread Bruno Rocha
...@googlegroups.com details : http://groups.google.com/group/web2py-developers the project: http://code.google.com/p/web2py/ official : http://www.web2py.com/ -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: keep shared objects permanently in RAM: Is it possible ?

2012-02-06 Thread Bruno Rocha
16 GB shared across requests is called Database, to run a memory like database you should go with Redis!

Re: [web2py] dataTables with serverside json

2012-02-06 Thread Bruno Rocha
Not, PowerGrid is based in pure Jquery Templates -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: how to restart only one app in uwsgi?

2012-02-06 Thread Bruno Rocha
On Sun, Feb 5, 2012 at 2:21 PM, Niphlod niph...@gmail.com wrote: kill -1 `cat /var/run/uwsgi-python/appname/pid` Thanks! that works! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Problem with custom modules

2012-02-06 Thread Bruno Rocha
with this approach is there a way to force web2py to tell about errors found when loading a module? This is a known issue, we are looking for a good solution, I am testing traceback module, but it cannot catch the error message from custom_importer. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Transparently convert request.vars into unicode strings

2012-02-05 Thread Bruno Rocha
in request.post_vars.items()}) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] lungo.js

2012-02-05 Thread Bruno Rocha
looks much better than Jquery mobile, and simple to implement. Thanks for sharing it! On Fri, Feb 3, 2012 at 2:53 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://www.lungojs.com/ -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] keep shared objects permanently in RAM: Is it possible ?

2012-02-05 Thread Bruno Rocha
. (to slow) thanks -- Sebastian E. Ovide -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] validator for valid SQL table name

2012-02-03 Thread Bruno Rocha
look the code in dal.py referencing check_reserved, you can copy patterns and dicts from there in to your validator. http://zerp.ly/rochacbruno Em 03/02/2012 06:41, Manuele Pesenti manuele.pese...@gmail.com escreveu: Hi! Can you suggest me how can I write a validator for sql table names? I

Re: [web2py] Re: Server side validation with ajax but without form

2012-02-02 Thread Bruno Rocha
, but anyway it can be implemented based in Table.validate_and_update -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] model less apps (a blog example)

2012-02-01 Thread Bruno Rocha
31, 2012 at 7:54 PM, Bruno Rocha rochacbr...@gmail.comwrote: Hi Bruce, delete the database if the sample app created one, then replace modules/datamodel/user.py with this https://gist.github.com/1714979 -- Bruno Rocha [http://rochacbruno.com.br] -- -- Regards, Bruce Wade http

Re: [web2py] Invalid request if the URL contains a special char or umlaut

2012-02-01 Thread Bruno Rocha
request if I'm using any special chars like %21 (!) or umlauts. Web2py is running with the fcgihandler and Lighttpd. All special chars are encoded by using urllib.quote(). Please help! Thanks a lot. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] bootstrap 2

2012-02-01 Thread Bruno Rocha
Rocha rochacbr...@gmail.com Bootstrap 2 released, full responsible layout! I am working on porting scaffold app to bootstrap with jquery ui support! http://twitter.github.com/bootstrap/download.html http://addyosmani.github.com/jquery-ui-bootstrap/ -- Bruno Rocha [http

Re: [web2py] Re: [w2py-dev] model less apps (a blog example)

2012-02-01 Thread Bruno Rocha
', self.db.languages.code, self.db.Language.code, self.entity.code. Tried deleting the database but still same issue. -- Regards, Bruce On Wed, Feb 1, 2012 at 9:37 AM, Bruno Rocha rochacbr...@gmail.comwrote: You can set visibility and other options, but you cant use

Re: [web2py] Re: Invalid request if the URL contains a special char or umlaut

2012-02-01 Thread Bruno Rocha
urllib.quote(). Post an example, please, and the full text of the invalid-request message. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Invalid request if the URL contains a special char or umlaut

2012-02-01 Thread Bruno Rocha
On Wed, Feb 1, 2012 at 4:39 PM, Dan kor...@ironshark.de wrote: Could this be fixed in the next update? It is not a bug that needs to be fixed, certainly it is a security decision! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Calling Controller Function from javascript

2012-01-31 Thread Bruno Rocha
:14 AM, Sanjeet Kumar sanjeet@gmail.comwrote: How to call the Controller function from javascript -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Record Versioning

2012-01-31 Thread Bruno Rocha
that do not use forms? Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Parse HTML from the database?

2012-01-31 Thread Bruno Rocha
://hittingsmoke.com/blog/posts/view/1 I feel like this is simple and I'm just overlooking the obvious. Thanks. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] updating more than one record.

2012-01-31 Thread Bruno Rocha
to sql update) It seems that crud.update is handling one record. I thought about looping (for) and/or executesql. An example will be perfect. Regards, Ashraf -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: updating more than one record.

2012-01-31 Thread Bruno Rocha
... * On Tue, Jan 31, 2012 at 7:21 PM, Ashraf Mansour ad...@aqar-riyadh.comwrote: Thank you for the immediate reply. my problem is how and where to write the statement in controller and views ? Regards, Ashraf -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: [w2py-dev] model less apps (a blog example)

2012-01-31 Thread Bruno Rocha
Hi Bruce, delete the database if the sample app created one, then replace modules/datamodel/user.py with this https://gist.github.com/1714979 -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Clean session after logout

2012-01-29 Thread Bruno Rocha
... -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] help with js issue

2012-01-29 Thread Bruno Rocha
the same for me, I always have to kill - 9 PID. But it only happens after some time. http://zerp.ly/rochacbruno Em 29/01/2012 14:27, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: I would like to post web2py 2.0 since we have no major pending issues. Yet there are two issues I would

Re: [web2py] new feature in trunk ... help test

2012-01-29 Thread Bruno Rocha
I like the idea. Currently I am loading user groups on login. I just think it have to be called auth.user_groups so it will be more compatible with auth.user_id http://zerp.ly/rochacbruno Em 29/01/2012 23:17, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: auth.mygroups is a

Re: [web2py] Web2py in large web scenarios

2012-01-28 Thread Bruno Rocha
: I'd use folders inside models. I think I'd use web2py infrastructure that's already available to me. And, AFAIK, /modules were not planned for that. Except for pluggable apps. -- Vinicius Assef. On Fri, Jan 27, 2012 at 10:35 PM, Bruno Rocha rochacbr...@gmail.comwrote: I am using

Re: [web2py] Re: Movuca CMS - Updates and Call for help

2012-01-27 Thread Bruno Rocha
and a chat. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] web2py CRUD example

2012-01-27 Thread Bruno Rocha
: invalid view (default/data.html) I did expect something like a list of tables. Out of the box there seems to be no default/data.html view. Do I have to write my own data.html view to test the CRUD functionality? Or did I do something wrong in the setup? Regards -Gian. -- Bruno Rocha [http

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Bruno Rocha
://www.cos-la.net http://alfonsodg.net Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] how to restart only one app in uwsgi?

2012-01-27 Thread Bruno Rocha
to restart? Thanks -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Bruno Rocha
I also noted best performance directly rendering the templates and caching views where it can be cached. just replacing return dict() with return response.render(filename, context) in conttrollers and also usins @cached controllers and cached queries. the bottleneck is always server and

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Bruno Rocha
I am using /models just to define small global functions and to set some response and request keys. All my code including datamodels I am putting into /modules In my mind I changed the /models to /scripts or /batches so it is more easy to understand why avoiding it. my current structure is:

Re: [web2py] cluster: distributed locks

2012-01-26 Thread Bruno Rocha
a lot of things woth both resources unlock(resource B) unlock(resource A) else so other things unlock(resource A) do more things db.commit() do more staff any better idea ? thansk -- Sebastian E. Ovide -- Bruno Rocha [http

Re: [web2py] Re: begin a transaction manually ?

2012-01-26 Thread Bruno Rocha
maybe if there's a way to .close() the db to be able to define it again. http://zerp.ly/rochacbruno Em 26/01/2012 12:18, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: You cannot clone it. but can make two. On Jan 26, 3:10 am, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: 2)

Re: [web2py] How do I aggregate accounts using OAuth web2py?

2012-01-26 Thread Bruno Rocha
On Fri, Jan 27, 2012 at 12:06 AM, Tito Garrido titogarr...@gmail.comwrote: Hey Matthew, Were you able to implement facebook + web2py login? I have facebook + google + web2py login in http://movu.ca/demo (source in github) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Empty session after login. How can this happen?

2012-01-26 Thread Bruno Rocha
)) AttributeError: 'NoneType' object has no attribute 'user' Anybody got a clue what's going on? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Standalone DAL Usiage - Insert from a Dictionary (vs bulk_insert)

2012-01-26 Thread Bruno Rocha
You have to unpack the dictionary with ** ddb.mytbl.insert*(***ddict) In Python dictionaries can be unpacked using ** and lists are unpacked with *, it is knows as *args and **kwargs optionally you can use the db.mytbl.filter_fields to remove the unknown fields from the dict. -- Bruno Rocha

Re: [web2py] Re: Mixing/supporting CMS with Web2py

2012-01-25 Thread Bruno Rocha
For those who are looking for inspiration on how to develop a good traditional-cms with web2py, take a look in to http://www.fork-cms.com/before starting your code! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] addtoany problem

2012-01-25 Thread Bruno Rocha
. Is it possible to go over in loading the page like the network was completly unreachable? thanks Manuele -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] How to access actual Rows object for SQLFORM.grid?

2012-01-25 Thread Bruno Rocha
'actual_rows' attribute in the SQLFORM object Is there a way to access actual rows (after a search) in .grid? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Sending email from form with multiple documents

2012-01-25 Thread Bruno Rocha
Email1.PNG 14KViewDownload Email2.PNG 23KViewDownload -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Setting mysql collation in web2py?

2012-01-25 Thread Bruno Rocha
schemas. Can this line be removed? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: google code (mercurial) problem

2012-01-24 Thread Bruno Rocha
I am using Git Em 24/01/2012 12:20, Ross Peoples ross.peop...@gmail.com escreveu: Which one are we using as the primary repo now, is it Google Code or GitHub?

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

2012-01-24 Thread Bruno Rocha
Yes it is very nice, I am already using since the beta in http://movu.ca, I am also developing a boostrap theme for the CMS -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] how we create admin password and placed in parameters_PORTNUM.py file manually

2012-01-24 Thread Bruno Rocha
?? if it possible, how we can build this password manually ?? Thanks -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Problem with .smartgrid on tables with links

2012-01-24 Thread Bruno Rocha
self[key] File /home/bruce/projects/web2py/gluon/dal.py, line 5457, in __getitem__ return dict.__getitem__(self, key) KeyError: '_id' with default auth_user table and some extra_fields added -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] google code (mercurial) problem

2012-01-23 Thread Bruno Rocha
on github should be fine. You will find about 10 tickets marked as closed but the trunk in googlecode will not show the fix. Hopefully this will be fixed today. Apologies. Massimo -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Problem with plugin_PowerFormWizard and Internetexplorer

2012-01-23 Thread Bruno Rocha
! return dict(Erklaerung=Erklaerung , Veranstaltungsausgewaehlt=Veranstaltungsausgewaehlt, form=form) -- Bruno Rocha [http://rochacbruno.com.br]

<    2   3   4   5   6   7   8   9   10   11   >