[web2py] Re: markmin

2010-07-06 Thread mdmcginn
Massimo also announced this at http://groups.google.com/group/comp.lang.python.announce/browse_thread/thread/216e52e03e1a0120/4e9404e70bdeed0e#4e9404e70bdeed0e but didn't include a link to http://www.web2py.com/examples/static/markmin.html. No comments yet. On Jul 6, 11:47 pm, Jason Brower wrote:

Re: [web2py] markmin

2010-07-06 Thread Jason Brower
Markdown has no classes and it's annoying. I have been hoping for something like this. And didn't they say it was faster? Why do we need Python when we can do everything in C? Then again, I am no expert. And about the seporate project. It kind of is now, but it is just included with the web2py pa

Re: [web2py] markmin

2010-07-06 Thread Álvaro Justen
Another thoughts: *why* do we need another markup language? Markdown is not enough? It is so boring to learn a lot of languages (rest, markdown, markmin...). On Tue, Jul 6, 2010 at 23:32, Álvaro Justen wrote: > On Mon, Jul 5, 2010 at 19:42, mdipierro wrote: >> http://www.web2py.com/examples/stat

Re: [web2py] markmin

2010-07-06 Thread Álvaro Justen
On Mon, Jul 5, 2010 at 19:42, mdipierro wrote: > http://www.web2py.com/examples/static/markmin.html As you created it, it is in contrib, it doesn't depend on web2py and maybe useful to other people, I think we should create another project to maintain markmin. Other ideia is to integrate the temp

[web2py] Re: How to enable "request_reset_password" function?

2010-07-06 Thread Richard
no worries. This forum is very active and helpful, but sometimes good questions like this just get missed. On Jul 6, 9:00 am, elfuego1 wrote: > Thank you!!  ;-) > I thought no one will answer this. > > On 1 Lip, 03:52, Richard wrote: > > >http://code.google.com/p/web2py/source/browse/gluon/tool

[web2py] Re: markmin

2010-07-06 Thread Richard
Does this belong in trunk? One of the attractions of web2py is the pure Python templating language. On Jul 6, 6:02 pm, mdipierro wrote: > I guess it is we(b2py users). we(b2py users) can vote change the name > as they see fit (until it makes to stable). > > On 5 Lug, 23:17, Jason Brower wrote:

[web2py] web2py prod deployment

2010-07-06 Thread Jean-Guy
Hello, I already had deployed web2py 1.78.3 in prod with the ubuntu script... I would like to know what is the best way to deploy the web2py 1.79.2 over the already deployed web2py installation (1.78.3) : 1) update of web2py 1.78.3 from the admin interface 2) replace the web2py 1.78.3 folder

Re: [web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread Jean-Guy
I am quite interrested to the incorporation of this plugin in the near future... I will read the thread carefully. Thanks to pay attention about this issue. Jonhy On 2010-07-06 12:59, AsmanCom wrote: Could you advise me a Workaround for that? THX Dieter Asman On 6 Jul., 18:16, mdipierro w

[web2py] Re: Password verification - how to?

2010-07-06 Thread elfuego1
Password field in my form looks like this: {{=lbl.password}} {{=wdgt.password}} Next how should I invoke: form.element(_name='password').parent().append(INPUT(_name='password2',requires=IS_EXPR('value= %s' % repr(request.vars.password)) )) to recive next input field for password

[web2py] Re: web2py freezing

2010-07-06 Thread Rowdy
mdipierro wrote: It should be completely backward compatible. Without the new version is difficult for me to help debug the problem. I would like to follow up on this, but I have been moved onto another project for a while. It also seems that the replacement server is on hold too, so I have ar

Re: [web2py] Re: Initiating table

2010-07-06 Thread Rick Hultgren
ooops... this should be the correct code: letters=['A', 'B', 'C'] fields=[] for letter in letters: db.define_table(letter, *fields) fields=[Field(item+'_id', db[item]) for item in letters] ...sorry for the bad code int the previous message. On 7/6/10, Rick Hultgren wrote: > ...so these

Re: [web2py] Re: Initiating table

2010-07-06 Thread Rick Hultgren
...so these tables: db.define_table( 'A', Field( 'A_id', db.A), Field( 'B_id', db.B), Field( 'C_id', db.C)) db.define_table( 'B', Field( 'A_id', db.A), Field( 'B_id', db.B), Field( 'C_id', db.C)) db.define_table( 'C', Field( 'A_id', db.A), Field( 'B_id', db.B), Field( 'C_id', db.C

[web2py] Re: inserting attributes into form.custom.begin

2010-07-06 Thread mr.freeze
It looks like the custom components are only built in the init of SQLFORM so you will have to pass it in the constructor: >>> form = SQLFORM(db.things, _class='small') >>> form.custom.begin.xml() '' On Jul 6, 12:55 pm, rāma wrote: > form['_class']='small' > Doesn't work with custom forms. :-( > >

[web2py] Re: Password verification - how to?

2010-07-06 Thread mdmcginn
See http://web2py.com/book/default/section/5/2 for documentation on HTML Helpers. I believe Massimo's solution assumes there are tables in your form, which is the default for FORM and SQLFORM. If your form doesn't contain HTML elements such as , maybe you're using or instead. Look at your HTML -

[web2py] Re: inserting attributes into form.custom.begin

2010-07-06 Thread rāma
form['_class']='small' Doesn't work with custom forms. :-( On Jul 7, 1:07 am, "mr.freeze" wrote: > That doesn't work for me in the console. What am I doing wrong?: > > >>> form = SQLFORM(db.things) > >>> form['_class'] = 'small' > >>> form.custom.begin.xml() > > '' > > On Jul 6, 11:14 am, mdipier

[web2py] Re: inserting attributes into form.custom.begin

2010-07-06 Thread mr.freeze
That doesn't work for me in the console. What am I doing wrong?: >>> form = SQLFORM(db.things) >>> form['_class'] = 'small' >>> form.custom.begin.xml() '' On Jul 6, 11:14 am, mdipierro wrote: > form['_class']='small' > > On 6 Lug, 09:33, rāma wrote: > > > How do I insert attributes ie _class="

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread AsmanCom
Could you advise me a Workaround for that? THX Dieter Asman On 6 Jul., 18:16, mdipierro wrote: > I see there is a problem. There is no mechanism to pass the database > via ajax at this time. > > On 6 Lug, 10:39, AsmanCom wrote: > > > Hi, > > > i´ve tried it, but it won´t work. > > > Installed

[web2py] Partially distributed database

2010-07-06 Thread ron_m
I have 10 sites each with a server geographically separated over a WAN with a VPN mesh making it look like all the systems are on one network. Some of the basic tables containing global configuration need to be identical across all systems. Other tables which foreign key into the base tables occur

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread mdipierro
I see there is a problem. There is no mechanism to pass the database via ajax at this time. On 6 Lug, 10:39, AsmanCom wrote: > Hi, > > i´ve tried it, but it won´t work. > > Installed the new Version from ->http://www.web2py.com/plugins/default/jqgrid > > controller-> > > def jqgrid(): >     retur

[web2py] Re: inserting attributes into form.custom.begin

2010-07-06 Thread mdipierro
form['_class']='small' On 6 Lug, 09:33, rāma wrote: > How do I insert attributes ie _class="small" into a custom form tag. > Should look like below at the end of the day. > ' class="small">' > > I didn't find any attribute function in form.custom.begin to insert > the above.

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread AsmanCom
Hi, i´ve tried it, but it won´t work. Installed the new Version from -> http://www.web2py.com/plugins/default/jqgrid controller-> def jqgrid(): return dict(grid=plugin_jqgrid(db_1.maingrid)) model-> db_1 = DAL("sqlite://db1.db") db_1.define_table('maingrid', Field('field1', 'string'),

[web2py] Re: A few questions about jqgrid

2010-07-06 Thread AsmanCom
You could have a look at this plugin for for Inline edit with JQGrid and Web2py: http://app.ebansoftware.net/editable_jqgrid/default/index On 5 Jul., 21:25, Johann Spies wrote: > I am a javascipt and jquery novice and would appreciate some > information to help me understand how to use a jqgri

[web2py] inserting attributes into form.custom.begin

2010-07-06 Thread rāma
How do I insert attributes ie _class="small" into a custom form tag. Should look like below at the end of the day. '' I didn't find any attribute function in form.custom.begin to insert the above.

[web2py] Re: backward incompatible change?

2010-07-06 Thread mdipierro
This change of behavior was not intentional and I will look into it. Anyway, I would not use a form with no fields. I would use a link instead or a On 6 Lug, 07:29, stefaan wrote: > Hello list, > > In my application, I used a form with only a submit button (no other > fields). > It is used to al

Re: [web2py] Re: elFinder-web2py , Filemanager for Web2py!

2010-07-06 Thread Phyo Arkar
can you explain me more how to ? On Mon, Jul 5, 2010 at 7:30 PM, Phyo Arkar wrote: > Glad that you like it Massimo , Would be really nice to integrate it inside > Admin. > > > I am planning to make it a plugin but plugins for web2py is a bit new to > me. > > > 1) replace all path = '/path/to'+'/

[web2py] backward incompatible change?

2010-07-06 Thread stefaan
Hello list, In my application, I used a form with only a submit button (no other fields). It is used to allow the user to go back to some query definition screen after inspecting search results. Upgrading from web2py 1.66.1 to 1.79.2 broke the application and after some experimenting I think the

[web2py] Re: A few questions about jqgrid

2010-07-06 Thread mdipierro
One thing is jqGrid [1] and another thing is the web2py jqGrid plugin [2]. [1] can do all sort of things and everything works with web2py but you have to create your own serverside logic. [2] contains [1] and some pre-defined actions. It saves you some work but, out of the box, does not do inline

[web2py] Re: Update/insert data into multiple tables with one form

2010-07-06 Thread mdipierro
form=crud.create(db.table1,onaccept=lambda form: do_something_with_table2(form)) On 5 Lug, 23:39, mdmcginn wrote: > I'm working on a variation of an opinion poll application. Maybe I > missed this, but what is the best way to update multiple tables with > one form? SQLFORM and CRUD work well, bu

[web2py] Re: markmin

2010-07-06 Thread mdipierro
I guess it is we(b2py users). we(b2py users) can vote change the name as they see fit (until it makes to stable). On 5 Lug, 23:17, Jason Brower wrote: > FUN!  But who is "we"? > BR, > Jason Brower > > On Mon, 2010-07-05 at 15:42 -0700, mdipierro wrote: > >http://www.web2py.com/examples/static/mar