Re: [web2py] Re: cube2py news

2010-08-04 Thread Bruno Rocha
I found a trick to do that as #anchor marked with [[anything]] is rendered as pspan id='anything'/span/p ( which I am not sure if it is a good html pratice ) BTW, I solved my problem on white spaces with CSS [[br]] = span id=br I want br / [[brbr]] = span id=brbr I want br /br / plus [[hr]] =

[web2py] Re: crud + custom form broken?

2010-08-04 Thread Rob
Duh... thanks a lot Thadeus! I'm glad the people in this group are as helpful and understanding as they are :) On Aug 3, 9:10 pm, Thadeus Burgess thade...@thadeusb.com wrote: crud.select is not a form. it is an SQLTABLE. You probably ment, form = crud.create(db.Dinners), or form =

[web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread mdipierro
Can you post some stats? Number of participants for example. Massimo On Aug 3, 2:01 pm, NetAdmin mr.netad...@gmail.com wrote: Hello All, The winners of the Web2py Application Exhibition have been e-mailed, and I'm waiting for their replies before posting the results.  Mr.NetAdmin

[web2py] Re: A Call to Arms - Necessary and KILLER Apps for Web2py

2010-08-04 Thread mdipierro
You can do myrows = gaelike(db.().select(),text) if you define: def gaelike(rows,text): def condition(row): return len([k for k,v in row.items() if isinstance(v,str) and text in v])0 return rows.find(condition) On Aug 3, 2:53 pm, Bruno Rocha

[web2py] Re: Is it possible to close the source of an app made with plugin_wiki?

2010-08-04 Thread mdipierro
Yes. The only issue here is that plugin_wiki has triple license, including BSD therefore your closed source app must say it is based on plugin wiki. On Aug 3, 4:15 pm, Bruno Rocha rochacbr...@gmail.com wrote: I saw this post - So ... you want to make and sell a closed source windows exe web2py

[web2py] Re: Best practice for removing link to active page from menu?

2010-08-04 Thread mdipierro
The ul.../ul code in Django in web2py translates with {{=MENU(response.menu)}} where (using the data in your example) response.menu=[ ('Home',request.function=='home',URL(r=request,f='home'),[]), ('Store Information',request.function=='info',URL(r=request,f=info'), []), ] The latter code

[web2py] Re: How to detect in controller that request is via AJAX?

2010-08-04 Thread mdipierro
thanks uploading On Aug 3, 4:46 pm, Jonathan Lundell jlund...@pobox.com wrote: On Aug 3, 2010, at 7:48 AM, Jonathan Lundell wrote: On Aug 3, 2010, at 5:33 AM, Niphlod wrote: +1 for this method, is pretty standard in other frameworks too. Also, according

[web2py] Re: plugin_wiki suggestions

2010-08-04 Thread mdipierro
Yes you can: [[my reference #id1]] [[id1]] referenced material On Aug 3, 11:56 pm, Bruno Rocha rochacbr...@gmail.com wrote: Useful suggestion: markmin currently does not allow the creation of references to links, this is very useful when the written material might be used for printing as

[web2py] Re: plugin_wiki suggestions

2010-08-04 Thread mdipierro
Please check the cube2py on google code. I did not fix the problem with the error but now template=None should not appear anymore. On Aug 3, 10:48 pm, Bruno Rocha rochacbr...@gmail.com wrote: Thanks Massimo, template function is very well, but raises an error ticket when passing 'None'  in

[web2py] this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Stef Mientki
please forgive my ignorance, but I wonder why views are not written in Python, instead of html ( see comparison below of te first part of default\index.html. The advantage of using Python: - the user can stick to 1 language - no redundant information in the closing tags, like ul , /ul - most

Re: [web2py] this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Alexey Nezhdanov
You are free to write it the way you want. You don't you do that? {{=DIV(HR(),H1('README'),UL(LI(T('blah'}} I think, though, that using wrappers gives lower perfomance so you'll be consuming more CPU. Otherwise - no objections to your method. On Wed, Aug 4, 2010 at 12:39 PM, Stef Mientki

[web2py] Re: this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread mdipierro
This is a good point. to do it with the current web2py the code at best would look like this: Stef Mientki View profile Translate to Translated (View Original) More options Aug 4, 3:39 am From: Stef Mientki stef.mien...@gmail.com Date: Wed, 04 Aug 2010 10:39:48 +0200 Local: Wed, Aug

Re: [web2py] Re: this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Phyo Arkar
Current way is good enough , it gives programmers choices. Many of us want to code in HTML as Long as they are static . May be pure python templating system which can be enable from response.view On Wed, Aug 4, 2010 at 3:40 PM, mdipierro mdipie...@cs.depaul.edu wrote: This is a good point. to

[web2py] How to define DAL query to retrieve items and theirs tags

2010-08-04 Thread David Marko
How to define DAL query to retrieve items and theirs tags? I have following tables: 'message' -- 'tagging'(maty-to-many between message and tag tables) --- 'tag' How to retrieve list of all mesages and their assotiated tags so I can list messages in a view like this: 1. message text 01 (tags:

[web2py] Re: How to define DAL query to retrieve items and theirs tags

2010-08-04 Thread David Marko
And how do you solve this in general? It seems to me very common thing. How to do it to minimalize database queries? (iIm not a SQL guy, my Job is Lotus Notes development) and recently I did project with MongoDB, which has quite different approach for this case) David On 4 srp, 11:29, mdipierro

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
Thanks for the reply, i will look into replacing the add/remove functions with that jquery code, but i('ll) still have the same issue; I can't figure out how to make a controller that will process the whole form and insert all the fields in a database. I'm trying to write a loop to manually

[web2py] Re: How to define DAL query to retrieve items and theirs tags

2010-08-04 Thread mdipierro
That is a difference between NoSQL and RDBS. In web2py you can do it with one query+code but I would to it with three queries and cache: query = db.message.id0 tags_d = db(db.tag.id0).select(cache=(cache.ram,600)).as_dict() message_d = db(query).select().as_dict() links =

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread mdipierro
I can send an example. Can you described the model and how input fields should be mapped into db fields? On Aug 4, 4:50 am, cogarg cog...@gmail.com wrote: Thanks for the reply, i will look into replacing the add/remove functions with that jquery code, but i('ll) still have the same issue; I

[web2py] web2py classes

2010-08-04 Thread mdipierro
I am teaching two classes on web2py this fall: http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx (2 credit hours) http://mycti.cti.depaul.edu/programs/courses.asp?section=coursescourseid=438deptmne=CSC (4 credit hours) They are both available online. The

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
For now, this is the db model: db.define_table('ekped', Field('userid'), # From db.auth_user.id Field('typ_ptyx'), Field('idryma'), Field('sxolh'), Field('titlos'), Field('polh_xwra'), Field('etos')) And the form-db field mapping should be like this(N is a

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread mdipierro
How about this? def callback(): mapping=[ ('fielda%i','typ_ptyx'), ('fieldb%i','idryma'), ('fieldc%i','sxolh'), ('fieldd%i','titlos'), ('fielde%i','polh_xwra'), ('fieldf%i','etos')] for i in range(1,100): values = dict((field,request.vars[key%i]) for

Re: [web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread Mr admin
The number of participants was two. Mr.NetAdmin On Wed, Aug 4, 2010 at 2:49 AM, mdipierro mdipie...@cs.depaul.edu wrote: Can you post some stats? Number of participants for example. Massimo On Aug 3, 2:01 pm, NetAdmin mr.netad...@gmail.com wrote: Hello All, The winners of the

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
This works fine, except for one thing; i also need to add the userid to the database so i can associate the records in the database to a registered user...i suspect it's a really easy fix, but i just can't figure it out... Thanks On Aug 4, 1:49 pm, mdipierro mdipie...@cs.depaul.edu wrote: How

[web2py] form submit to populate a div, ajax style

2010-08-04 Thread Andrew Buchan
Hi, how do I make the 'accepts' function of a form update some other part of a form? I can do it with a specific button, but want the validation provided by the 'accepts' function too In View: br/br/ {{=searchForm}} br/br/ {{=DIV(_id='searchResults')} In controller: if

Re: [web2py] Re: plugin_wiki suggestions

2010-08-04 Thread Bruno Rocha
Sorry, I am so stupid... I forgotten about anchors Thanks again 2010/8/4 mdipierro mdipie...@cs.depaul.edu Yes you can: [[my reference #id1]] [[id1]] referenced material On Aug 3, 11:56 pm, Bruno Rocha rochacbr...@gmail.com wrote: Useful suggestion: markmin currently does not allow

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread mdipierro
def callback(): mapping=[ ('fielda%i','typ_ptyx'), ('fieldb%i','idryma'), ('fieldc%i','sxolh'), ('fieldd%i','titlos'), ('fielde%i','polh_xwra'), ('fieldf%i','etos')] for i in range(1,100): values = dict((field,request.vars[key%i]) for key, field in

[web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread mdipierro
Next time we need a money prize. ;-) On Aug 4, 6:22 am, Mr admin mr.netad...@gmail.com wrote: The number of participants was two. Mr.NetAdmin On Wed, Aug 4, 2010 at 2:49 AM, mdipierro mdipie...@cs.depaul.edu wrote: Can you post some stats? Number of participants for example. Massimo

[web2py] Re: Best practice for removing link to active page from menu?

2010-08-04 Thread Iceberg
Yes but that only works in the earlier welcome scaffold shipped with web2py 1.79.x or so. The latest web2py's welcome uses SuperFish menu ( http://users.tpg.com.au/j_birch/plugins/superfish/ ), which is supposed to be capable for that too, but in fact the out-of-box welcome/static/base.css losts

Re: [web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread Mr admin
The first place prize was $100 dollars, 2nd place was $50 On Wed, Aug 4, 2010 at 8:13 AM, mdipierro mdipie...@cs.depaul.edu wrote: Next time we need a money prize. ;-) On Aug 4, 6:22 am, Mr admin mr.netad...@gmail.com wrote: The number of participants was two. Mr.NetAdmin On Wed,

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
There was a little problem with the code, but, for once, i managed to solve it on my own! userid had to be 'userid' values['userid']=auth.user_id Thanks for all the help! On Aug 4, 4:12 pm, mdipierro mdipie...@cs.depaul.edu wrote: def callback():     mapping=[      

[web2py] Re: this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Michael Ellis
As my application's views have become more complex, I've also been considering the same questions concerning Python vs HTML coding. I've tried using the helpers but my brain finds the stacks of parentheses even more confusing than HTML closing tags. Currently, I'm defining functions in my views

[web2py] Web2py Application Exhibition -- The Winners!

2010-08-04 Thread NetAdmin
Hello Web2py Users! After careful consideration of the entire list of entries... ( actually the only entry ) the winning entry was submitted by Martin Mulone of Entre Rios, Argentina. Martin enjoys music, programming in python, soccer and sailing. His entry, Instant-Press, which is a blogging

Re: [web2py] Re: this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Stef Mientki
Interesting approach ! Should be a good intermediate step, ... ... what I was thinking of (don't know yet if it's possible at all ;-) ... is a wysiwyg html editor combined with a syntax highlighter (for the embedded Python code) here is a first attempt, I'm making for totally other project,

[web2py] web2py/facebook example appliance

2010-08-04 Thread mcm
I updated info at the following url: http://wiki.developers.facebook.com/index.php/User:Python#web2py

Re: [web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread Michele Comitini
Seems like participants play only if they win!!! ;-) 2010/8/4 Mr admin mr.netad...@gmail.com: The first place prize was $100 dollars, 2nd place was $50 On Wed, Aug 4, 2010 at 8:13 AM, mdipierro mdipie...@cs.depaul.edu wrote: Next time we need a money prize. ;-) On Aug 4, 6:22 am, Mr

[web2py] Re: uft 8

2010-08-04 Thread sarsar
I hope that you have checked the language settings of your browser and you have used the admin part for updating languages, before translating the field . I hope it helps Sarados On 3 Αύγ, 14:35, max dulip.withan...@gmail.com wrote: yes. it shows incorrectly in the browser. On Aug 2, 7:13 pm,

[web2py] Re: Web2py Application Exhibition -- The Winners!

2010-08-04 Thread GoldenTiger
Great application InstantPress! What is the website of this competition? I did not know about it On 4 ago, 15:55, NetAdmin mr.netad...@gmail.com wrote: Hello Web2py Users! After careful consideration of the entire list of entries... ( actually the only entry ) the winning entry was submitted

[web2py] Re: Web2py Application Exhibition -- The Winners!

2010-08-04 Thread NetAdmin
I did all of the promotion through messages on this group. ( Search for the word Exhibition ) Mr.NetAdmin On Aug 4, 11:44 am, GoldenTiger goldenboy...@gmail.com wrote: Great application InstantPress! What is the website of this competition? I did not know about it On 4 ago, 15:55,

[web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread mikech
That is a good looking app! On Aug 3, 12:01 pm, NetAdmin mr.netad...@gmail.com wrote: Hello All, The winners of the Web2py Application Exhibition have been e-mailed, and I'm waiting for their replies before posting the results.  Mr.NetAdmin

[web2py] Re: Web2py Application Exhibition -- The Winners!

2010-08-04 Thread Wobmofo
Congrats to InstantPress, it's really great. Too bad few were aware of this competition. Next time, it would be great if it was stickied in the group. On Aug 4, 6:52 pm, NetAdmin mr.netad...@gmail.com wrote: I did all of the promotion through messages on this group. ( Search for the word

[web2py] Re: Web2py Application Exhibition -- The Winners!

2010-08-04 Thread mdipierro
Mr Admin did a good job at advertising on the list. Perhpas I should have helped him more with twitter etc. Well. Next time. I want to point out that Mr Admin is using his own money to pay for the prizes so we all owe him a big thank you. We got InstantPress out of it and that is fantastic.

[web2py] Re: this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Andy Pardue
Everyone at some point has this thought. But there is a big down side to generating all the html in code, it makes the application hard to skin. I can skin a web2py application in half and hour not including cleaning up the menus with any template I come across. I do like generate the html I am

[web2py] recaptcha settings RCS update

2010-08-04 Thread Vidul Petrov
Hi Massimo, I sent you an email with a Mercurial diff about retrieve_(username/ password) settings and captcha: diff -r 3e0d95c0a0d5 gluon/tools.py --- a/gluon/tools.pySun Aug 01 04:53:46 2010 -0500 +++ b/gluon/tools.pySun Aug 01 18:38:00 2010 +0300 @@ -804,6 +804,8 @@

[web2py] maybe of interest for someone: Fwd: [ANN] Websourcebrowser 0.4a released

2010-08-04 Thread Stef Mientki
Original Message Subject:[ANN] Websourcebrowser 0.4a released Date: Wed, 04 Aug 2010 22:41:42 +0200 From: Stefan Schwarzer sschwar...@sschwarzer.net Reply-To: python-l...@python.org Organization: 11 Internet AG To:

[web2py] routes.py in applications or how to access request in routes.py

2010-08-04 Thread Lasiaf
Hi, I'm new to web2py and python. Here is what I wanna accomplish: I want to have routes.py in each application, so I can make separate applications with different set of routes, because I will be hosting it in a shared hosting and they have limited inodes of 50,000. So I just want to keep a copy

[web2py] Re: recaptcha settings RCS update

2010-08-04 Thread mdipierro
Sorry I forgot. It is in trunk now. Please check it. Now I have to revise the book once more. :-( On Aug 4, 3:55 pm, Vidul Petrov vidul.r...@gmail.com wrote: Hi Massimo, I sent you an email with a Mercurial diff about retrieve_(username/ password) settings and captcha: diff -r 3e0d95c0a0d5

[web2py] Re: routes.py in applications or how to access request in routes.py

2010-08-04 Thread mdipierro
this is on our todo list On Aug 4, 4:19 pm, Lasiaf fai...@altlimit.com wrote: Hi, I'm new to web2py and python. Here is what I wanna accomplish: I want to have routes.py in each application, so I can make separate applications with different set of routes, because I will be hosting it in a

[web2py] web2py 1.82.1 is OUT check it out

2010-08-04 Thread mdipierro
Changelog #1.82.1 - new template system supports {{block}}, thanks Thadeus - new db.table(id,[field=value]) and db.table(query) syntax to get first matching record - URL('index') (no more r=request), thanks Thadeus - mail.send(message='html.../html', ) - DAL([uri1, uri2, uri3]) for load

Re: [web2py] web2py 1.82.1 is OUT check it out

2010-08-04 Thread Bruno Rocha
It is going down to zero ?? was 1.84.1, than 1.85. and now it is 1.82??? 2010/8/4 mdipierro mdipie...@cs.depaul.edu Changelog #1.82.1 - new template system supports {{block}}, thanks Thadeus - new db.table(id,[field=value]) and db.table(query) syntax to get first matching record -

Re: [web2py] web2py 1.82.1 is OUT check it out

2010-08-04 Thread Bruno Rocha
I got confused because of this thread.. http://groups.google.com/group/web2py/browse_thread/thread/a1e2b8443ada7198/5e20279c2ba66d88?lnk=gstq= *1.84*#5e20279c2ba66d88 Sorry... 2010/8/4 Bruno Rocha rochacbr...@gmail.com It is going down to zero ?? was 1.84.1, than 1.85. and now it is 1.82???

[web2py] Re: web2py 1.82.1 is OUT check it out

2010-08-04 Thread mdipierro
You had me panic for a second. LOL On Aug 4, 7:11 pm, Bruno Rocha rochacbr...@gmail.com wrote: I got confused because of this thread..http://groups.google.com/group/web2py/browse_thread/thread/a1e2b8443a... *1.84*#5e20279c2ba66d88 Sorry... 2010/8/4 Bruno Rocha rochacbr...@gmail.com

Re: [web2py] Re: web2py 1.82.1 is OUT check it out

2010-08-04 Thread Bruno Rocha
LOL Really sorry when I read the thread mentioned above got the number on the head, I even mentioned as being the current version on my site. (just corrected) web2py use a crawler to pull the version information directly to the appadmin. it is possible to embed in any other place? I i'll take a

Re: [web2py] Re: web2py 1.82.1 is OUT check it out

2010-08-04 Thread Bruno Rocha
Found it: http://web2py.com/examples/default/version Tks 2010/8/4 Bruno Rocha rochacbr...@gmail.com LOL Really sorry when I read the thread mentioned above got the number on the head, I even mentioned as being the current version on my site. (just corrected) web2py use a crawler to pull

[web2py] Re: recaptcha settings RCS update

2010-08-04 Thread Vidul Petrov
Thank you, Massimo! On Aug 5, 12:39 am, mdipierro mdipie...@cs.depaul.edu wrote: Sorry I forgot. It is in trunk now. Please check it. Now I have to revise the book once more. :-( On Aug 4, 3:55 pm, Vidul Petrov vidul.r...@gmail.com wrote: Hi Massimo, I sent you an email with a

[web2py] Custom Authorization

2010-08-04 Thread Ramjee Ganti
Hi All, Recently started using web2py and python. I am developing a web application. The authorization scenario is like this: There is a super user who can access anything. (Essentially he can create/update/delete categories apart from everything else) There is a category manager who can update