[web2py] Re: Javascript Template Engine for Cleaner Coding

2010-10-01 Thread Magnitus
Never heard of it. With jQuery (http://jquery.com/), the Javascript part is not so bad as about 95% of the browser dependant code is handled by the library. However, css is still a real pain in the neck. I know people like to complain about IE, but Google Chrome and Apple Safari are the ones that

[web2py] Javascript Template Engine for Cleaner Coding

2010-10-01 Thread yamandu
Hi, I found this http://www.embeddedjs.com/ Haven´t teste yet, but looks interesting. The goal is help by letting code html/javascript code cleanner by using templates similar to web2py templates. I always almost get crazy when writing html/javascript code. It always get confusing and this might

Re: [web2py] Re: Simple PDF Report in Slices

2010-10-01 Thread Mariano Reingart
On Fri, Oct 1, 2010 at 10:12 AM, smg wrote: > Hi Mariano, > > I want to say thank you for  fpdf port. > >> Pyfpdf should work well with accented characters (LATIN1, by PDF specs). >> In fact I use it in Argentina (spanish). > >> Of course, suggestions are wellcome, and any fix will be accepted :-)

Re: [web2py] Re: DAL, legacy keyed table, field references

2010-10-01 Thread Mariano Reingart
On Fri, Oct 1, 2010 at 3:40 PM, Ivan Matveev wrote: > > > 2010/10/1 mdipierro >> >> keyed tables are only partially supported. Perhaps user Denes can say >> more about that. For now here is a quick hack that should work: >> > > Thank you for fast reply. > >> >> db.define_table('cars', >>    Field

Re: [web2py] Any open issues?

2010-10-01 Thread Jason Brower
There is my issue but it has to wait until i am back to work. - Original message - > Feel like I am forgot something

[web2py] Re: Search engine for Python Source

2010-10-01 Thread Bruno Rocha
web2py_utils is there http://nullege.com/codes/show/src%40web2py_utils-0.0.11dev%40web2py_utils%40test_runner.py/76/gluon 2010/10/2 Bruno Rocha > Nullege is a search engine for Python source code. > > http://nullege.com/ > > -- http://rochacbruno.com.br

[web2py] Search engine for Python Source

2010-10-01 Thread Bruno Rocha
Nullege is a search engine for Python source code. http://nullege.com/

[web2py] Any open issues?

2010-10-01 Thread mdipierro
Feel like I am forgot something

[web2py] Re: need a bit of help

2010-10-01 Thread mdipierro
Look also into this other options with may be better http://www.mengu.net/post/pagination-with-web2py http://packages.python.org/web2py_utils/paginate.html On Oct 1, 6:39 pm, Andrew Evans wrote: > also there was a syntax error in that code don't know if you want to fix > it.. > > These two lines

Re: [web2py] Re: shorting your URL with routes

2010-10-01 Thread Jonathan Lundell
On Oct 1, 2010, at 9:48 AM, Francisco Costa wrote: > > I would like to improve my users urls by cutting the 'view' function > out so the url would be http://domain.com/user/username > > Now I have this: > > routes_in = ( > ("/user/(.+)", r"/welcome/user/view/\1"), > ("/(.+)", r"/welcome/\1"),

Re: [web2py] Re: need a bit of help

2010-10-01 Thread Andrew Evans
also there was a syntax error in that code don't know if you want to fix it.. These two lines needed to close the A function backward=A('previous', _href=URL(r=request,args=[page-1])) if page else '' forward=A('next', _href=URL(r=request,args=[page+1])) if len(rows) else '' in the example they w

Re: [web2py] Re: need a bit of help

2010-10-01 Thread Andrew Evans
Ok that pagination works better. But for some reason the last entry in the db is always cut any ideas? probably something I am doing but would appreciate some help *cheers here is the code thank you for the help thus far def index(): if len(request.args): page=int(request.args[0])

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Wikus van de Merwe
Massimo, this will still change "http://domain.com/welcome/user/index"; to "http://domain.com/welcome/user/view/index"; instead of "http:// domain.com/user/index". Francisco, if I were you, with more functions in the controller, I wouldn't do any url shortening and simply stay with /user/view/. Be

[web2py] Re: Language is Reseted when Server is Reseted

2010-10-01 Thread mdipierro
Do you have the latest stable web2py? On Oct 1, 4:03 pm, yamandu wrote: > I translate my pt-br.py but everytime I start the server again it > loses the translation. > What can be wrong?

[web2py] Re: need a bit of help

2010-10-01 Thread mdipierro
Try this: http://www.web2py.com/AlterEgo/default/show/63 On Oct 1, 4:41 pm, Andrew Evans wrote: > Hello I am trying to create some pagination for my site I am building. > However this pagination is a bit messed up, (I forget exactly where I found > it) when I click next it doesn't display anythi

[web2py] Re: Confirm deletion of record

2010-10-01 Thread mdipierro
The fact is crud.delete() does not return a form, ever. If you call it, it deletes the record. you can do something like this def delete(): task=db.tasks[request.args[0]] if request.vars.confirm: crud.delete(db.tasks, task.id,next=URL(r=request,f='index'), message=T('Deleted'),del

[web2py] Confirm deletion of record

2010-10-01 Thread Tom Campbell
I have a 'Delete' link in my edit view. The controller looks like this: def delete(): task=db.tasks[request.args[0]] form = crud.delete(db.tasks, task.id, next=URL(r=request,f='index'), message=T('Deleted'),deletable=True) return dict(form = form) what I want is before the crud.delete

[web2py] markmin2html, markmin2latex, markmin2pdf

2010-10-01 Thread mdipierro
I have done some cleanup in the house and moved gluon/contrib/markmin.py gluon/contrib/markmin2latex.py gluon/contrib/markmin2pdf.py into gluon/contrib/markmin/markmin2html.py gluon/contrib/markmin/markmin2latex.py gluon/contrib/markmin/markmin2pdf.py You can read about them here: http://web2p

[web2py] Re: Need Embedded C++ developer profiles for my direct client requirement

2010-10-01 Thread mdipierro
It was a spam messages and it is now deleted On Oct 1, 4:39 pm, Jason Brower wrote: > Sounds fun.  But where does web2py fit in this? > > On 10/01/2010 09:27 PM, Supriya from Javaji Inc. wrote: > > > > > *Send profiles to supr...@javaji.com * > > > * * > > > * Title: Em

[web2py] [Pagination] need a bit of help

2010-10-01 Thread Andrew Evans
Hello I am trying to create some pagination for my site I am building. However this pagination is a bit messed up, (I forget exactly where I found it) when I click next it doesn't display anything else in the database. Also a few other things are rather odd about it. Does anyone have some good so

Re: [web2py] Need Embedded C++ developer profiles for my direct client requirement

2010-10-01 Thread Jason Brower
Sounds fun. But where does web2py fit in this? On 10/01/2010 09:27 PM, Supriya from Javaji Inc. wrote: *Send profiles to supr...@javaji.com * * * * Title: Embedded C++ developer* *Location: TX* *Duration: 6 months+* *Description:* To understand customer require

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread Carl
I'd like to second that comment - and add patient community and lead architect to it too! On Oct 1, 1:47 pm, István Gazsi wrote: > Thanks Massimo, you're working really fast! And by the way web2py has > the most user-friendly developers and community I have ever seen. :)

[web2py] Language is Reseted when Server is Reseted

2010-10-01 Thread yamandu
I translate my pt-br.py but everytime I start the server again it loses the translation. What can be wrong?

Re: [web2py] Re: login?_next= not working

2010-10-01 Thread Johann Spies
On 30 September 2010 21:46, mdipierro wrote: > I cannot try what is doing on. I do not have a password. I don't understand what is going on: last night, when testing, the login screen stayed on after the successful login. This morning, when I tested and another user tested it, we got redirected

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
It's great now it works! :) Thank you very much. I will test it on GAE as soon as I can and I'll post the results here. Have a nice day! István On Oct 1, 9:18 pm, mdipierro wrote: > Now I think I fixed it. This time I tried it. Please double check. > Notice you can have a single table with all

[web2py] Re: shorting your URL with routes

2010-10-01 Thread mdipierro
routes_in = ( ("/user/$username", "/welcome/user/view/$username"), ) routes_out = ( ("/welcome/user/view/$username", "/user/$username"), ) On Oct 1, 11:48 am, Francisco Costa wrote: > I would like to improve my users urls by cutting the 'view' function > out so the url would behttp://domain.

[web2py] Re: Disable a user

2010-10-01 Thread mdipierro
use appadmin, edit the auth_user and in the field "registration_key" write "blocked" they will not be logged out if they are logged in but they will not be able to login is the log out or login expires. On Oct 1, 2:40 pm, Kenneth wrote: > Any ideas how to disable a user to login? > > I don´t wa

[web2py] Disable a user

2010-10-01 Thread Kenneth
Any ideas how to disable a user to login? I don´t want to delete users as they have done things in the system and I want to be able to check whos done what. Is the easiest thing to change theres passwords? But then they can request a new password. Kenneth

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread mdipierro
Now I think I fixed it. This time I tried it. Please double check. Notice you can have a single table with all your files and more than one record from different tables use that as uploadfield. Massimo On Oct 1, 1:29 pm, István Gazsi wrote: > I've made a little mistake, because I added the uploa

Re: [web2py] Re: DAL, legacy keyed table, field references

2010-10-01 Thread Ivan Matveev
2010/10/1 mdipierro > keyed tables are only partially supported. Perhaps user Denes can say > more about that. For now here is a quick hack that should work: > > Thank you for fast reply. > db.define_table('cars', >Field('car_id','integer'), >Field('model_id', > 'integer',requires=IS_IN

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
I've made a little mistake, because I added the uploadfield option to another field, but it didn't cause any problem. But it looks like when I upload a file into the redirected field (the one with the uploadfield option) web2py still doesn't create a new record in the gallery_images table, and it c

[web2py] Need Embedded C++ developer profiles for my direct client requirement

2010-10-01 Thread Supriya from Javaji Inc.
*Send profiles to supr...@javaji.com* * * * Title: Embedded C++ developer* *Location: TX* *Duration: 6 months+* *Description:* To understand customer requirements To design, develop and unit test in C++ code To have a good practical knowledge on optical/SONET To have a expertise on Objec

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread mdipierro
one more try please On Oct 1, 11:52 am, István Gazsi wrote: > I forgot to mention that I inserted a record into the gallery table. :)

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
I forgot to mention that I inserted a record into the gallery table. :)

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
Now I can insert records, but after that no new record appears in the gallery_images table, and when I try to load the thumbnails via the download function (with attachment=False) I get the following error: Traceback (most recent call last): File "/home/istvan/Documents/Mercurial/web2py-trunk-te

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
I would like to improve my users urls by cutting the 'view' function out so the url would be http://domain.com/user/username Now I have this: routes_in = ( ("/user/(.+)", r"/welcome/user/view/\1"), ("/(.+)", r"/welcome/\1"), ) routes_out = ( ("/welcome/user/view/(.+)", r"/user/\1"), ("/w

[web2py] Need best consultant Sr. technical project manager profile for my direct client requirement

2010-10-01 Thread Supriya from Javaji Inc.
*Please send profiles to supr...@javaji.com* * * *Title: Sr.Technical Project Manager * *Location: Minneapolis, MN* *Duration: 6 months+* *Description:* Should have Web Method integration exp. with project management skills with BPM & BAM skills. client is implementing pilot project for

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread mdipierro
can you please try again from trunnk On Oct 1, 10:25 am, István Gazsi wrote: > Thank you! > > I've tested it, but when I try to insert a record to the db (on my > machine not on GAE), get the following error: > > Traceback (most recent call last): >   File "/home/istvan/Documents/Mercurial/web2py

Re: [web2py] Re: shorting your URL with routes

2010-10-01 Thread Jonathan Lundell
On Oct 1, 2010, at 9:20 AM, Francisco Costa wrote: > > Has I said before, that way other functions of the controller user > don't work Can you list, more or less, what you're after? > :( > > > On Oct 1, 3:10 pm, mdipierro wrote: >> yes >> >> routes_in = ( >> ("/user/(.+)", r"/welcome/user/

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
Has I said before, that way other functions of the controller user don't work :( On Oct 1, 3:10 pm, mdipierro wrote: > yes > > routes_in = ( >   ("/user/(.+)", r"/welcome/user/view/\1"), > ) > > routes_out = ( >   ("/welcome/user/view/(.+)", r"/user/\1"), > ) > > On Oct 1, 8:57 am, Francisco Cos

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
Thank you! I've tested it, but when I try to insert a record to the db (on my machine not on GAE), get the following error: Traceback (most recent call last): File "/home/istvan/Documents/Mercurial/web2py-trunk-test/gluon/ restricted.py", line 188, in restricted exec ccode in environment

[web2py] Re: shorting your URL with routes

2010-10-01 Thread mdipierro
yes routes_in = ( ("/user/(.+)", r"/welcome/user/view/\1"), ) routes_out = ( ("/welcome/user/view/(.+)", r"/user/\1"), ) On Oct 1, 8:57 am, Francisco Costa wrote: > is it possible? > > On Oct 1, 10:55 am, Francisco Costa wrote: > > > Thank you for your answers, both work for me, i didn't k

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread mdipierro
I have not tested it yet so perhaps you can help me. In trunk db.define_table('imagestore', Field('name','upload',uploadfield='myblob'), Field('myblob','blob')) db.define_table('car' Field('name') Field('image','upload',uploadfield=db.imagestore.name)) notice car.image points to imag

[web2py] Re: Simple PDF Report in Slices

2010-10-01 Thread smg
Thank You! On Oct 1, 3:42 pm, mdipierro wrote: > Meanwhile I remind you that you can do > > from gluon.contrib.markmin2pdf import markmin2pdf > print markmin2pdf(""" > # title > ## section > > Paragraph > > > this | is > a    | table > > """) > > requires latex and pdfla

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
is it possible? On Oct 1, 10:55 am, Francisco Costa wrote: > Thank you for your answers, both work for me, i didn't know that the > order was important. > But the thing is that I have others functions in the user controller > that stopped to work, unless I have a dedicated route for them. > ex: /

[web2py] Re: Simple PDF Report in Slices

2010-10-01 Thread mdipierro
Meanwhile I remind you that you can do from gluon.contrib.markmin2pdf import markmin2pdf print markmin2pdf(""" # title ## section Paragraph this | is a| table """) requires latex and pdflatex installed. Supports some utf8. European languages are fine but not russia

[web2py] Re: DAL, legacy keyed table, field references

2010-10-01 Thread mdipierro
keyed tables are only partially supported. Perhaps user Denes can say more about that. For now here is a quick hack that should work: db.define_table('cars', Field('car_id','integer'), Field('model_id', 'integer',requires=IS_IN_DB(db,'car_models.model_id','% (model_name)s')), Field('no

[web2py] Re: GAE address

2010-10-01 Thread Rick
Thanks for the link and the answer. Now I've figured out what I exactly try to ask: How to make the "root site" 127.0.0.1:8080 redirect to 127.0.0.1:8080/myapp/views/default/index instead of 127.0.0.1:8080/myapp/welcome/default/index ? On Sep 30, 8:20 pm, mdipierro wrote: > This is what I do: >

[web2py] Re: Simple PDF Report in Slices

2010-10-01 Thread smg
Hi Mariano, I want to say thank you for fpdf port. > Pyfpdf should work well with accented characters (LATIN1, by PDF specs). > In fact I use it in Argentina (spanish). > Of course, suggestions are wellcome, and any fix will be accepted :-) Pyfpdf add_font method is broken in 1.54b, and I mad

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
Thanks Massimo, you're working really fast! And by the way web2py has the most user-friendly developers and community I have ever seen. :)

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread mdipierro
It should be possible to re-write store() and retrieve() in sql.py to do this. I will look into it. Massimo On Oct 1, 7:40 am, István Gazsi wrote: > Thanks for the quick reply! I have a database table which stores the > title, the thumbnail, and the full size version of an image among > other th

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread István Gazsi
Thanks for the quick reply! I have a database table which stores the title, the thumbnail, and the full size version of an image among other things. When I load 25 records from this table to a gallery, the GAE loads the whole records and it consumes a lot of IO. Can you recommend something about h

[web2py] DAL, legacy keyed table, field references

2010-10-01 Thread Ivan Matveev
Hello All, I'm trying to make a web2py interface to a legacy db(mysql). The db is defined like this: CREATE TABLE `car_models` ( `model_id` int(10) unsigned NOT NULL auto_increment, `model_name` text NOT NULL, PRIMARY KEY (`model_id`) ) CREATE TABLE `cars` ( `car_id` int(10) unsigned NOT

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
Thank you for your answers, both work for me, i didn't know that the order was important. But the thing is that I have others functions in the user controller that stopped to work, unless I have a dedicated route for them. ex: /welcome/user/index is a list of all users and only works if I had rout

[web2py] Re: insert/update multiple record in one form [CLOSED]

2010-10-01 Thread David Marko
How did you solve it? David On 1 říj, 08:15, annet wrote: > On Sep 29, 10:16 am, annet wrote: > > > > > > > > > I have a table in which users can insert/update css declarations to > > customize a page's styling. Some sample records: > > > declaration_id                    1 > > declaration.comp