Re: [web2py] Re: Recommendations on model file size (database tables)

2012-07-16 Thread Bruno Rocha
You can also download a modelless app here: https://github.com/rochacbruno/web2py_model_less_app/downloads I am using this approach for all my apps ( But I know we have things to improve) On Mon, Jul 16, 2012 at 5:52 PM, Derek sp1d...@gmail.com wrote: There should be no benefit to moving them

[web2py] Re: A blog app with no models - to include in /appliances

2012-07-16 Thread Bruno Rocha
Also, I will change the way datamodels are defined, I learned a good trick from my use of Django. *Instead of:* class Post(object): tablename = post def set_propertieds(self): self.fields = [ Field(name), Field(email), ] *We can do:*

Re: [web2py] Re: how to use cache decorator within modules?

2012-07-15 Thread Bruno Rocha
So what happens when I do this? modules/mymodule.py from gluon import current class MyHandler(object): def __init__(self, db): myrows = db(myquery).select(cache=(current.cache.ram, 300)) -- Forwarded message -- From: villas villa...@gmail.com Date: Sun, Jul

[web2py] en to en - Can I do this with T?

2012-07-12 Thread Bruno Rocha
I need something like this. h1 {{=T(Here I will put the awesome title)}} /h1 So I will create files for languages: en.py {Here I will put the awesome title: My Title} pt-br.py {Here I will put the awesome title: Meu título} an so.. Should it works?

[web2py] Re: feed agregator (planet)

2012-07-08 Thread Bruno Rocha
FOund it! http://www.web2pyslices.com/slice/show/1407/planet-web2py Thanks

Re: [web2py] Looking for multi-select widget that uses two text boxes

2012-07-08 Thread Bruno Rocha
I guess you need this: http://www.web2pyslices.com/slice/show/1526/cascading-drop-down-lists-with-ajax-2 *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image: Twitter]http://twitter.com/rochacbruno [image: LinkedIn]

Re: [web2py] please help us test web2py

2012-07-06 Thread Bruno Rocha
today I will test all my apps then I report here. http://zerp.ly/rochacbruno Em 06/07/2012 01:52, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: There are many changes in DAL. If you use MySQL or MSSQL or PostgreSQL please help us check the new trunk did not break anything. We have

Re: [web2py] File name too long?

2012-07-06 Thread Bruno Rocha
Ubuntu server 11.04 On Fri, Jul 6, 2012 at 10:50 PM, Jonathan Lundell jlund...@pobox.comwrote: On 6 Jul 2012, at 6:42 PM, Bruno Rocha wrote: Recently, many users of a social site which uses Movu.ca ( http://www.menuvegano.com.br) are trying to upload pictures taken from facebook

Re: [web2py] File name too long?

2012-07-06 Thread Bruno Rocha
Ubuntu server 11.04 and Postgres On Fri, Jul 6, 2012 at 11:12 PM, Bruno Rocha rochacbr...@gmail.com wrote: Ubuntu server 11.04 On Fri, Jul 6, 2012 at 10:50 PM, Jonathan Lundell jlund...@pobox.comwrote: On 6 Jul 2012, at 6:42 PM, Bruno Rocha wrote: Recently, many users of a social site

Re: [web2py] Alternative to Janrain: in pure Python

2012-07-05 Thread Bruno Rocha
Thanks! I need to try it today! On Thu, Jul 5, 2012 at 11:42 AM, Alec Taylor alec.tayl...@gmail.com wrote: A rather good 64-line OAuth 2 client implementation for Python has been open-sourced. Source-code https://github.com/demianbrecht/sanction

Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread Bruno Rocha
Thats ok now! It was a problem with notification system, I am using a background task queue and for some reason it has blocked postgres. Thank you for reporting! *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image:

Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread Bruno Rocha
%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18 On Sun, Jul 1, 2012 at 10:29 AM, Michele Comitini michele.comit...@gmail.com wrote: Must be an open transaction somewhere (in the queue consumer script?) that never closes. Il giorno 01/lug/2012 14:04, Bruno Rocha rochacbr...@gmail.com

Re: [web2py] How to change a form.vars.field value after validation?

2012-06-27 Thread Bruno Rocha
SO I think you have to inspect and edit the attributes of * form.custom.widget.captcha* * * after the .validate() check the attr's of form.custom.widget.captcha anc change them. *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image:

Re: [web2py] Re: Creating users on checkout?

2012-06-25 Thread Bruno Rocha
auth.register On Mon, Jun 25, 2012 at 2:26 PM, RKS sean.sambor...@live.com wrote: Not so easy? -- --

Re: [web2py] limit to one logged user (and a single active session)

2012-06-25 Thread Bruno Rocha
You can check the table auth_event to see if user logged in. But you will need an extra code to ensure that user logs out. On Mon, Jun 25, 2012 at 4:10 PM, Janath jana...@gmail.com wrote: Hi, The web2py application I work on uses an API to automate another application. Only one instance of

Re: [web2py] Short way to update or insert data from SQLFORM.factory into the main db.my_table ??? ...

2012-06-25 Thread Bruno Rocha
if form.process().accepted: db.auth_user.insert(**form.vars) response.flash = T('Quick Sign-up Accepted ! - Check your e-mail !') --

Re: [web2py] JSON Problem

2012-06-20 Thread Bruno Rocha
ypu can try: devices = db().select(db.contacts.ALL).as_list()

Re: [web2py] run from source to access in another computers

2012-06-20 Thread Bruno Rocha
python web2py.py -a password -i 0.0.0.0 -p 8000 *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image: Twitter]http://twitter.com/rochacbruno [image: LinkedIn] http://linkedin.com/in/rochacbruno [image: about.me]http://about.me/rochacbruno

Re: [web2py] import module fails

2012-06-20 Thread Bruno Rocha
Check if you have an empty __init__.py file under all your root folders. On Wed, Jun 20, 2012 at 8:19 PM, wdtatenh wdt...@comcast.net wrote: I'm running version 1.91.6 installed from binary for localhost testing. I'm attempting to add some modules to hold utility functions used by other

Re: [web2py] Re: Auto-generate PUT and DELETE methods

2012-06-20 Thread Bruno Rocha
How would it be to receive a file upload thought the restful api? On Wed, Jun 20, 2012 at 8:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: You can do @request.restful() def api(): response.view = 'generic.'+request.extension def GET(*args,**vars): patterns =

Re: [web2py] CVE-2012-2122: A Tragically Comedic Security Flaw in MySQL

2012-06-18 Thread Bruno Rocha
more info about it? http://zerp.ly/rochacbruno Em 18/06/2012 06:29, Lazarof lazaro...@gmail.com escreveu: CVE-2012-2122: A Tragically Comedic Security Flaw in MySQL

Re: [web2py] CVE-2012-2122: A Tragically Comedic Security Flaw in MySQL

2012-06-18 Thread Bruno Rocha
ok I got it http://thehackernews.com/2012/06/cve-2012-2122-serious-mysql.html?m=1 Em 18/06/2012 07:07, Bruno Rocha rochacbr...@gmail.com escreveu: more info about it? http://zerp.ly/rochacbruno Em 18/06/2012 06:29, Lazarof lazaro...@gmail.com escreveu: CVE-2012-2122: A Tragically Comedic

Re: [web2py] web2py down

2012-06-13 Thread Bruno Rocha
The same for me! *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image: Twitter]http://twitter.com/rochacbruno [image: LinkedIn] http://linkedin.com/in/rochacbruno [image: about.me]http://about.me/rochacbruno [image: Amazon]

Re: [web2py] Are we the biggest site using web2py?

2012-06-13 Thread Bruno Rocha
radbox.me has a big traffic also http://zerp.ly/rochacbruno Em 13/06/2012 20:52, Bruce Wade bruce.w...@gmail.com escreveu: Hi, I am really curious if we are the biggest site using web2py at this time? So for this month we have used over 512GB of bandwidth averaging 12,000,000 - 120,000,000

Re: [web2py] web2py book now free in PDF

2012-06-12 Thread Bruno Rocha
Great news! thank you Massimo, it will help a lot. maybe one can convert it to epub and make it available on kindle store for free. *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image: Twitter]http://twitter.com/rochacbruno [image:

Re: [web2py] Re: Virual Field is not working

2012-06-11 Thread Bruno Rocha
You can achieve the expected result using computed fields. db.define_table(state, Field(namecountryid)) db.state.namecountryid.compute = lambda row: str(row.country_id)+row.name db.state.requires = IS_NOT_IN_DB() Also, You can use validators for that, but you will need to do some

Re: [web2py] web2py hosting

2012-06-09 Thread Bruno Rocha
http://www.web2pyslices.com are open to post anything related to web2py. also it is open source and open to modifications (if someone want to include wiki features) *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image:

Re: [web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Bruno Rocha
This is a very nice tutorial -- http://killer-web-development.com/ *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image: Twitter]http://twitter.com/rochacbruno [image: LinkedIn] http://linkedin.com/in/rochacbruno [image:

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-06 Thread Bruno Rocha
pythonanywhere has easy deployment for web2py http://zerp.ly/rochacbruno Em 06/06/2012 15:10, sesenmaister sesenmais...@gmail.com escreveu: Andrew, I have the same question. Today I wanted to get payed hosting on FluxFlex. And now I have no idea where to go. I'm not pro, stdudying python and

Re: [web2py] niphlod tvseries error

2012-06-05 Thread Bruno Rocha
whats the Python version? this is a python issue you can solve with this (if not running 2.7) return UL(*lis, **{_class: 'nav'}) On Tue, Jun 5, 2012 at 12:05 PM, blye blyen...@gmail.com wrote: return UL(*lis, _class='nav') -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: DAL list:integer and postgresql integer array type

2012-06-04 Thread Bruno Rocha
Cant we have a custom field for this? Field.PostgresIntegerList(name) http://zerp.ly/rochacbruno Em 02/06/2012 00:26, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: The search by content should be faster using native postgresql array type. Everything else should be the same. We could

Re: [web2py] failures

2012-06-01 Thread Bruno Rocha
Hi Massimo, If you need I can host a web2py mirror on the same linode where slices is hosted. Let me know if you need some help on this. http://zerp.ly/rochacbruno Em 01/06/2012 11:53, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: Today the VPS that hosts web2py.com failed (not sure

Re: [web2py] Re: web2py.com/book generating an internal error

2012-06-01 Thread Bruno Rocha
of issues. I managed to login into it, clearn cache, etc. but still slow. On Friday, 1 June 2012 12:16:34 UTC-5, Anthony wrote: It was working a minute ago. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: failures

2012-06-01 Thread Bruno Rocha
random and independent things have been failing on me in the last few days. I just wanted to reassure you that things will be taken care of and web2py.com is a priority. I may be a little slow on this list as a result. Massimo -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] try: for-loop

2012-05-30 Thread Bruno Rocha
block. {{try:}} {{for x in db.test}} {{=x.title}} {{pass}} {{except:}} no database entries {{pass}} -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: try: for-loop

2012-05-30 Thread Bruno Rocha
:}} display your static message {{pass}} -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] minimalist file based workflow engine

2012-05-30 Thread Bruno Rocha
in scripts/? It can be used to deleted old errors, expired sessions, setup automatic emails. etc. It is intentionally very minimalist. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] cool new wysiwyg editor

2012-05-28 Thread Bruno Rocha
It can easily turned in to a built-in plugin/widget for textareas. On Mon, May 28, 2012 at 5:50 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://redactorjs.com/ -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Development Environments vs Live Environment

2012-05-23 Thread Bruno Rocha
automatically? BR, Jason Brower -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Best way to save a value between methods in default.py

2012-05-21 Thread Bruno Rocha
you can use session. http://zerp.ly/rochacbruno Em 21/05/2012 22:48, Maduranga Liyanage maduranga.liyan...@gmail.com escreveu: Thank you very much Anthony. I will read up on the cache. On Tue, May 22, 2012 at 1:37 AM, Anthony abasta...@gmail.com wrote: Controller and model files are not

Re: [web2py] good read about python

2012-05-20 Thread Bruno Rocha
(func if x else otherfunc)(*args) This is a nice tip, I can remove a lot of if's using this. Thanks for sharing. http://zerp.ly/rochacbruno Em 20/05/2012 11:48, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: http://satyajit.ranjeev.in/2012/05/17/python-a-few-things-to-remember.html

Re: [web2py] modules

2012-05-16 Thread Bruno Rocha
of web2py not work. doing the following to import: from applications.examples.modules import test Restricting the application name.The modules are placed in the / app / modules/. As this problem solved. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Problem with storage object

2012-05-16 Thread Bruno Rocha
do you have a function named gsettings in controller? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Conditional models

2012-05-15 Thread Bruno Rocha
put you table definitions on modules and use conditional models to instantiate them. http://zerp.ly/rochacbruno Em 15/05/2012 05:44, Annet anneve...@googlemail.com escreveu: Right now you can't have one model apply to two different controllers with conditional models. Copy/pasting should work

Re: [web2py] Re: Conditional models

2012-05-15 Thread Bruno Rocha
) *# models/controllername/functionname/0.py* from datamodels.myobject import MyObject myobject = MyObject(db) myobject.define_table() -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Conditional models

2012-05-15 Thread Bruno Rocha
Better example: *# models/db.py* ... db = DAL(.) ... *# modules/datamodels/base.py* class BaseModel(object): def define_table(self): self.db.define_table(self.tablename, *self.fields, **self.params) *# modules/datamodels/dog.py* from gluon import current from gluon.dal import

Re: [web2py] Re: Conditional models

2012-05-15 Thread Bruno Rocha
I am looking in to it, and realized that there ia a better, simple and more elegant way. In Django models, it is very commom to use a subclass named Meta, so I will try to run something like. class Dog(BaseModel): self.name = Field(name) self.guardian = Field(guardian, reference

Re: [web2py] Re: Common controller functionality

2012-05-13 Thread Bruno Rocha
I use /models as a script folder and I always try to avoid the use of this. Controllers are for me only a point of entry, the place where I route and where I got argumuments and I decide about the template rendering. All the rest of logic goes in sub modules, handlers, helpers and datamodels.

Re: [web2py] Re: ImportError with plugin

2012-05-13 Thread Bruno Rocha
do you have __init__.py in your modules and in your app folders? http://zerp.ly/rochacbruno Em 13/05/2012 19:35, Simon Ashley gregs...@gmail.com escreveu: Answering my own question here. Its a path issue. If you insert the fill path from the applications folder, its found. On Monday, May

Re: [web2py] deleting row with files

2012-05-12 Thread Bruno Rocha
(of course it doesn't happen if I store the file in the DB) Is it working as expected ? any way to automatize the file deletion ? thanks -- Sebastian E. Ovide -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Nginx-uwsgi problem.

2012-05-12 Thread Bruno Rocha
://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.warplydesigned.com -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Table/grid with checkboxes for selecting records?

2012-05-11 Thread Bruno Rocha
being rediculously long and really should be separate columns). Is there a nifty web2py way of doing this or do I just need to create the form/checkboxes myself in the view and leave behind the web2py form validation? Thanks, Brian -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Combination of fields must be unique

2012-05-10 Thread Bruno Rocha
db.define_table('nm', Field('a', notnull=True), Field('b', notnull=True), Field('unikey', unique=True)) db.nm.unikey.compute = lambda row: row.a + row.b Em 10/05/2012 02:46, Alec Taylor alec.tayl...@gmail.com escreveu: E.g.: For a letter to be unique and identifiable it needs unique(location

Re: [web2py] Need a little help in code review (a function eating up all memory)

2012-05-10 Thread Bruno Rocha
0 ).select( -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Using translator in custom module

2012-05-08 Thread Bruno Rocha
able to import it but when I try to use the Translator T() the page errors out because T is not defined. what do I need to import to use T in a custom module? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] type 'exceptions.NameError' global name 'reponse' is not defined

2012-05-07 Thread Bruno Rocha
you have a typo. it is response insted of reponse http://zerp.ly/rochacbruno Em 07/05/2012 20:55, Tony Ha tonyh...@googlemail.com escreveu: Hello, Please help! I am following the book http://web2py.com/books; on chapter overview, doing the mywiki app. after append the def news(): codes into

Re: [web2py] localhost external machine.

2012-05-06 Thread Bruno Rocha
form the windows machine everything works fine. It seems to me some permission problem Help please. Many thanks. Marco. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Installing scheduler on linux

2012-05-05 Thread Bruno Rocha
post that in web2pyslices.com Em 05/05/2012 22:47, Michael Toomim too...@gmail.com escreveu: Here's a solution I wrote. Is there a good place (like the web2py book) to share this recipe? Put this in /etc/init/web2py-scheduler.conf: description web2py task scheduler start on

Re: [web2py] default/user.html and custom form

2012-05-04 Thread Bruno Rocha
and password/h5 {{=form.custom.begin}} {{=form.custom.username.widget}} {{=form.custom.password.widget}} /div !-- /form-body -- div class=form-footer {{=form.custom.end}} /div !-- /form-footer -- /div !-- /form -- -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Routes for usernames

2012-05-04 Thread Bruno Rocha
the variable. Cheers, Rhys -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] My home made ide

2012-05-03 Thread Bruno Rocha
it should work, since it's done with wxPython). Do not expect a polish and beautiful desktop app and probably it will not work for you. :) https://github.com/rpedroso/gweb2py Regards, Ricardo -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] is it possible to communicate over webservices in web2py application?

2012-05-02 Thread Bruno Rocha
is running on SERVER(here SERVER acts as Server). Now My question is how to achieve it using web services as it is a bi-directional communication between SERVER and N/W Panel AND how to integrate with Web2Py application? Web services can be SOAP OR REST. Regards, Amit -- Bruno Rocha [http

Re: [web2py] .update_or_insert not optimized!!

2012-05-02 Thread Bruno Rocha
,Latitud=float(Latitud),Longitud=float(Longitud),Gasolinera=Gasolinera,Precio=float(Precio),Fecha_Actualizacion=Fecha_Actualizacion) What's your opinion? -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] .update_or_insert not optimized!!

2012-05-02 Thread Bruno Rocha
.update_or_insert(db.**G95.LongitudLatitud==**LongitudLatitud, LongitudLatitud=**LongitudLatitud,Latitud=float(** Latitud),Longitud=float(**Longitud),Gasolinera=** Gasolinera,Precio=float(**Precio),Fecha_Actualizacion=** Fecha_Actualizacion) What's your opinion? -- Bruno Rocha [http

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

2012-05-01 Thread Bruno Rocha
On Wed, Apr 11, 2012 at 2:07 PM, Gour g...@atmarama.net wrote: On Wed, 11 Apr 2012 13:09:17 -0300 Bruno Rocha rochacbr...@gmail.com wrote: Movu.ca is a general purpose CMS with focus on social network features (as likes, shares, users and connections...) Tried to install according to: https

Re: [web2py] Re: Reloading modules

2012-04-28 Thread Bruno Rocha
- or to have a setting that automatically reloads on each request- Otherwise it's almost impossible to do active module development from within web2py. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] autodelete image computed field

2012-04-28 Thread Bruno Rocha
try setting uploadfolder=request.folder+'static/img_folder' to the thumbnail field. I guess web2py will look this to unlink the file. On Sat, Apr 28, 2012 at 9:06 PM, CtrlSoft zerooo...@gmail.com wrote: uploadfolder=request.folder+'static/img_folder' -- Bruno Rocha [http

Re: [web2py] Re: Ubuntu and Python3

2012-04-26 Thread Bruno Rocha
12.04 is LTS. So the 2.7 will be on servers for a long time. We need to have web3py working till the next LTS. For development just need to create a tool or tutorial to run web2py on a virtualenv. http://zerp.ly/rochacbruno Em 26/04/2012 10:34, Francisco Costa m...@franciscocosta.com escreveu:

Re: [web2py] response.view html file from static

2012-04-26 Thread Bruno Rocha
myfunction(): response.view = 'static/tinymce/jscripts/tiny_mce/plugins/files.html' return dict() -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Routes.py

2012-04-26 Thread Bruno Rocha
- Claro Brasil -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Show my views code in html as can be seen in web2py.com

2012-04-26 Thread Bruno Rocha
error, because the web2py engine try to execute it. Thanks -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Looking for a good beginner's guide

2012-04-26 Thread Bruno Rocha
the Head First series for other languages and those are pretty close to what I'm looking for. Does anyone have any recommendations? -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Using _before_insert to implement subsecond precision?

2012-04-25 Thread Bruno Rocha
You can use validators in scripts with .validate_and_insert or .update_and_insert http://zerp.ly/rochacbruno Em 25/04/2012 15:53, nick name i.like.privacy@gmail.com escreveu: On Tuesday, April 24, 2012 9:24:34 AM UTC-4, Massimo Di Pierro wrote: I think this belongs to the validator. If

Re: [web2py] Re: Time to move from Google Groups to a web2py or python??

2012-04-22 Thread Bruno Rocha
might be another reason to be web2py based. Thanks for any responses. Love and peace, Joe -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
Are you storing sessions in db or FS? http://zerp.ly/rochacbruno Em 18/04/2012 02:18, Bruce Wade bruce.w...@gmail.com escreveu: Yeah, I am not sure how well web2py can handle load but I am going to find out pretty fast. I finished setting up a load balancer today, going to have 3 servers

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
I recommend you to store sessions on db or cache like memcached, redis... If you are going to run in a load balance, sessions in disk will be a problem. On Wed, Apr 18, 2012 at 11:32 AM, Bruce Wade bruce.w...@gmail.com wrote: Currently FS On Wed, Apr 18, 2012 at 7:22 AM, Bruno Rocha rochacbr

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
There are directions for this on book http://web2py.com/books/default/chapter/29/4#session Store session on db or set separate=True On Wed, Apr 18, 2012 at 1:36 PM, Bruno Rocha rochacbr...@gmail.com wrote: I recommend you to store sessions on db or cache like memcached, redis... If you

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
prematurely closed connection while reading response header from upstream, client: 173.180.212.86, server: youadstage, request: GET / HTTP/1.1, upstream: uwsgi://127.0.0.1:9001, host: 50.116.6.124 On Wed, Apr 18, 2012 at 9:43 AM, Bruno Rocha rochacbr...@gmail.comwrote

Re: [web2py] Web2py templates for HamlPY

2012-04-18 Thread Bruno Rocha
! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] CPU 210%

2012-04-17 Thread Bruno Rocha
http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.warplydesigned.com -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruno Rocha
://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.warplydesigned.com -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Ticket issued: unrecoverable

2012-04-17 Thread Bruno Rocha
am getting: Admin is disabled because insecure channel when trying to view tickets. Using nginx + uwsgi On Tue, Apr 17, 2012 at 3:43 PM, Bruno Rocha rochacbr...@gmail.comwrote: May be permission issues on the tickets folder On Tue, Apr 17, 2012 at 7:26 PM, Bruce Wade bruce.w...@gmail.com

Re: [web2py] jQuery Multi-Select Form Input Names

2012-04-14 Thread Bruno Rocha
You need to create a custom widget and then: db.gallery.tag_id.widget = mycustomwidget or use the web2py mult select widget that ships with plugin_wiki. http://zerp.ly/rochacbruno Em 14/04/2012 07:50, villas villa...@gmail.com escreveu: Hi All, I have just spent a few frustrating hours with

Re: [web2py] Design of a minimal chat-like application in Web2py

2012-04-14 Thread Bruno Rocha
, but this is not essential. So how should I design this given the MVC model of Web2py? What extra pieces (besides Javascript on the client side) do I need? Thanks! -- Bruno Rocha [http://rochacbruno.com.br] -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Custom attributes in DIV

2012-04-14 Thread Bruno Rocha
DIV(, **{_data-role: something}) http://zerp.ly/rochacbruno Em 14/04/2012 22:24, Jon Molesa rjmol...@gmail.com escreveu: Does the div class support hyphenated attribute names data-role=listview? I can't seem to get it to work. I can get _dat_role and _datarole to work, but any attempt to

Re: [web2py] CPU 210%

2012-04-14 Thread Bruno Rocha
We have to see significant part of the code too figure out what is going on... http://zerp.ly/rochacbruno Em 14/04/2012 22:45, Bruce Wade bruce.w...@gmail.com escreveu: Hi, So I just launched and have been hit with a tone of traffic and my CPU on linode is showing 210% usage. Any

Re: [web2py] Database connections speed issue

2012-04-13 Thread Bruno Rocha
://www.warplydesigned.com -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Design of a minimal chat-like application in Web2py

2012-04-13 Thread Bruno Rocha
pieces (besides Javascript on the client side) do I need? Thanks! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Syntax error - can not find solution

2012-04-13 Thread Bruno Rocha
'],'project');%r.id), ' |', _class='element') for n, r in enumerate(rows)] works.insert(0, SPAN(category, _class='category')) works.insert(0, INPUT(_type='hidden', _id='id_project', _name='id_project')) return DIV(*works, _id='submenu2') any idea? Jose -- Bruno

Re: [web2py] Cookbook recipe for nginx/uwsgi woes

2012-04-11 Thread Bruno Rocha
Note that in some versions uwsgi files are located at /etc/*uswgi-python* /apps-available/filename.xml Which version os Linux and uwsgi are you using? Here are a working example: https://gist.github.com/2359513 -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: new web2py cheatsheet

2012-04-11 Thread Bruno Rocha
On Wed, Apr 11, 2012 at 10:37 AM, villas villa...@gmail.com wrote: form=SQLFORM.dictform(d) Is that something new? Yes this is a upcoming feature, it is being discussed on developer list. basically it can create forms to edit dictionaries and text files. -- Bruno Rocha [http

Re: [web2py] error in loading web2py source code version in ubuntu 11.10

2012-04-11 Thread Bruno Rocha
/admin.py, line 439, in create_missing_folders os.mkdir(path) OSError: [Errno 13] Permission denied: '/home/praveen/web2py/web2py/deposit' how to resolve it? -- Bruno Rocha [http://rochacbruno.com.br]

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

2012-04-11 Thread Bruno Rocha
:02 PM, Gour g...@atmarama.net wrote: On Tue, 7 Feb 2012 15:06:26 -0200 Bruno Rocha rochacbr...@gmail.com wrote: Hello, I want every one to be able to use it, customize it and deploys, sell support, sell as a service. But I want to keep it Open Source (I mean, I dont want someone to take

Re: [web2py] Add conditional sub-menu

2012-04-11 Thread Bruno Rocha
'), [('Guideline', False, URL('pricelist','default','guideline')), ('Multiplier Tables', False, URL('pricelist','default','multitable')), ('Cut Charge Tables', False, URL('pricelist','default','cuttable')), ])] -- Bruno Rocha [http://rochacbruno.com.br]

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

2012-04-11 Thread Bruno Rocha
have you done it first? - http://localhost:8000/appname/setup/install ?? It is needed to populate the config db On Wed, Apr 11, 2012 at 2:07 PM, Gour g...@atmarama.net wrote: On Wed, 11 Apr 2012 13:09:17 -0300 Bruno Rocha rochacbr...@gmail.com wrote: Movu.ca is a general purpose CMS

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

2012-04-11 Thread Bruno Rocha
On Wed, Apr 11, 2012 at 4:56 PM, pbreit pbreitenb...@gmail.com wrote: Yeah, something simple like Tumblr would be nice. tumblr has a lot of social networking features -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Something very interesting

2012-04-10 Thread Bruno Rocha
/screencast -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Something very interesting

2012-04-10 Thread Bruno Rocha
for commercial apps. Anthony -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Create iOS, Android(.apk) clients for your web2py apps in minutes with this

2012-04-10 Thread Bruno Rocha
) -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: How to install gluon in virtualenv?

2012-04-06 Thread Bruno Rocha
, 2012 6:52:46 AM UTC-3, Vincenzo Ampolo wrote: Hi, How can I install and use gluon in virtualenv ? Thanks -- Vincenzo Ampolo http://vincenzo-ampolo.net http://goshawknest.wordpress.**com http://goshawknest.wordpress.com -- Bruno Rocha [http://rochacbruno.com.br]

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