Re: [web2py] Re: CMS idea

2011-12-12 Thread Angelo Compagnucci
Wow! It' really amazing! This is really innovative and never seen! We must build something like an easy administrative interface around it! Great Massimo! 2011/12/12 Massimo Di Pierro massimo.dipie...@gmail.com And here is the full source https://github.com/mdipierro/Plasmid On Dec

[web2py] How to translate Django+GAE project for deferred.defer in web2py

2011-12-12 Thread Constantine Vasil
In my Django+GAE project I have these settings for deferred.defer in GAE. What I need to change in order to have equivalent file for web2py? django_wrapper_deferred.py is used from GAE deferred library which I want to run in web2py environment. =

[web2py] Re: Getting table a to use as default string from field in table b

2011-12-12 Thread tsvim
Ok here's what I want to do. I want a user to be able to create multiple tables of data, with some information about every table. So instead of creating more tables, I figured I'll have one big table of data with a reference to the record in the table_settings database so I can return to the

[web2py] Re: CMS idea

2011-12-12 Thread stefaan
Very, very nice idea.

[web2py] Special select widget returning form errors when submitted (no data)

2011-12-12 Thread Dominique
Hello All, I need some help to have a widget work correctly. BTW, once corrected, I think it could be useful to other users... I built a widget to expose in a SELECT regions and their sub-regions ('departement') to choose. For instance: a region A is divided into departement 11 and departement

[web2py] (Very) small improvement suggestion

2011-12-12 Thread Omri Har-Shemesh
Hi All, I have an extremely small suggestion to make life a tiny bit easier - in the beginning when starting web2py using python web2py.py there appears a dialog box. In the dialog box, the password field has a binding on the 'Return' to start the server when the return key is pressed. I

[web2py] migrate passwords from phpBB

2011-12-12 Thread thodoris
I am trying to migrate users from phpBB whose passwords have been encrypted with php_pass. There is a python module that mimics the functionality of php_pass and i am wondering what is the best way to override the default encryption of web2py. Is it sufficient to override CRYPT() using

[web2py] Re: js paypal shopping cart

2011-12-12 Thread newnomad
It uses javascript to create buyable items, and to handle the cart. For those who prefer to render items in html, and have only the cart work with clientside script, check out Simplecart. Those who prefer an all-serverside solution, extended with AJAX cart, might want to port jCart to web2py.

[web2py] Re: Getting table a to use as default string from field in table b

2011-12-12 Thread Anthony
Still, if I understand correctly I'd have to setup a AJAX call requesting the default values to prepopulate the fields with the defaults matching the table? Or else maybe when creating the table for the user, I could enter the default values. I'm trying to imagine though how I would go

[web2py] Re: migrate passwords from phpBB

2011-12-12 Thread Massimo Di Pierro
yes. On Dec 12, 5:56 am, thodoris pasxi...@gmail.com wrote: I am trying to migrate users from phpBB whose passwords have been encrypted with php_pass. There is a python module that mimics the functionality of php_pass and i am wondering what is the best way to override the default encryption

[web2py] Re: 500 internal server error after deployment of app and upgrade to latest version

2011-12-12 Thread Adnan Smajlovic
Thanks Anthony and Massimo. I contacted the hosting company and they suggested to install the additional python instance. Can you please advise, how would I go about auto-starting web2py with a proper version of python then? Thanks, Adnan ### Reference email from hosting company: ...

[web2py] MARKMIN indentation

2011-12-12 Thread lyn2py
Hi, how do I make nested lists with MARKMIN? For example, indentation to create it? + Ordered Item - Bulleted Item + Another Item + Sub Item + Sub 2 - Bulleted Again Probably gives: 1. Ordered Item - Bulleted Item 2. Another Item a. Sub Item b. Sub 2 * Bulleted Again *

[web2py] Re: CMS idea

2011-12-12 Thread Ross Peoples
This would be great tool for moving an existing website to a web2py-based CMS. I remember having to move static HTML pages to WordPress a few years back and it was such a pain. This would be an excellent migration tool.

Re: [web2py] Re: about SQLFORM

2011-12-12 Thread Richard Vézina
Why not using web2py feature for this : db[request.args(0)].entered_by.update=auth.user and auth.user.id db[request.args(0)].input_date.update=request.now request.args(0) = your table So here you tell web2py to stamp user id (from auth_user) into entered_by field of the given table only on

[web2py] Project Idea

2011-12-12 Thread Massimo Di Pierro
We could use this https://github.com/amoffat/Inspect-Shell/blob/master/inspect_shell.py together with a modified shell (from admin/controllers/shell.py) to give a web based presence to any running python script.

[web2py] Re: MARKMIN indentation

2011-12-12 Thread Massimo Di Pierro
There is already an open issue about this. I approved it but did not have the time to implement it. The minor complication is that it would require changing not just markmin2html.py but also markmin2latex. On Dec 12, 9:22 am, lyn2py lyn...@gmail.com wrote: Hi, how do I make nested lists with

[web2py] Re: CMS idea

2011-12-12 Thread Massimo Di Pierro
I agree. I think this should be a component of a larger project. Is should include the ability to recursively download all linked pages from the same domain (including html, css, js, images, etc.). It should not take that much to do but one needs to decide what to do with the downloaded data. I

Re: [web2py] Re: CMS idea

2011-12-12 Thread Javier Quarite
On Mon, Dec 12, 2011 at 12:33 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree. I think this should be a component of a larger project. Is should include the ability to recursively download all linked pages from the same domain (including html, css, js, images, etc.). It

[web2py] Re: CMS idea

2011-12-12 Thread Anthony
Right now, it's just saving a static copy of the full HTML page, right? So, if you want to change the header or footer, for example, you'd have to change it on each individual page. On Monday, December 12, 2011 12:33:12 PM UTC-5, Massimo Di Pierro wrote: I agree. I think this should be a

[web2py] Re: CMS idea

2011-12-12 Thread Massimo Di Pierro
Yes but the point is that eventually you could edit the text and write $FOOTER and then same it as a template. I am thinking this should be a piece of a CMS that can be used to create themes from existing pages. On Dec 12, 12:03 pm, Anthony abasta...@gmail.com wrote: Right now, it's just saving

Re: [web2py] Re: CMS idea

2011-12-12 Thread Javier Quarite
On Mon, Dec 12, 2011 at 1:14 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Yes but the point is that eventually you could edit the text and write $FOOTER and then same it as a template. I am thinking this should be a piece of a CMS that can be used to create themes from existing

[web2py] generate multiple form from a query

2011-12-12 Thread Richard
Hello, Is there a better way of doing this : def bunch_update_with_multi_form(): form0=None form1=None form3=None form4=None form5=None form6=None form7=None form8=None form9=None form10=None form11=None form12=None form13=None form14=None

Re: [web2py] generate multiple form from a query

2011-12-12 Thread Anthony
web2py creates a hidden _formname field for each form. If there are multiple forms on the page, they must each have a unique _formname. By default, SQLFORM creates a _formname based on the table name and type of form (and possibly record number), but you can generate your own name via the

[web2py] Re: generate multiple form from a query

2011-12-12 Thread Massimo Di Pierro
'N'+''.join('o' for in in range(100))+'!' yes there is a better way :-) def bunch_update_with_multi_form(): for k in range(31): locals()['form%s' % k] = None # not sure if necessary if not request.args(0) in [... list of allowed tables...]: redirect(URL('error')) tablename, table =

[web2py] Re: FluxFlex New Version Issue

2011-12-12 Thread Omi Chiba
Oh, it looks like solved ! On Dec 11, 10:12 pm, Ismael Serratos ialejandr...@gmail.com wrote: In fact, I'm trying to create new projects, and new appliances of web2py and with all happens the same..http://kodesideman.fluxflex.com/the new one, same error, and the old one kodeside.fluxflex.com

Re: [web2py] generate multiple form from a query

2011-12-12 Thread Richard Vézina
Thanks Anthony... Here what I did so far... ## CONTROLLER def bunch_review_with_multi_form(): # Getting lot and test from args or vars... rows = db((db.lotns_lot_number.id == request.args(1))\ (db.lotns_sample.lot_number_id == db.lotns_lot_number.id)\

[web2py] PyCon 2012 tutorials announced

2011-12-12 Thread Massimo Di Pierro
https://us.pycon.org/2012/schedule/lists/tutorials/ No web2py tutorial this year. Rejected. :-(

Re: [web2py] generate multiple form from a query

2011-12-12 Thread Richard Vézina
I would need a way to display my updated rows in line... I just though that I could combine SQLTABLE and for each row of my rows query I could embeded a submit button of each of my forms that I could rename review... Putting all the form fields to hidden I could then make a onvalidation process

Re: [web2py] PyCon 2012 tutorials announced

2011-12-12 Thread Ovidio Marinho
web2py does not have anything? We need to unite for a petition demanding web2py this important event. Because they rejected? Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br

Re: [web2py] PyCon 2012 tutorials announced

2011-12-12 Thread António Ramos
After the Bossie Award, web2py should be the main attraction... 2011/12/12 Ovidio Marinho ovidio...@gmail.com web2py does not have anything? We need to unite for a petition demanding web2py this important event. Because they rejected? Ovidio Marinho Falcao Neto Web

Re: [web2py] PyCon 2012 tutorials announced

2011-12-12 Thread joseph simpson
Or post multiple on-line tutorials that cover web2py. Then create a communications plan to educate the target audience. The information would be available, everyone with web access could share the information. On Mon, Dec 12, 2011 at 1:24 PM, Ovidio Marinho ovidio...@gmail.com wrote: web2py

Re: [web2py] PyCon 2012 tutorials announced

2011-12-12 Thread Jim Steil
We could still organize an Open Spaces time to meet-up and talk about Web2py. The Conference schedule is to be available on 1/1/12. Anyone know if there were any web2py presentations proposed? I am planning on attending this year and am looking forward to meeting other web2py users.

Re: [web2py] Re: web2py 1.99.3 is OUT

2011-12-12 Thread Richard Vézina
Web2py leitmotiv should be : Web2py : always further... :) Richard On Sun, Dec 11, 2011 at 8:26 PM, Anthony abasta...@gmail.com wrote: Massimo, shortly I'll be sending an updated 'examples' that fixes this as well as some other issues (courtesy of Chris May). The Bossie Award problem is

[web2py] Re: PyCon 2012 tutorials announced

2011-12-12 Thread Massimo Di Pierro
I submitted two talk proposals and one tutorial proposal. I do not know yet about talks. Massimo On Dec 12, 3:24 pm, Ovidio Marinho ovidio...@gmail.com wrote:  web2py does not have anything? We need to unite for a petition demanding web2py this important event. Because they rejected?        

[web2py] Lock wait timeout exceeded; Try restarting transaction

2011-12-12 Thread frasse
Hi I have two function one is running in controller when users access the page (manageGame) and one is running as cron job (cleanDB). I am geting Lock wait timeout exceeded; Try restarting transaction error in mysql database. How can I avoid this problem ? def manageGame(): now =

Re: [web2py] Re: PyCon 2012 tutorials announced

2011-12-12 Thread Ovidio Marinho
From what I see already set the tutorials, including basic Django, as not present web2py and web2py to make django did most of the framework developed inPython, I think it also should have policies in PyCon preferences, as in all places. Finish select tutorials, these are the selected:

[web2py] Re: PyCon 2012 tutorials announced

2011-12-12 Thread Anthony
On Monday, December 12, 2011 4:39:34 PM UTC-5, Massimo Di Pierro wrote: I submitted two talk proposals and one tutorial proposal. I do not know yet about talks. Hopefully web2py will get a talk. I think talks probably generate more exposure anyway because you don't have to pay a separate

[web2py] Redirecting to a URL, but with changed html

2011-12-12 Thread peter
If I have a function as follows in default.py def test(): redirect(url of some web page) Then app/default/test does open up the web page as if it was entered in the url bar of the browser. If the function is def test(): import urllib url=url of some web page f =

[web2py] Re: Lock wait timeout exceeded; Try restarting transaction

2011-12-12 Thread Anthony
You probably need to add db.commit() to your cron job to commit the transaction. This is necessary in external scripts, but not in models, views, and controllers. See http://web2py.com/book/default/chapter/06#commit-and-rollback and http://web2py.com/book/default/chapter/04#Cron. Anthony On

Re: [web2py] generate multiple form from a query

2011-12-12 Thread Richard Vézina
Not as easy as I thought... :( Richard On Mon, Dec 12, 2011 at 4:21 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I would need a way to display my updated rows in line... I just though that I could combine SQLTABLE and for each row of my rows query I could embeded a submit button

[web2py] Re: How to translate Django+GAE project for deferred.defer in web2py

2011-12-12 Thread howesc
can you point it at web2py/gae_handler.py or base your deferred handler off of that?

Re: [web2py] generate multiple form from a query

2011-12-12 Thread Anthony
forms = [] flag = 0 for i in rows: Python tip -- instead of the above, try: for flag, i in enumerate(rows): forms.append(SQLFORM(db[request.args(0)], i[request.args(0)].id)) It looks like your rows are actually the result of a multi-table join, so you might need

[web2py] Re: Redirecting to a URL, but with changed html

2011-12-12 Thread Anthony
I guess that's not technically a redirect -- it's actually copying the other page and delivering the copy. What do you mean it's no longer connected to the session? The difficulty with copying a web page and delivering the copy is that it might contain some relative URL references (links as

[web2py] Re: Redirecting to a URL, but with changed html

2011-12-12 Thread Anthony
You would have to rewrite the URLs to make them absolute (including URLs within any static files linked in the page) Correction -- you probably don't have to worry about relative URLs within linked CSS files because they will be loaded relative to the CSS file URL (so only that URL needs

[web2py] Re: Redirecting to a URL, but with changed html

2011-12-12 Thread Constantine Vasil
Spend all week struggling with the same. Basically you have to use browsers' window.location.replace and initialize the location via Python from your function. Let say you are here: http://www.mycoolapp.com/old_location in the html you place the JavaScript at the bottom before /body:

[web2py] Re: Redirecting to a URL, but with changed html

2011-12-12 Thread Anthony
web2py redirect issues a standard http redirect, so the address will change in the browser address bar. I believe you were using jQuery Mobile and Ajax, which apparently introduces some complications (not specific to web2py). For a regular application, a standard redirect should work fine. In

[web2py] Re: Redirecting to a URL, but with changed html

2011-12-12 Thread Constantine Vasil
yes, redirect is little tricky ;) my solution is for ajax.

[web2py] Re: web2py 1.99.3 is OUT

2011-12-12 Thread Jim Karsten
SQLFORM.factory hidden fields are not working the same in 1.99.3 as in 1.99.2. Here is a simple example form = SQLFORM.factory( Field('text_field'), Field('hidden_field', type='hidden', default='test'),) The hidden field is not hidden. Here is the html produced. The first is from 1.99.2,

[web2py] Re: web2py 1.99.3 is OUT

2011-12-12 Thread Anthony
I'm guessing that was never supposed to work. I think the 'type' argument to Field() is only supposed to take one of the DAL's pre-defined types. In the past this worked because without specifying a widget or one of the recognized field types, the field was given the string widget by default,

[web2py] Re: weird database behavior

2011-12-12 Thread Nik Go
I'm still stuck with this :( I've already deleted my database to start from scratch but I am encountering the same issue. For example, i deleted a record from auth_account (in this case record #3) but when the I run the app and run a trace with ipdb, my functions still return a row id 3, as if it

[web2py] How to get JSON results?

2011-12-12 Thread lyn2py
I have followed the instructions from the book http://web2py.com/book/default/chapter/09 But it is not working for me, please point out my errors! #controller @service.json def search(): query = db.search.title.contains(request.args(0), all=True) return db(query).select() def call():

[web2py] Re: MARKMIN indentation

2011-12-12 Thread lyn2py
Thanks Massimo, MARKMIN is an excellent tool. Looking forward to this new feature in MARKMIN. On Dec 13, 1:30 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: There is already an open issue about this. I approved it but did not have the time to implement it. The minor complication is

[web2py] mysql relationship error

2011-12-12 Thread Stanislaw Smetanin
Hi community. I'm new to the web2py, but have a passion to learn it. I'm a little stuck when start to define my models, I use MySQL engine, and have following models: db = DAL('mysql://login:password@localhost/mydb') #db = DAL('sqlite://sqlite.sqlite') db.define_table('aphorizm',

[web2py] Re: How to get JSON results?

2011-12-12 Thread Anthony
Does it work if you pass the request arg as an argument to the function: @service.json def search(keyword): query = db.search.title.contains(keyword, all=True) return db(query).select() On Monday, December 12, 2011 9:44:50 PM UTC-5, lyn2py wrote: I have followed the instructions from

[web2py] Re: mysql relationship error

2011-12-12 Thread Anthony
In the 'aphorizm' table definition, you refer to db.author, but at that point, db.author doesn't yet exist. You have two options -- either reverse the order of the table definitions, or use the alternate syntax for defining a reference field: Field('author_id', 'reference author'). Anthony On

[web2py] Re: How to get JSON results?

2011-12-12 Thread lyn2py
Yes it does. LOL. Sorry for the trouble! On Dec 13, 11:04 am, Anthony abasta...@gmail.com wrote: Does it work if you pass the request arg as an argument to the function: @service.json def search(keyword):     query = db.search.title.contains(keyword, all=True)     return db(query).select()

Re: [web2py] Re: error gluon/sqlhtml.py?

2011-12-12 Thread Martin Weissenboeck
yes, the new code is in 1.99.3 2011/12/7 Anthony abasta...@gmail.com I think it has already been changed in trunk -- can you check it there? On Wednesday, December 7, 2011 9:40:28 AM UTC-5, mweissen wrote: I think line 1566 of gluon/sqlhtml.py message = error or T('%(nrows)s records

[web2py] Re: PyCon 2012 tutorials announced

2011-12-12 Thread mikech
Web2pyCon? Maybe?