[web2py] When creating an application in console mode, the databases folder should be created?

2010-08-12 Thread Bruno Rocha
Hi, I were playing with Shell mode, to explain some DAL features in a class, I did: ~/web2py$ python web2py.py -S test -P .. application teste does not exist, create (y/n)?y OK, web2py creates an app named "test" So I tried: >>> from gluon import * >>> base = DAL('sqlite://mybase.db

Re: [web2py] Re: When creating an application in console mode, the databases folder should be created?

2010-08-12 Thread Bruno Rocha
My version is 1.83.1 (stable) on Ubuntu 10.04, yours? 2010/8/13 mr.freeze > 'python web2py.py -S test -P' works for me and creates a databases > folder. Perhaps it's a permissions issue with ~/web2py? > > On Aug 12, 8:38 pm, Bruno Rocha wrote: > > Hi, > >

Re: [web2py] Instant Press

2010-08-13 Thread Bruno Rocha
Deploying on GAE this will run under BigTable db,so I need to register a new user, how I'll define that the new user is an administrator? is there any way to specify a master user? or ad...@mail.com is not on db? 2010/8/13 Martin.Mulone > Whats new in Instant Press (now in alpha3)?. Now work i

Re: [web2py] Instant Press

2010-08-13 Thread Bruno Rocha
Got Error on GAE (rochacbruno.appspot.com), there is any forum, group or bug tacking about Instant Press? 1. 1. 08-13 11:15AM 21.583 / 500 6708ms 9277cpu_ms 6691api_cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; pt-BR; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8,gz

Re: [web2py] Re: WikiYou - Showcase

2010-08-13 Thread Bruno Rocha
Thats opensource? 2010/8/13 Lasiaf > maybe when you tried it, the version I uploaded was the one with > invalid routes(maybe development mode). > I can't think of any reason why would it fail. Also can you answer my > first and 3rd questions? > Thanks > > On Aug 13, 12:55 am, mdipierro wrote: >

Re: [web2py] Re: Instant Press

2010-08-13 Thread Bruno Rocha
I am using web2py 1.83.1 and InstantPressAlpha3.w2p, deployed with AppEngineLaucher4Mac, and raises error (rochacbruno.appspot.com). I have to change something before deploying to GAE? 2010/8/13 Martin.Mulone > On Aug 13, 3:21 pm, Bruno Rocha wrote: > > Got Err

Re: [web2py] Re: Instant Press

2010-08-13 Thread Bruno Rocha
gt; http://127.0.0.1:8080/instantpress/ > > > > (book) In order to upload your app on GAE, make sure you have edited > > the "app.yaml" file as explained before and set the proper application > > id, then run: > > > > I only change the id,

[web2py] How to declare a field default value from the same table/form

2010-08-14 Thread Bruno Rocha
I need a page slug for the cars in my car shop, instead having http://.../default/car/2, I want http:///default/car/carbrand-carmodel-caryear-id so I defined a table: db.define_table('car' Field('brand', db.brand), Field('model'),

Re: [web2py] Re: How to declare a field default value from the same table/form

2010-08-15 Thread Bruno Rocha
= re.compile('[^\w-]') > > Field('slug',compute=lambda r: slug_regex.sub('','%(brand)s-%(model)s-% > (year)s' %r).lower()) > > On Aug 14, 11:12 pm, Bruno Rocha wrote: > > I need a page slug for the cars in my car shop, > > instead

Re: [web2py] Re: How to declare a field default value from the same table/form

2010-08-15 Thread Bruno Rocha
I am trying to do everything in the lambda, without the need to def the function. Tks.. 2010/8/15 mdipierro > If you define a function you do not need the lambda > > Field('slug', notnull=True, compute=get_brand), > > On Aug 15, 2:45 am, Bruno Rocha wrote: > >

Re: [web2py] Re: How to declare a field default value from the same table/form

2010-08-15 Thread Bruno Rocha
I Just can't figure out how to retrive the inserted id as Row object does not have the 'id' key 2010/8/15 Bruno Rocha > I am trying to do everything in the lambda, without the need to def the > function. > > Tks.. > > 2010/8/15 mdipierro > > If you defin

Re: [web2py] Re: How to declare a field default value from the same table/form

2010-08-15 Thread Bruno Rocha
Gonna try with crud 2010/8/15 mdipierro > form.vars.id contains the id or a newly inserted record. > > On Aug 15, 2:58 am, Bruno Rocha wrote: > > I Just can't figure out how to retrive the inserted id as Row object does > > not have the 'id' key > >

Re: [web2py] Re: How to declare a field default value from the same table/form

2010-08-15 Thread Bruno Rocha
id) I am inserting records via "appadmin/insert/db/car", How to get the id inside the "get_slug" function scope? 2010/8/15 mdipierro > Sorry. I do not understand what you want to do. Can you provide an > example of code and/or desired workflow? > > Massimo >

Re: [web2py] Re: suggestions for web2py website

2010-08-15 Thread Bruno Rocha
I am willing to contribute a piece of donation, so that the web2py have a site/logo done by a professional. We can get it for about $ 500 in http://crowdspring.com 2010/8/15 Lasiaf > I think web2py site needs to be redesigned. You could ask university > students to do it for free for their port

Re: [web2py] Re: suggestions for web2py website

2010-08-15 Thread Bruno Rocha
/project/2287127_dental-clinic-in-rio-de-janeiro-brazil/ So, community could help voting the best entries! 2010/8/15 Bruno Rocha > I am willing to contribute a piece of donation, so that the web2py have a > site/logo done by a professional. > We can get it for about $ 50

[web2py] migrations using standalone dal.py for a separate python project

2010-08-15 Thread Bruno Rocha
I am using DAL for a python Tcl/Tk project I made a copy of "gluon" folder and I am trying DAL from command shell as: >>> from dal import * now I have DAL and Field and everything works very well, but not the Migrations. >>>db.define_table('person') ok I have a person table just with the id >>>db

Re: [web2py] Re: suggestions for web2py website

2010-08-18 Thread Bruno Rocha
Just to "up" the topic.. look http://pymt.eu/ website, simple and cool! 2010/8/16 mdipierro > the problem we have to solve is: > 1) how to get more people to provide input? > 2) can we accept donations for this purpose if people then do not > agree or like with the final work? > > I think we

Re: [web2py] build a row base questionnaire

2010-08-18 Thread Bruno Rocha
You can use FORM(), and also use the table configuration to define questions, you can use the arguments "label" and "comment" on field definition. After that, you can use CSS to improve the form layout. You can't create a new field to store the login info and putting by default the auth.user valu

Re: [web2py] build a row base questionnaire

2010-08-18 Thread Bruno Rocha
. Field('created_on', 'datetime', default=request.now), Field('created_by', db.auth_user, default=auth.user_id), ) 2010/8/18 Bruno Rocha > You can use FORM(), and also use the table configuration to define > questio

Re: [web2py] Re: Weird Behavior - Query returning zero rows when it should return all rows

2010-08-18 Thread Bruno Rocha
Why not "0 / 1" ?? 2010/8/18 mdipierro > This answer is correct but to clarify to Narendran his query was > not wrong. The problem is that the data was not inserted via web2py > and therefore web2py may not be recognizing the column. Make sure the > column is a 'char' and contains 'T' or 'F

Re: [web2py] SQLHTML is not defined - Autocomplete Widget

2010-08-18 Thread Bruno Rocha
Replace that with SQLFORM 2010/8/18 flow > Newbie working through the online manual. Trying to use Autocomplete > as described in Forms and Validators. > Receiving Error as described in subject line. web2py Version 1.83.2 > (2010-08-15 08:16:30) > Thank You. > > Error traceback > 1.2.3.4.5. Trac

[web2py] Open Source contributors network - OpenHatch

2010-08-19 Thread Bruno Rocha
OpenHatch is an open source software involvement engine. For developers, we provide tools to demonstrate and broaden their experience and expertise in the open source community. The vision is to make the open source community better connected, more productive, and ultimately well rewarded for its

[web2py] GAE datastore namespaces with web2py

2010-08-19 Thread Bruno Rocha
GAE implemented new features as you can see here: http://googleappengine.blogspot.com/2010/08/multi-tenancy-support-high-performance_17.html *Multi-tenant Apps Using the Namespaces API * We are pleased to announce support for multi-tenancy for applications via the Namespaces API. With multi-tenan

Re: [web2py] cube2py not working on GAE

2010-08-21 Thread Bruno Rocha
I got same problem on Locally GAE, but when I deployed the app to GAE(online) , everything worked ok. http://web2pybrasil.appspot.com 2010/8/21 smoggy > Hi there, > > I'm trying to get cube2py working on GAE(locally) without sucess. > > The browser loads the login page well : > http://127.0.0.

[web2py] Currency formating

2010-08-24 Thread Bruno Rocha
Hi, Actually, I am using these methods to work with money formating. some tries with python-money and works very well http://code.google.com/p/python-money/ and sometimes import locale locale.setlocale(locale.LC_ALL,('pt_BR','UTF8')) >>> locale.currency(1090909, grouping=True) 'R$ 1.090.909,00'

Re: [web2py] Re: Currency formating

2010-08-25 Thread Bruno Rocha
Look at http://code.google.com/p/python-money/source/browse/trunk/money/Money.py Python-money does not use "locale" 2010/8/25 mdipierro > web2py cannot support locale because it is not thread safe, If one app > changes the locale it would change it for all apps. > > On A

Re: [web2py] Re: Currency formating

2010-08-25 Thread Bruno Rocha
Massimo, What is your recomendation to deal with currency in web2py? 2010/8/25 Bruno Rocha > Look at > http://code.google.com/p/python-money/source/browse/trunk/money/Money.py > > Python-money does not use "locale" > > 2010/8/25 mdipierro > > web2py canno

Re: [web2py] Re: Currency formating

2010-08-25 Thread Bruno Rocha
currency(valor, grouping=True, symbol=False) else: return currency(valor, grouping=False, symbol=False).replace(',','') >>> Moeda(1) R$ 10.000,00 This will be okay until I have more apps running on the same server, now I have just one. I am trying to

Re: [web2py] Re: dashes in controller names?

2010-08-25 Thread Bruno Rocha
http://myblog.com/articles/net-neutrality-and-you http://myblog.com/ <-- Application + default controller mapped in routes.py articles/ <-- The function that retrieve articles from db net-neutrality-and-you <-- request.args(0) | the article slug where is the problem? I dont think anybody wants t

Re: [web2py] Problem with Oracle connection string...

2010-08-27 Thread Bruno Rocha
Marcin, did you connect to a remote server? which : did you replace with / ? there is someone else which can test with other versions of oracle? 2010/8/27 Marcin Jaworski > > On 2010-08-27, 15:06 ionel wrote: > > > Hello, > > > > I have a problem when I try to connect to an Oracle database wi

Re: [web2py] Field default

2010-08-27 Thread Bruno Rocha
I dont know if I understand clearly what you want, but.. May be : def get_sql_date(): return db.executesql('select CURRENT_DATE') Field('grade_date','date',compute=get_sql_date,required=True,notnull=True) or Field('grade_date','date',default=request.now.date().strftime('%Y-%m-%d'),required

Re: [web2py] Field default

2010-08-27 Thread Bruno Rocha
OPs.. you have to parse the executesql() return, replace with that db.executesql('select CURRENT_DATE')[0][0].encode() 2010/8/27 Bruno Rocha > I dont know if I understand clearly what you want, but.. > > > May be : > > def get_sql_date(): >return db.

Re: [web2py] Field default

2010-08-27 Thread Bruno Rocha
Klaver > On Friday 27 August 2010 4:15:17 pm Bruno Rocha wrote: > > I dont know if I understand clearly what you want, but.. > > > > > > May be : > > > > def get_sql_date(): > >return db.executesql('select CURRENT_DATE') >

[web2py] Server fails every 3 hour

2010-08-27 Thread Bruno Rocha
Hi, I am running a web2py application at my home server, that is published and I have some clients using for accurracy tests. But , every 3 hours+- the server fails with the message Exception in thread Thread-20: Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line

Re: [web2py] Field default

2010-08-27 Thread Bruno Rocha
may be I am wrong . Wait for Massimo's response 2010/8/27 Adrian Klaver > On Friday 27 August 2010 5:05:40 pm Bruno Rocha wrote: > > Ok, now I got it. > > > > But, I dont think DAL has a method for doing that. > > > > I know just "notnull",

Re: [web2py] Field default

2010-08-27 Thread Bruno Rocha
N DELETE %(on_delete_action)s', 'lower': 'LOWER(%(field)s)','upper': 'UPPER(%(field)s)', 'is null': 'IS NULL','is not null': 'IS NOT NULL', 'extract': "web2py_extract('%(name)s',%(

Re: [web2py] Has anyone used standalone web2py DAL in a project ?

2010-08-27 Thread Bruno Rocha
Thanks Thadeu, that will be very useful for me too, I will try to follow your instructions. BTW, I am using DAL for a Py/Gtk Application, besides the migration ( does not works very well ) everything else is running ok. I am going to speak about DAL in PyCon Brasil. (google translated) http://tr

Re: [web2py] Re: Server fails every 3 hour

2010-08-27 Thread Bruno Rocha
this instead: > > > http://www.web2py.com/book/default/chapter/04#Background-Processes-and-Task-Queues > > Massimo > > On Aug 27, 7:18 pm, Bruno Rocha wrote: > > Hi, > > > > I am running a web2py application at my home server, > > that is published and I

Re: [web2py] Re: Field default

2010-08-27 Thread Bruno Rocha
Klaver wrote: > > On Friday 27 August 2010 5:42:04 pm Bruno Rocha wrote: > > > > > > > > > Looking sql.py I found: > > > > > 'notnull': 'NOT NULL DEFAULT %(default)s' > > > > > If I understand it well, that could be yor

Re: [web2py] Re: best grid system

2010-08-28 Thread Bruno Rocha
Is there someone using ExtJS with web2py? 2010/8/28 Jose > > http://www.elwebmaster.com/general/15-plugins-jquery-para-manejar-tablas > > José -- http://rochacbruno.com.br

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Bruno Rocha
I am running Mac Snow Leopard and .app version, i Got: web2py Error An unexpected error has occurred during execution of the main script ImportError: No module named config 2010/8/29 mdipierro > @qqsaqq > > I think I fixed that problem. Could you try again? > > @mart > are those problems s

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Bruno Rocha
Source code version runs very well in the same MAcOS Snow Leopard! I gonna try the .app, ( 27 MB in .app X 3.7 in src) it is a hard difference! 2010/8/29 mdipierro > try again. I think I just fixed that. > > On Aug 29, 8:50 am, Bruno Rocha wrote: > > I am running Mac Snow L

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Bruno Rocha
OK, .app is running in Mac Os with no problem. 2010/8/29 mdipierro > the problem (missing config) is not in course but in packaging > binaries. It should now be there. > > Massimo > > On Aug 29, 8:57 am, Bruno Rocha wrote: > > Source code version runs very well in the

Re: [web2py] have you used web2py for teaching?

2010-08-29 Thread Bruno Rocha
As you know, I teach web2py in Brazil in "download" section on http://www.web2pybrasil.com.br you can find the material for download ( * in *Portuguese*) Here is the book used for the training -> http://migre.me/1aD8o Here is the app developed in the class -> http://dl.dropbox.com/u/830444/web2

Re: [web2py] Re: fail to install project

2010-08-29 Thread Bruno Rocha
I Like the community translation implemented in this app . I installed here, no errors! 2010/8/30 mdipierro > You should contact the author. I have never see that app before. If > you do not get help from him, I will be happy to look more into it. > What errors, specifically do you get? > > On

[web2py] Online Python Debugger - see how the code is executed! Cool

2010-08-30 Thread Bruno Rocha
http://people.csail.mit.edu/pgbovine/python/

[web2py] CRM Applicance missing "pass" in view

2010-08-30 Thread Bruno Rocha
Hi, A friend in Brazil is using Massimo's CRM Appliance, He had 1.81 Version( http://www.casacivil.pb.gov.br/w2p/Atos) but when updated to 1.83 got this error: error ticket for "Atos" Ticket 127.0.0.1.2010-08-30.20-21-11.ac099e4c-41e1-4a2d-be7e-0da5a59a397f *missing "pass" in view* Error traceb

Re: [web2py] plugin wiki

2010-08-31 Thread Bruno Rocha
What is your web2py version? did you try cloning cube2py? http://code.google.com/p/cube2py/ 2010/8/31 david.waldrop > after adding the plugin wiki to the welcome app I get the following > message when opening the welcome app: > > Error traceback > 1. > 2. > 3. > 4. > 5. > 6. > Traceback (most r

[web2py] Python and web2py in the brazilian magazine 'Espirito Livre'

2010-08-31 Thread Bruno Rocha
This month the brazilian magazine Espirito Livre("Free Spirit"), which deals with various issues related to free and open source software, presents the premiere of the column "web development with Python" In this first edition is an article talking about using of Python by big corporations and has

Re: [web2py] Re: plugin wiki

2010-09-01 Thread Bruno Rocha
rested in finding out more about that for T3 as well... > > Any help on this would be appreciated, > > Thanks, > Mart :) > > > > On Aug 31, 9:16 am, Bruno Rocha wrote: > > What is your web2py version? > > > > did you try cloning cube2py?http://code.

Re: [web2py] Re: plugin wiki

2010-09-01 Thread Bruno Rocha
> code snippets, with access to discussion groups, etc... personally, > way to much for my brain to store ;) Something to personalize this > type of app in this way would be awesome! :) > > alright, going to make popcorn, and watch me a video! :) > > Mart :) > > On

Re: [web2py] request.env.http_host[-5]

2010-09-01 Thread Bruno Rocha
>>> http_host = '127.0.0.1' >>> http_host[-5] '0' 2010/9/1 annet > What does the -5 stand for in this line of code: > > request.env.http_host[-5] > > > Kind regards, > > Annet. -- http://rochacbruno.com.br

Re: [web2py] there seems to me a new sql designer around

2010-09-03 Thread Bruno Rocha
its a bit old, i use that since 2009, i always tought thats made by the same person who made gaesql.appspot.com, but this one we can install. 2010/9/4 mdipierro > > http://www.tuxtilt.com/web2py-modelagem-de-dados/?utm_source=feedburner&utm_medium=twitter&utm_campaign=Feed%3A+Tuxtilt+%28Tuxtilt%

Re: [web2py] there seems to me a new sql designer around

2010-09-03 Thread Bruno Rocha
or you are talking about a new version? 2010/9/4 Bruno Rocha > its a bit old, i use that since 2009, i always tought thats made by the > same person who made gaesql.appspot.com, but this one we can install. > > 2010/9/4 mdipierro > > >> http://www.tuxtilt.com/w

[web2py] web2py freelance job with Sahana Eden

2010-09-06 Thread Bruno Rocha
Job Description To implement Sahana Eden Authorization functionality according to the specs athttp://eden.sahanafoundation.org/wiki/TaiwanAuthorisation Sahana Eden uses S3 framework buil

[web2py] web2py lightning talk on Qcon

2010-09-06 Thread Bruno Rocha
I'll give a lightning talk about web2py on QCon 2010 ( http://www.qconsp.com/ - http://www.infoq.com/br ) will be 15 slides in 5 minutes, any idea or suggestion are welcome.

Re: [web2py] pyStack - Stack Overflow "clone" update

2010-09-06 Thread Bruno Rocha
Works on GAE? thats open source? I wish to provide something like that for Brazilian/portuguese community in web2pybrasil.com.br 2010/9/6 Julio Schwarzbeck > Pleased to inform the community that I finally had some time to > heavily work on one of my web2py pets, pyStack is coming along quite >

Re: [web2py] Re: Why Django Sucks (slides)

2010-09-09 Thread Bruno Rocha
The mention was about web.py not web2py 2010/9/9 johntynan > > Nice mention of web2py about the application object. > > I've run into a snag with web2py by not knowing I should have have > UUID primary keys... Is this something that could be handled at the > web2py level and not within the app/mo

Re: [web2py] web2py 1.84.1 is out

2010-09-13 Thread Bruno Rocha
Error Deploying to GAE I am just trying to deploy the new version scafold app to GAE, got the error: br...@bruno-laptop:~/Download/google_appengine$ cat VERSION release: "1.3.7" timestamp: 1282688496 api_versions: ['1'] br...@bruno-laptop:~/Download/google_appengine$ python appcfg.py update web2

Re: [web2py] web2py 1.84.1 is out

2010-09-13 Thread Bruno Rocha
/admin/cache/cache.shelve.db: unexpected file type or format 2010/9/13 Bruno Rocha > Error Deploying to GAE > > I am just trying to deploy the new version scafold app to GAE, got the > error: > > > br...@bruno-laptop:~/Download/google_appengine$ cat VERSION > rele

Re: [web2py] web2py 1.84.1 is out

2010-09-13 Thread Bruno Rocha
GAE Problem was solved (but strange) I needed to run once in linux then it works fine after (i did in a Mac before) 2010/9/13 Bruno Rocha > Error Deploying to GAE > > I am just trying to deploy the new version scafold app to GAE, got the > error: > > > br...@br

Re: [web2py] Re: I once was asked to report things like this...

2010-09-14 Thread Bruno Rocha
I do not understant why they always include Flask, Pylons and other glued or micro frameworks in such kind of thread. They are different kind of technologies with different goals. I agree comparing web2py with Django or Rails (they are full-stack) Flask have to be compared with other micro-frame

[web2py] Map Reduce on Python

2010-09-14 Thread Bruno Rocha
I dont know if this was discussed here before, BTW, I leave the Tip. Map Reduce on Python ( Single Module, less than 13kb) http://remembersaurus.com/mincemeatpy/ I am testing that, works very well on my search engine by now. Maybe, could be more documented or integrate within web2py contrib.

[web2py] Re: Map Reduce on Python

2010-09-14 Thread Bruno Rocha
am working in the search engine pages. I am testing Mincemeat and Disco, does anybody knows other ways? 2010/9/14 Bruno Rocha > > I dont know if this was discussed here before, > BTW, I leave the Tip. > > Map Reduce on Python ( Single Module, less than 13kb) > > http

Re: [web2py] web2py 1.85.1 is OUT

2010-09-15 Thread Bruno Rocha
Is there a place to download older versions? 2010/9/15 mdipierro > it had to be because of > > - a couple of importent bug fixes > - new feature: pyfpdf has been included (Mariano can explain it) > > Massimo -- http://rochacbruno.com.br

Re: [web2py] Re: web2py 1.85.1 is OUT

2010-09-15 Thread Bruno Rocha
Thank you, BTW, where is pyfpdf? I made a search in trunk and I did't find pdf or fdpf references, is that in /contrib ? 2010/9/15 mdipierro > http://web2py.com/examples/static//web2py_src.zip > > > On Sep 15, 11:00 am, Bruno Rocha wrote: > > Is there a place to

Re: [web2py] Re: web2py 1.85.1 is OUT

2010-09-15 Thread Bruno Rocha
Downloades 1.85.1 , pyfpdf is not there in contrib! 2010/9/15 mdipierro > Should be in contrib. Is it not? > > On Sep 15, 1:23 pm, Bruno Rocha wrote: > > Thank you, > > > > BTW, where is pyfpdf? > > > > I made a search in trunk and I did't find pdf

Re: [web2py] bug in gluon/rocket.py

2010-09-15 Thread Bruno Rocha
May be it is a Typo? and should be "exec" 2010/9/15 Kevin > starting browser...in 5 seconds > Exception in thread Thread-18: > Traceback (most recent call last): > File "threading.pyc", line 486, in __bootstrap_inner > File "gluon/rocket.py", line 880, in run > File "gluon/rocket.py", line 82

Re: [web2py] Re: web2py 1.85.1 is OUT

2010-09-15 Thread Bruno Rocha
/9/15 mdipierro > My mistake. 1.85.2 now has it. > > On Sep 15, 1:59 pm, Bruno Rocha wrote: > > Downloades 1.85.1 , pyfpdf is not there in contrib! > > > > 2010/9/15 mdipierro > > > > > > > > > Should be in contrib. Is it not? > > >

Re: [web2py] Why the pattern return dict(form=form)?

2010-09-16 Thread Bruno Rocha
ss the key properly named, even if the objects has different names. 2010/9/16 Tom Campbell > New to Python & web2py. Searched for but could not find an explanation > of why so much code looks like: > > return(form=form) > > What makes the assignment necessary? -- Bruno Rocha http://rochacbruno.com.br

Re: [web2py] Re: Automatic Translator

2010-09-19 Thread Bruno Rocha
Great, gtrans and yaml are required to install, or should be inside the .tar.gz? Traceback (most recent call last): File "./autotranslate.py", line 10, in import gtrans File "/home/bruno/Download/auto-translator-0.88/gtrans.py", line 5, in import yaml ImportError: No module named yam

Re: [web2py] Re: Automatic Translator

2010-09-19 Thread Bruno Rocha
{{=SOLVED}} I had to install pyYAML 2010/9/19 Bruno Rocha > Great, gtrans and yaml are required to install, or should be inside the > .tar.gz? > > Traceback (most recent call last): > File "./autotranslate.py", line 10, in > import gtrans > File "

Re: [web2py] Re: Automatic Translator

2010-09-19 Thread Bruno Rocha
will expect some new. > > > Saludos, > > > Alfonso de la Guarda > Centro Open Source(COS) > http://www.cos-la.net > http://alfonsodg.net >Telef. 991935157 > 1024D/B23B24A4 > 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 > > > > On Sun,

[web2py] Export content as .xlsx

2010-09-21 Thread Bruno Rocha
I am using XlsXcessive to export content from my web2py apps to .xlsx http://xlsx.dowski.com/ Should be useful for someone else!

Re: [web2py] Showing the ID of the record submitted

2010-09-21 Thread Bruno Rocha
form.vars.id contains the id or a newly inserted record. 2010/9/21 Johann Spies > I was hoping that the following would modify the "Record created" flash > message: > > def show_id(id): >message = crud.messages.record_created = 'Record nr %d created' %id >return message > > def fetm04_cr

Re: [web2py] Showing the ID of the record submitted

2010-09-21 Thread Bruno Rocha
You need to use response.flash def show_id(id): message = crud.messages.record_created = 'Record nr %d created' %id response.flash= message return message 2010/9/21 Bruno Rocha > form.vars.id contains the id or a newly inserted record. > > 2010/9/21 Johann Spies &g

Re: [web2py] Showing the ID of the record submitted

2010-09-21 Thread Bruno Rocha
e,onaccept=lambda form:show_id(form.vars.id)) auth.settings.register_onaccept = (lambda form,table=table:give_create_permission(form,table)) return dict(form=form) 2010/9/21 Bruno Rocha > You need to use response.flash > > def show_id(id): >message = crud.messages.record_c

Re: [web2py] Showing the ID of the record submitted

2010-09-21 Thread Bruno Rocha
I think you cannot asign a value to crud.messages.record_created after crud is created. You need to define crud settings before the creating of crud form. 2010/9/21 Johann Spies > I was hoping that the following would modify the "Record created" flash > message: > > def show_id(id): >messag

Re: [web2py] Re: export text to Office?

2010-09-24 Thread Bruno Rocha
You can try POD ( Python Open Document) http://appyframework.org/pod.html 2010/9/24 Timmie > > web2py includes pyRTF to generate Rich Text Format. Look into > > gluon/contrib/pyrtf/ > I know. But can this also modify page headline and footer? > > Test the module I recommended. The example doc

Re: [web2py] JQuery plugin

2010-09-24 Thread Bruno Rocha
You should append JS files before the {{include 'web2py_ajax.html'}} views/layout.html: {{response.files.append(URL(r=request,c='static',f='jquery.sound.js'))}} {{include 'web2py_ajax.html'}} and in your div the OnClick event is used in the wrong way, it is not recommended t

Re: [web2py] Re: JQuery plugin

2010-09-24 Thread Bruno Rocha
l it into my application. > > On Sep 24, 8:26 pm, Bruno Rocha wrote: > > You should append JS files before the {{include 'web2py_ajax.html'}} > > > > views/layout.html: > > > > > > {{response.files.append(URL(r=request,c='sta

Re: [web2py] new version of plugin_wiki is out!

2010-09-25 Thread Bruno Rocha
Is there a repository or another place where we can see the change log for plugin_wiki? I am going to try this now. Tks Massimo. 2010/9/25 mdipierro > fixed some bugs and made it more general. -- http://rochacbruno.com.br

Re: [web2py] css rules in database

2010-09-27 Thread Bruno Rocha
I think it is better if you use .join() to concatenate the selectors, or create a function in a model file to return the properties. file models/css.py def return_css(company_id): rows = db(==company_id).select(..) oldselector = None css = [] for row in rows: if ro

Re: [web2py] Re: load slider using ajax

2010-09-27 Thread Bruno Rocha
Jquery has .ready() method http://api.jquery.com/ready/#fn I think you can do jQuery(document).ready(function($) { // Code using $ as usual goes here. //this code is executed after the whole document is loaded and ready }); 2010/9/27 Jose > > > On 27 sep, 00:29, mdipierro wrote: > >

Re: [web2py] Re: load slider using ajax

2010-09-27 Thread Bruno Rocha
You can use just $('#mydiv').ready(function() { //do things here }); 2010/9/27 Jose > > > On 27 sep, 00:29, mdipierro wrote: > > ajax calls do not execute js in views but you can return any js code > > from a web2py controller as in > > > > response.js="activate_slider();" > > > > and it

Re: [web2py] Learning Management System survey

2010-09-28 Thread Bruno Rocha
Do you mean something like Moodle? http://moodle.org/about/ 2010/9/28 mdipierro > Once again... who here is interested in a web2py based Learning > Management system? > What features would you like to see? > > Massimo > > -- http://rochacbruno.com.br

Re: [web2py] Simple PDF Report in Slices

2010-09-28 Thread Bruno Rocha
As mentioned here in another thread of the group, the output PDF has problems with accented characters. I was testing if it would be possible to decode in the base class, instead of having to pass each string decoded 2010/9/27 yamandu > Hi, I wrote a simple report the generates a PDF version u

[web2py] Google groups posts and Google code changes gadgets?

2010-09-28 Thread Bruno Rocha
Hi, I am developing a webpage where I need to include 2 gadgets. Inside . I need to list 5 last entries from this page: http://code.google.com/p/web2py/source/list and in another I need to list the 5 last entries form this: http://groups.google.com/group/web2py/topics What I need is: - Tit

Re: [web2py] Re: Google groups posts and Google code changes gadgets?

2010-09-28 Thread Bruno Rocha
is a library called > jfeed.js. The problem is the latter does not seem to work with the > former. I did not spend much time on it because you can figure out > why. > > Massimo > > On Sep 28, 3:36 pm, Bruno Rocha wrote: > > Hi, > > > > I am developing a webpa

Re: [web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-28 Thread Bruno Rocha
Great Work! In future, need to do some refactoring in /admin application too 2010/9/28 Martin.Mulone > It's cost me a lot of time really, but I think i did it, after many > try, i think the only way we have proper columns (sidebars) is with > fixed width, so i have to know in the moment of view

Re: [web2py] seo starter guide

2010-09-30 Thread Bruno Rocha
Thank you, this will be useful for a project I am working right now ;) 2010/9/30 Martin.Mulone > for all interested in seo, google update his SEO guide. > > > http://googlewebmastercentral.blogspot.com/2010/09/seo-starter-guide-updated.html -- http://rochacbruno.com.br

Re: [web2py] jqgrid (plugin_wiki) and @auth.requires_login()

2010-09-30 Thread Bruno Rocha
Thats not the best way, but I do: ``{{if auth.is_logged_in():}}``:template ``table:``:jqgrid ``{{pass}}``:template Ugly, but works. 2010/9/30 Richard Vézina > Hello, > > Is it possible to make jqgrid sensible to be "@auth.requires_login()"? > > When there is a session that ends because no

Re: [web2py] Re: jqgrid (plugin_wiki) and @auth.requires_login()

2010-09-30 Thread Bruno Rocha
visible to users who have access to that page. > the issue is the ajax callback. > That is already restricted to logged in users > > http://code.google.com/p/cube2py/source/browse/controllers/plugin_wiki.py > > @auth.requires_login() > def jqgrid(): > ... > > Massim

Re: [web2py] Re: jqgrid (plugin_wiki) and @auth.requires_login()

2010-09-30 Thread Bruno Rocha
2010/9/30 mdipierro > I see. The problem is that the user has been logged off. the callback > knows but the page no because was not reloaded. > > let me think about this one. Suggestions are welcome. > What if the ajaxcallback changes the HTTP header location? which will redirect the page to the

Re: [web2py] Re: jqgrid (plugin_wiki) and @auth.requires_login()

2010-09-30 Thread Bruno Rocha
when session has expired ajax callback function could return this script: window.location = 'user' then user will be redirected to login page That works for me 2010/9/30 Bruno Rocha > 2010/9/30 mdipierro > >> I see. The problem is that the user has been logged off.

Re: [web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Bruno Rocha
If you are using Apache, you can create rules on apache default configuration. to redirect based on domain. 2010/9/30 Albert Abril > I'm seeing about this problem too. > I have a web2py install at webfaction. > And three different domains. > > I have only one web2py installation, and I wish tha

Re: [web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Bruno Rocha
do that, or better if you create subdomains for each app 2010/9/30 Bruno Rocha > If you are using Apache, you can create rules on apache default > configuration. to redirect based on domain. > > > 2010/9/30 Albert Abril > > I'm seeing about this problem too. >> I

Re: [web2py] javascript in layout.html

2010-09-30 Thread Bruno Rocha
In layout.html you can call external JS files using: {{response.files.append(URL(request.application,'static/js','javascriptfile.js'))}} Scripts are also loaded dinamicaly by 'web2py_ajax.html' which builds the JS script at runtime, as this uses string interpolation to build scripts, this could n

Re: [web2py] javascript in layout.html

2010-09-30 Thread Bruno Rocha
Correction: 'web2py_ajax.html' does not have string interpolation, this have to be parsed by web2py template system, because uses {{=}} notation to build scripts. 2010/9/30 Bruno Rocha > In layout.html you can call external JS files using: > > {{respon

Re: [web2py] javascript in layout.html

2010-09-30 Thread Bruno Rocha
> better results. Don't you think ? > > > > > On Fri, Oct 1, 2010 at 1:13 AM, Bruno Rocha wrote: > > Correction: > > 'web2py_ajax.html' does not have string interpolation, this have to be > > parsed by web2py template system, because uses {{=

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