[web2py] Re: web2py Reference Manual -- a call to arms

2010-07-13 Thread mdipierro
It depends. If the docstrings are well written they can be useful to both. On 13 Lug, 21:52, weheh wrote: > Massimo, isn't epydocs more geared to the web2py developer than the > user? I agree, embedding the user documentation into the code is > desireable (write once, serve many). But, users and

[web2py] Re: T2, T3, Cube2py ...

2010-07-13 Thread mdipierro
LOL what I meant is "give instructions to the computer" without having to learn about "loops and conditionals" On 13 Lug, 20:42, Thadeus Burgess wrote: > >> easier programming without coding. > > LOL =) > > Best un-intentional oxy-moron I have read in a while > > -- > Thadeus > > On Tue, Jul 13

[web2py] Re: need help on managinge passwords by administrator

2010-07-13 Thread mdipierro
You can disable registration auth.settings.actions_disabled.append('register') You can register users and set a password for them using appadmin or implement your own page that contains form=crud.create(db.auth_user,onaccept=send_email) where send email will tell the user to click on change pas

[web2py] Re: ajax widget - asynchronously updated

2010-07-13 Thread weheh
Massimo, does this solve the problem I'm having? I have a background queue serving an app. The ajax script should refresh the DIV to show the status of the item of interest whilst the item is on the queue. Once the item is processed, it's deleted from the queue and the output is to be displayed in

[web2py] Re: web2py Reference Manual -- a call to arms

2010-07-13 Thread weheh
Massimo, isn't epydocs more geared to the web2py developer than the user? I agree, embedding the user documentation into the code is desireable (write once, serve many). But, users and developers have differing needs and comprehension levels. If the output of epydocs can be optimized to also suppor

[web2py] Re: cube2py news

2010-07-13 Thread Scott
Massimo, I'll take a look at the arguments and instructions tomorrow and give you a report. Cheers, --Scott On Jul 13, 5:49 am, mdipierro wrote: > Please checkout cube2py again. Now it has two new features: > > 1) a button [widget builder] that allows you to build widgets from a > menu with aja

[web2py] Re: openwysiwyg?

2010-07-13 Thread Scott
Never used it.

Re: [web2py] Re: T2, T3, Cube2py ...

2010-07-13 Thread Thadeus Burgess
>> easier programming without coding. LOL =) Best un-intentional oxy-moron I have read in a while -- Thadeus On Tue, Jul 13, 2010 at 4:53 PM, mdipierro wrote: > This video is already obsolete: > >     http://www.vimeo.com/13154869 > > The goal is to build an additional layer on top of web2

[web2py] need help on managinge passwords by administrator

2010-07-13 Thread Frank
I try to manage the users' passwords by administrator,the rules are, users can not register by themself, only administrator can register.administrator set the password and send a email to user to provide a link,user click the link and login with the password that is prvovided in the email.users can

[web2py] Re: web2py Reference Manual -- a call to arms

2010-07-13 Thread mdipierro
I would look into the most common files globals.py html.py sql.py only stuff defined in these files is exposed to users. The rest is all internals. On 13 Lug, 17:31, Bruno Rocha wrote: > Massimo, could you provide a list with reference to the files that need docs? > any way or idea, to separate

Re: [web2py] Re: Can web2py be used as a node in a P2P app or store data in a DHT?

2010-07-13 Thread Luis Díaz
ask You can create an intranet-style distributed in web2py p2p? Each client node is connected to the primary node and stores your content: reference bone contents (not the full content) client nodes are connected to the main content to search and locate the reference of closest nodes which serve

[web2py] Re: i need help

2010-07-13 Thread sarsar
My problem probably is that i dont know python well to construct the function . Following all examples and some examples from the appliances , ii have a working program , based on the radio example of yours, but no cimilar example or discussion inside the group , for what i am trying to do . def

[web2py] Re: how to make a sql query with os.system

2010-07-13 Thread mmartinez
web2py to do so import os command="psql -U marcelo -c select call_inicio,call_duracion,call_timedura,call_num_destino,call_dialstatus,call_valor,call_ip from llamadas_moviles WHERE call_fecha >= '2010-7-5' and call_fecha <= '2010-7-11' order by call_inicio" chips > /var/www/downloads/ 13072010.csv

Re: [web2py] Re: oauth

2010-07-13 Thread Michele Comitini
:O ok i put myself into troubles ;-) 2010/7/13 mdipierro > I'll wait for a patch then. ;-) > > On 13 Lug, 15:54, Michele Comitini wrote: > > Hi Massimo, > > > > From my experience with facebook auth, I am quite confident that a login > > method can made a generic OAuth 2.0 without introducing

Re: [web2py] Re: web2py Reference Manual -- a call to arms

2010-07-13 Thread Bruno Rocha
Massimo, could you provide a list with reference to the files that need docs? any way or idea, to separate, distribute the tasks, manage the versions and make the moderation of docstrings. I can help with that, a little every day, I reserve some hours of my day for this task, it would be interesti

[web2py] Re: Upgrade web2py now(from 1.76.3 to 1.80.1)

2010-07-13 Thread Jeff S
Microsoft Windows XP, Professional Version 2002 Service Pack 3 I will re-install web2py. Thanks,

[web2py] Re: i need help

2010-07-13 Thread sarsar
sory i pressed wrong button . I sent my message to you , so probably i have to responde again On 14 Ιούλ, 00:34, mdipierro wrote: > say you have this > > create_by=Field('created_by',db.auth_user,default=auth.user_id,writable=False,label=T('created > by') > > db.define_table('atable,Field('da

Re: [web2py] Re: openwysiwyg?

2010-07-13 Thread Stef Mientki
On 13-07-2010 23:07, Pepe wrote: > never used it. and how many people do you think are interested in what else you didn't do ? cheers, Stef

[web2py] how to make a sql query with os.system

2010-07-13 Thread mmartinez
the console is: psql -U marcelo -c "select call_inicio, call_duracion, call_timedura, call_num_destino, call_dialstatus, call_valor, call_ip from llamadas_moviles WHERE call_fecha >= '2010-7-5' and call_fecha <= '2010-7-11' order by call_inicio" chips > /var/www/downloads/ 13072010.csv as serious

Re: [web2py] Re: openwysiwyg?

2010-07-13 Thread Albert Abril
Me neither. On Tue, Jul 13, 2010 at 11:07 PM, Pepe wrote: > never used it. > > On Jul 13, 4:55 pm, Chris S wrote: > > Ditto, never used it > > > > On Jul 13, 3:50 pm, Bruno Rocha wrote: > > > > > > > > > Never used it > > > > > 2010/7/13 MikeEllis : > > > > > > FWIW, openwysiwyg doesn't work i

[web2py] Re: cube2py news

2010-07-13 Thread mdipierro
let me add, the point for using markmin is that you cannot add whitespaces arbitrarily but have to hanlde spaces via css. On 13 Lug, 17:07, Chris S wrote: > Ah great, you're correct GAE does not start at id==1 (or it doesn't > guarantee it). > > Any chance we could make the 'editor' group a varia

[web2py] Re: cube2py news

2010-07-13 Thread mdipierro
You can override the default behavior, just set in db.py plugin_wiki_editor = . your condition You cannot insert white spaces in markmin unless you do `` ``:template but it is horrible. On 13 Lug, 17:07, Chris S wrote: > Ah great, you're correct GAE does not start at id==1 (or it d

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
Ah great, you're correct GAE does not start at id==1 (or it doesn't guarantee it). Any chance we could make the 'editor' group a variable so that when importing it into existing applications we can set the name to be that of an already created 'admin' group? Another thing I've been doing recently

[web2py] Re: web2py Reference Manual -- a call to arms

2010-07-13 Thread mdipierro
That is the problem. for people who seriously want to help. Setting up another wiki is not help. Instead, adopt a web2py file, add docstrings to all functions. On 13 Lug, 16:38, ra3don wrote: > Yeah i noticed its a little hard to comprehend sometime if you have no > idea whats going on. Some ent

[web2py] Re: T2, T3, Cube2py ...

2010-07-13 Thread mdipierro
This video is already obsolete: http://www.vimeo.com/13154869 The goal is to build an additional layer on top of web2py that would allow: - easier programming without coding - integrate some content management functionality - could potentially become a new welcome (scaffolding) app T2,T3,Cu

[web2py] Re: ajax widget - asynchronously updated

2010-07-13 Thread mdipierro
The simplest solution is that you get generic.load from 1.80.1 and you replace function refreshWidget() { ajax('refresh_widget', [], 'mywidget'); } with function refreshWidget() { ajax('refresh_widget.load', [], 'mywidget'); } On 13 Lug, 16:46, Tomas Pelka wrote: > Thank you very much

[web2py] Re: Upgrade web2py now(from 1.76.3 to 1.80.1)

2010-07-13 Thread mdipierro
I think this is a file permission issue. You are upgrading using the [upgrade now] button and it is not letting overwrite a file that is in use. This is a bug in the [upgrade] mechanism on windows (which version do you have?). For now just download 1.80.1 manually and unzip the new one over the ol

[web2py] Re: web2py Reference Manual -- a call to arms

2010-07-13 Thread ra3don
Yeah i noticed its a little hard to comprehend sometime if you have no idea whats going on. Some entries don't have descriptions at all, just leaves you scratching your head. On Jul 12, 10:25 pm, weheh wrote: > @MDP: No reason for GAE in particular other than it's free initially > and because it'

[web2py] Re: i need help

2010-07-13 Thread mdipierro
say you have this create_by=Field('created_by',db.auth_user,default=auth.user_id,writable=False,label=T('created by') db.define_table('atable,Field('data'),created_by) you can retrieve rows created by the current user with rows=db(db.atable.created_by==auth.user_id).select() On 13 Lug, 16:

[web2py] Upgrade web2py now(from 1.76.3 to 1.80.1)

2010-07-13 Thread Jeff S
Is there any known caveats to upgrade web2py from from 1.76.3 to 1.80.1? I get the following error: unable to upgrade because "[Errno 13] Permission denied: 'D:\\Inbox\ \Web2py\\web2py/MSVCR71.dll'" Thanks,

[web2py] T2, T3, Cube2py ...

2010-07-13 Thread Jeff S
Hi, I'm not sure I understand all of this T2 T3 and Cube2py stuff. I have recently installed web2py(1.76.3) on my computer and I read somewhere that T2, T3 are deprecated and Cube2py would be the new stuff. But what is T2 and T3 anyway? Is it like project code names that were included in web2py

[web2py] i need help

2010-07-13 Thread sarsar
Hi , maybe because it is to late here , or because i am rather old and slow learning , i am in front of a problem i cannot find the solution . As i dont now python , i cannot combine something that logicaly is very simple and easy to do , but i can find the correct code to do it . I declare a ca

[web2py] Re: storing hierarchical data in web2py database

2010-07-13 Thread sociotech
You might want to check out Massimo's code for Modified Preorder Tree Traversal, which is an extremely efficient way of storing tree structures in a database: http://groups.google.com/group/web2py/browse_thread/thread/70efddab62dfe73 On Jul 13, 11:59 am, "topher.baron" wrote: > I'm looking forwa

Re: [web2py] Re: loop generated forms

2010-07-13 Thread Jonathan Lundell
On Jul 13, 2010, at 1:56 PM, Rick wrote: > This gives no error: > dict()[x] = [x] > ..but my web page is still not shown in the browser, it's just printed > "None". Maybe the controller-file-code is correct but something should > be added to the view file? It's not at all clear what you're trying

[web2py] Re: oauth

2010-07-13 Thread mdipierro
I'll wait for a patch then. ;-) On 13 Lug, 15:54, Michele Comitini wrote: > Hi Massimo, > > From my experience with facebook auth,  I am quite confident that a login > method can made a generic OAuth 2.0 without introducing dependencies on > httplib and oauth as the pointed in the article.  Web2p

[web2py] Re: openwysiwyg?

2010-07-13 Thread Pepe
never used it. On Jul 13, 4:55 pm, Chris S wrote: > Ditto, never used it > > On Jul 13, 3:50 pm, Bruno Rocha wrote: > > > > > Never used it > > > 2010/7/13 MikeEllis : > > > > FWIW, openwysiwyg doesn't work in Chrome. > > > Mike > > > > On Jul 13, 1:19 pm, Jean-Guy wrote: > > >> Never used it!

[web2py] Re: cube2py news

2010-07-13 Thread mdipierro
The first user (id==1) is editor by default (but not on GAE). Create a group with role='editor' and make yourself member using appadmin. On 13 Lug, 13:11, Chris S wrote: > Ah it's an authorization thing. > > I can get myself to the the index page now, but I'm still not sure how > I make myself a

Re: [web2py] Re: Commenting system - Disqus/IntenseDebate

2010-07-13 Thread Thadeus Burgess
Pros: * Disqus is really easy to use and setup and include on your site. * Automatically emails you with comments, that you can respond to from your email client * You don't have to do anything but include the javascript on your page and include a page ID. Cons: * Reliant on disqus, their export

[web2py] Re: loop generated forms

2010-07-13 Thread Rick
This gives no error: dict()[x] = [x] ..but my web page is still not shown in the browser, it's just printed "None". Maybe the controller-file-code is correct but something should be added to the view file? On Jul 13, 12:19 am, Jonathan Lundell wrote: > On Jul 12, 2010, at 3:04 PM, Rick wrote: > >

[web2py] Re: openwysiwyg?

2010-07-13 Thread Chris S
Ditto, never used it On Jul 13, 3:50 pm, Bruno Rocha wrote: > Never used it > > 2010/7/13 MikeEllis : > > > FWIW, openwysiwyg doesn't work in Chrome. > > Mike > > > On Jul 13, 1:19 pm, Jean-Guy wrote: > >> Never used it! > > >> Jonhy > > >> On 2010-07-13 13:02, mdipierro wrote: > > >> > on a vie

Re: [web2py] oauth

2010-07-13 Thread Michele Comitini
Hi Massimo, >From my experience with facebook auth, I am quite confident that a login method can made a generic OAuth 2.0 without introducing dependencies on httplib and oauth as the pointed in the article. Web2py has already everything needed. ciao, mic 2010/7/13 mdipierro > I need a modifi

Re: [web2py] Re: openwysiwyg?

2010-07-13 Thread Bruno Rocha
Never used it 2010/7/13 MikeEllis : > FWIW, openwysiwyg doesn't work in Chrome. > Mike > > On Jul 13, 1:19 pm, Jean-Guy wrote: >> Never used it! >> >> Jonhy >> >> On 2010-07-13 13:02, mdipierro wrote: >> >> >> >> > on a view [htmledit]. Do you use it? -- http://rochacbruno.com.br

[web2py] Re: openwysiwyg?

2010-07-13 Thread MikeEllis
FWIW, openwysiwyg doesn't work in Chrome. Mike On Jul 13, 1:19 pm, Jean-Guy wrote: > Never used it! > > Jonhy > > On 2010-07-13 13:02, mdipierro wrote: > > > > > on a view [htmledit]. Do you use it?

[web2py] Re: storing hierarchical data in web2py database

2010-07-13 Thread topher.baron
I'm looking forward to it. On Jul 13, 1:12 pm, Vasile Ermicioi wrote: > I am developing a solution for my needs, something similar to nested sets, > if you could wait a few days I think I will be able to share it

Re: [web2py] storing hierarchical data in web2py database

2010-07-13 Thread Vasile Ermicioi
I am developing a solution for my needs, something similar to nested sets, if you could wait a few days I think I will be able to share it

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
Ah it's an authorization thing. I can get myself to the the index page now, but I'm still not sure how I make myself a 'plugin_wiki_editor' I tried creating a group of that name and using appadmin to add my login to that group but that didn't work. Maybe I'm missing something easy, or maybe the f

[web2py] storing hierarchical data in web2py database

2010-07-13 Thread topher.baron
I need to store tree information in a database. For each node in the tree, there are multiple rows that need to be inserted into a couple of database tables. I'm under the impression that calling a recursive function that iterates through the tree to insert the appropriate rows for each node will

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
I also meant to ask, does plugin_wiki just come with cube2py? Can it also be downloaded somewhere separately? I thought it could, but I can't find it anwywhere. Can someone point me to where plugin_wiki is? On Jul 13, 12:39 pm, Chris S wrote: > I just loaded the latest trunk, and the latest cub

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
I just loaded the latest trunk, and the latest cube2py at: https://cube2py.googlecode.com/hg/cube2py I cleared the datastore and memcache then pointed my browser to 127.0.0.1:8080/cube2py I get the login screen, but when I try to register I get a 404. The entire log from the initial page view to

Re: [web2py] Re: openwysiwyg?

2010-07-13 Thread Jean-Guy
Never used it! Jonhy On 2010-07-13 13:02, mdipierro wrote: on a view [htmledit]. Do you use it?

[web2py] Re: oauth

2010-07-13 Thread ChrisM
+1 I am still using web2py1.73 as when I try and upgrade web2py the rpxauth.py module i am using throws an error because storage.py and restricted.py must have changed. error: self.setting.rpx_key does not exist It would be good to have a module that allowed for users to log in from social apps

[web2py] generic.load

2010-07-13 Thread mdipierro
BTW since 1.80.1 welcome include a generic.load what is it? Say you have def someaction(): """ any action """ return dict(form=crud.create(db.mytable)) which may or may not have a view. And you have another action def index(): return dict() with its own view {{ex

[web2py] Re: openwysiwyg?

2010-07-13 Thread mdipierro
There is both a texteditor (editarea) and an html editor (openwysiwyg). I am only talking about the latter. You see if you click on a view [htmledit]. Do you use it? On 13 Lug, 11:55, Jean-Guy wrote: > On 2010-07-13 12:50, mdipierro wrote:> d making admin lighter. Anybody > opposed? > > Do you m

[web2py] Re: translation data in a database

2010-07-13 Thread max
thanks a lot. On 12 Jul., 00:22, mdipierro wrote: > My advice it keep using the web2py translation but create a database > copy and work on it. > This may be useful > web2py/scripts/sync_languages.py > > On 11 Lug, 17:16, max wrote: > > > thanks for the reply. > > I have lots of small data tabl

Re: [web2py] openwysiwyg?

2010-07-13 Thread Jean-Guy
On 2010-07-13 12:50, mdipierro wrote: d making admin lighter. Anybody opposed? Do you mean the text editor built in web2py?? I use it! Jonhy

[web2py] Re: crud.update not updating image correctly?

2010-07-13 Thread Rob
any word on getting SQLFORM to work correctly? it doesn't work in Version 1.80.1 form = SQLFORM(db.Item, item, upload=URL(r=request,f='download'), deletable=True, next=URL(r=request, args=item)) On Jul 11, 12:16 am, Rob wrote: > FYI, the problem also appears when using SQLFORM.  Your fix wo

[web2py] openwysiwyg?

2010-07-13 Thread mdipierro
Does anybody use openwysiwyg that ships with admin? I am thinking about removing it and making admin lighter. Anybody opposed?

[web2py] Re: new welcome app in trunk

2010-07-13 Thread mdipierro
I posted a lot of junk accidentally. Thanks to Jonathan for pointing it out. It should now be cleaned up. On 13 Lug, 11:20, Júlio Monteiro wrote: > Good news, Massimo! > > This new welcome app will be much more appealing for prototyping and simple > applications. > In my humble opinion, plugin_wi

Re: [web2py] new welcome app in trunk

2010-07-13 Thread Júlio Monteiro
Good news, Massimo! This new welcome app will be much more appealing for prototyping and simple applications. In my humble opinion, plugin_wiki should be on by default specially because it will give cube2py more visibility and more opportunities for others to contribute to it. Cheers, Julio Monte

[web2py] oauth

2010-07-13 Thread mdipierro
I need a modified version of gluon/contrib/login_methods/linkedin_account.py that works with oauth as explained here http://dougwarren.org/2010/06/oauth-and-web2py-part-1/, is integrated with web2py auth as linkedin_account.py, but also works out of the box with facebook and twitter. If you

[web2py] Re: Fastcgi vs uwsgi

2010-07-13 Thread mdipierro
Can you please contact the authors of that message and let them know? On 13 Lug, 10:51, Jose wrote: > The following was taken from [1]. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - - - - > Web2Py > > web2py does not work well on

[web2py] Re: Fastcgi vs uwsgi

2010-07-13 Thread Jose
The following was taken from [1]. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Web2Py web2py does not work well on multiple application environment so you have to use it as the only WSGI application of the uWSGI server. Use thi

Re: [web2py] Re: crud.update strange behavior

2010-07-13 Thread Jean-Guy
Ok I short my function for more clarity there is a else clause for the first if in the original function... And I found a solution see my foward. Jonhy On 2010-07-13 11:28, mdipierro wrote: if is false and the second it true?

[web2py] new welcome app in trunk

2010-07-13 Thread mdipierro
I have posted a new welcome app in trunk. - it is very simple and should be easier to cutomize - the layout uses ez.css (as before) but this has been included in base.css - the css (base.css) is smaller than before but it is now documented (it separates layout from color info) - uses superfish.js

[web2py] Re: crud.update strange behavior

2010-07-13 Thread mdipierro
No. There are lots of errors in the code mostly here: if auth.has_membership(auth.id_group('tech')): form = crud.create(db.atable) ... if form.accepts(request.vars, session): 1) you cannot form.accept a crud form. crud forms already accept internally. 2) even if you us

[web2py] Re: user registration approval - how to get email about new wating registration?

2010-07-13 Thread mdipierro
auth.settings.registration_onaccept=lambda form: mail.send(.) On 13 Lug, 07:53, David Marko wrote: > Hello, > in my app I would like to use registration, that will require admin > approval. > ( auth.settings.registration_requires_approval = True ). Is there a > way, how to get information( e.

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-13 Thread mdipierro
I found restructured text to be too complex to parse. On 13 Lug, 07:50, Timmie wrote: > Hello, > cube2py looks awesome. > > > It uses markmin: > > > - > >    http://web2py.com/examples/static/markmin.html > > - > > I wonder why the syntax was not derived from restructured text or > alike?

[web2py] Re: Wing IDE / GAE / breakpoints not getting hit for "exec" code

2010-07-13 Thread NickFranceschina
thanks but this doesn't help me... 1) I'm using Wing 2) I'm trying to debug using GAE's dev_appserver.py Wing debugs fine if I use web2py's web server... but when run on GAE, Web2py has that extra code to cache files by key... and the path gets screwed up. Are you debugging against GAE's dev_

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jonathan Lundell
On Jul 13, 2010, at 7:57 AM, Jean-Guy wrote: > It had a the auth bar in the body of the views I put it into... > > The profile button is still in the navigatio bar and the bar is duplicate. > > It not replacing the original bar, not sure that was the goal... I haven't been following this threa

[web2py] Fwd: crud.update strange behavior

2010-07-13 Thread Jean-Guy
Ok forget it I got it what my mistake : db.atable.initials.update=auth.user and auth.user.initials db.atable.initials_date.update=request.now Jonhy Original Message Subject:crud.update strange behavior Date: Tue, 13 Jul 2010 10:49:00 -0400 From: Jean

[web2py] Re: cube2py news

2010-07-13 Thread selecta
no really wysiwyg? you are my HERO :D On Jul 13, 12:05 pm, mdipierro wrote: > It would be nice it were possible to modify elRTE to allow > 1) not adding <..> tags inside ``...``:widget blocks > 2) call the widget builder from inside elRTE. > > On 13 Lug, 04:49, mdipierro wrote: > > > > > Please

[web2py] login_methods/linkedin_account.py error

2010-07-13 Thread selecta
I tried to import gluon.contrib.login_methods.linkedin_account and got File "/.../web2py/gluon/contrib/login_methods/linkedin_account.py", line 45 profile = api.GetProfile(profile.public_url = "http:// www.linkedin.com/in/ozgurv") SyntaxError: keyword can't be an expression

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
It had a the auth bar in the body of the views I put it into... The profile button is still in the navigatio bar and the bar is duplicate. It not replacing the original bar, not sure that was the goal... Jonhy On 2010-07-13 10:25, Jonathan Lundell wrote: On Jul 13, 2010, at 6:52 AM, Jean-Guy

[web2py] crud.update strange behavior

2010-07-13 Thread Jean-Guy
Hello, I would like to make sure if it is my function that is not correct or the crud.update behavior... Here are my create function and update fuction : @auth.requires_login() def create(): if auth.has_membership(auth.id_group('tech')): form = crud.create(db.atable) db.at

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jonathan Lundell
On Jul 13, 2010, at 6:52 AM, Jean-Guy wrote: > The : >{{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} Try f='user' (not c=). > > Not working : > > Traceback (most recent call last): > File "/nigthly_build/web2py/gluon/restricted.py", line 176, in restricted > ccode

[web2py] Web2py Application Exhibition - 2 weeks left

2010-07-13 Thread NetAdmin
Web2py Application Exhibition Do you have a Web2py app that you'd like to show the world? If so, you may be interested in the Web2py Application Exhibition. The WAE is a way to... 1. Demonstrate what can be done with Web2py. 2. Share and learn about useful web2py, python, Javascript, jQuery etc.

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
The : {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} Not working : Traceback(most recent call last): File"/nigthly_build/web2py/gluon/restricted.py",line176,inrestricted ccode=compile2(code,layer) File"/nigthly_build/web2py/gluon/restricted.py",line163,incompile2

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
Ok I think I miss understand for now I use this line : {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} In the view... And in the trunk only this line will be necessary auth.settings.actions_disabled.append('profile') ?? Jonhy PS.: The nigthly build no seems to contain

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
Hello, Is the mod you made is in the nightly build now? Jonhy On 2010-07-12 18:22, mdipierro wrote: if in the view you use {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} then I just added some code to trunk so that if auth.settings.actions_disabled.append('profile')

[web2py] user registration approval - how to get email about new wating registration?

2010-07-13 Thread David Marko
Hello, in my app I would like to use registration, that will require admin approval. ( auth.settings.registration_requires_approval = True ). Is there a way, how to get information( e.g. by email message) that someone did registration and is waiting on my admin approval? Thanks your for you info,

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-13 Thread Timmie
Hello, cube2py looks awesome. > It uses markmin: > > - >    http://web2py.com/examples/static/markmin.html > - I wonder why the syntax was not derived from restructured text or alike?

Re: [web2py] Best way for a config file

2010-07-13 Thread Mathieu Clabaut
I use http://web2pyslices.com/main/slices/take_slice/88 Which allows the admin to change config on the fly by updating the database values. On Tue, Jul 13, 2010 at 09:06, Narendran wrote: > Hi, > I have been trying to work without a config file, but it is a little > difficult to work across

[web2py] Re: cube2py news

2010-07-13 Thread mdipierro
It would be nice it were possible to modify elRTE to allow 1) not adding <..> tags inside ``...``:widget blocks 2) call the widget builder from inside elRTE. On 13 Lug, 04:49, mdipierro wrote: > Please checkout cube2py again. Now it has two new features: > > 1) a button [widget builder] that all

[web2py] Re: new welcome (scaffolding) app

2010-07-13 Thread mdipierro
The list of options is a possibility but add complexity to the code. How about? 1) a new layout 2) jquery + js menu 3) everything else in a plugin can can be removed Massimo On 13 Lug, 04:47, Nicol van der Merwe wrote: > On Sat, Jul 10, 2010 at 2:28 AM, Bruno Rocha wrote: > > Is there any chan

[web2py] cube2py news

2010-07-13 Thread mdipierro
Please checkout cube2py again. Now it has two new features: 1) a button [widget builder] that allows you to build widgets from a menu with ajax popup. It could not get easier. I could use somebody to go over the list of arguments and instructions shown in the builder to make sure they are consist

Re: [web2py] new welcome (scaffolding) app

2010-07-13 Thread Nicol van der Merwe
On Sat, Jul 10, 2010 at 2:28 AM, Bruno Rocha wrote: > Is there any chance to have that options for choose just at the moment > of app creation? > > we put the name for the application, then check what do we want to have > within. > > May be choosing a completely blank new app or a complete one,

[web2py] Re: Help in getting csv-download to work

2010-07-13 Thread mdipierro
Thanks for your questions. I am sure it helps clarify this to other users as well. Massimo On 13 Lug, 04:13, Johann Spies wrote: > On 13 July 2010 00:07, mdipierro wrote: > > > This your actions > > > def evaluation_data(): > ... > >    if form.accepts(request.vars, session): > >        redirec

Re: [web2py] Re: Help in getting csv-download to work

2010-07-13 Thread Johann Spies
On 13 July 2010 00:07, mdipierro wrote: > This your actions > > def evaluation_data(): ... >    if form.accepts(request.vars, session): >        redirect(URL(r=request, > f='search_filled_in_forms',vars=request.vars)) > > IT DOES NOT DEFINE rows Correct, it was defined in the redirected funct

[web2py] Re: Commenting system - Disqus/IntenseDebate

2010-07-13 Thread mdipierro
I do not know about them but I have these http://web2py.com/plugins/default/comments http://web2py.com/plugins/default/simple_comments Other users have other systems On 13 Lug, 03:11, Narendran wrote: > Hi, > I'm about to add commenting system to my site I've developed using > web2py. I'd like

[web2py] Commenting system - Disqus/IntenseDebate

2010-07-13 Thread Narendran
Hi, I'm about to add commenting system to my site I've developed using web2py. I'd like to hear opinions regarding integrating Disqus, or IntenseDebate, if someone has already done this. If there is some native web2py widget, I'd like to try that as well. I could not hit any on googling for one. -

[web2py] Re: loop generated forms

2010-07-13 Thread JmiXIII
Try to use : return dict (a=b) Maybe you need to have a look there : http://docs.python.org/library/stdtypes.html#dict On 13 juil, 00:19, Jonathan Lundell wrote: > On Jul 12, 2010, at 3:04 PM, Rick wrote: > > > Thanks for your inspiring answer, > > > After I found this page: > >http://code.activ

[web2py] Re: Best way for a config file

2010-07-13 Thread mdipierro
This is what I do. I create a model called 0.py and in it I put from gluon.storage import Storage settings=Storage() settings.production=False settings.email_sender=...' settings.email_hostname='' # any other parameter I need On 13 Lug, 02:06, Narendran wrote: > Hi, > I have been trying to

[web2py] Best way for a config file

2010-07-13 Thread Narendran
Hi, I have been trying to work without a config file, but it is a little difficult to work across multiple (dev, test and prod) envs. I'd like to know the solution if this has been already discussed: 1. The db configuration in db.py changes in dev, test and prod env. 2. App name changes in differen

[web2py] Re: Can web2py be used as a node in a P2P app or store data in a DHT?

2010-07-13 Thread mdipierro
This can be done. I am very much interested in having this done. My idea is building a distributed news delivery network. Anybody can run and advertise a news web site. Every local installation would have local ads and the right to post news and vote for news. But news are not stored locally (only

[web2py] Re: Minor bug?

2010-07-13 Thread Massimo Di Pierro
Please check if this is fixed in trunk. On Jul 13, 2010, at 1:11 AM, Rāma wrote: Hi Massimo, I got this error when trying to rename a field from enrollable_by_Guest to enrollable_by_guest I am not sure wether it's suppose to behave that way. But, now it seems I can't rename it to the one I