[web2py:26883] Re: running doctests for applications\admin from commandline

2009-07-18 Thread mdipierro
We could but that is not so much the issue here. The issue here admin request an environment. A test does not provide a default environment. If you want to test admin we should add if not request.env: request.env=Storage({}) and fill the ... Massimo On Jul 19, 1:42 am, Hans Donner wr

[web2py:26882] Re: why would response.write() insert "None" into output?

2009-07-18 Thread mdipierro
On Jul 19, 1:32 am, Dan wrote: > I'm putting together a quick routine to assemble a horizontal menu bar > in my layout.html file (does one already exist? I only saw the one > called MENU() to create vertical menus). Yes, {{=MENU(response.menu,_class="web2py-menu web2py-menu-horizontal")}} I

[web2py:26881] Re: running doctests for applications\admin from commandline

2009-07-18 Thread Hans Donner
Perhaps we should have a setting indicatin if we are running in doctest mode, like we now have a gae mode. That way we can safely work around it. Or we can assume we are in such mode if some paramaters are empty, but that does not feel right. On Sun, Jul 19, 2009 at 01:35, mdipierro wrote: > > ad

[web2py:26880] why would response.write() insert "None" into output?

2009-07-18 Thread Dan
I'm putting together a quick routine to assemble a horizontal menu bar in my layout.html file (does one already exist? I only saw the one called MENU() to create vertical menus). I thought it would be a simple map-reduce operation, but I'm getting a strange result. Here is the code in my view file

[web2py:26879] Re: Create file on the fly for downloadling

2009-07-18 Thread Yarko Tymciurak
Glad to hear it worked for you... I saw they were active, had a presentation at Europython just last month... 2009/7/19 陶艺夫 > Thank Yarko! > It worked when I changed to use xlwt. :) > I love this group for it's so helpful. > > 2009/7/19 Yarko Tymciurak > > Have you looked at xlwt http://www.py

[web2py:26878] Re: Custom SQLFORM problem

2009-07-18 Thread 陶艺夫
It seems make sense. But what I did was following the guide of the "Web2Py" book written by the web2py author. Why all response's messages have to be sent to response.flash? I have a message bar in the view where I get the messages by using {{response.message}} which will disapear in 3 seconds. I'l

[web2py:26877] Re: Create file on the fly for downloadling

2009-07-18 Thread 陶艺夫
Thank Yarko! It worked when I changed to use xlwt. :) I love this group for it's so helpful. 2009/7/19 Yarko Tymciurak > Have you looked at xlwt http://www.python-excel.org/ --- > https://secure.simplistix.co.uk/svn/xlwt/trunk ? > > It claims to have fixed bugs w/ PyExelerator; see > https://sec

[web2py:26876] Re: HOW2Py

2009-07-18 Thread mdipierro
I think users are better off people creainge content the way that works for them. Aggregating content in one place and one format is not that difficult (if they want us to do so). So far only Tim and Hans has demonstrated proficiency with Sphinx syntax and it has been a roadblock for me too. Mas

[web2py:26875] Re: How to properly remove a user in Auth.

2009-07-18 Thread mdipierro
It should be ok to just delete the user from the database. given the user id, you may also want to delete db(db.auth_group.role=='user_%s'%id).delete() db(db.auth_membership.user_id==id).delete() On Jul 18, 11:42 pm, Jason Brower wrote: > What is the proper way to remove a user with the Auth me

[web2py:26874] Re: HOW2Py

2009-07-18 Thread Francisco Gama
... for each tutorial, article, script, whatever we shouldn't be creating a new engine, tool, daemon whatever to support it... before things get messy couldn't all this be included in the wiki? or with that ReST convention mentioned previously? thanks, good idea btw On Jul 19, 4:04 am, Yarko Ty

[web2py:26873] How to properly remove a user in Auth.

2009-07-18 Thread Jason Brower
What is the proper way to remove a user with the Auth method? I could just delete them from the database. But I don't know about all the connection they may have. Is there something built in to auth for this? Perhaps it should be part of their edit profile page? Best Regards, Jason --~--~---

[web2py:26872] Re: Index Error on GAE

2009-07-18 Thread Tito Garrido
Sorry folks I didn't update this thread... I still have this index problems... the field type is "date". It doesn't get auto generated so I've put it manually on index.yaml... on appspot I can see: product featured ▲ , added_on ▼ Building How much time should I wait to it changes to serving?

[web2py:26871] Re: Create file on the fly for downloadling

2009-07-18 Thread Yarko Tymciurak
Have you looked at xlwt http://www.python-excel.org/ --- https://secure.simplistix.co.uk/svn/xlwt/trunk ? It claims to have fixed bugs w/ PyExelerator; see https://secure.simplistix.co.uk/svn/xlwt/trunk/xlwt/doc/xlwt.html the Workbook.save() function says it will save to a stream, such as StringI

[web2py:26870] Re: Create file on the fly for downloadling

2009-07-18 Thread 陶艺夫
Thank you for replying. It still does't work. In pyExcelerator, the file object opened to write to is a binary file(opened with "wb" attribute). I don't know whether the StringIO can handle its content as binary data. If it do, how? Or is there something other than StringIO to do so in Python? 20

[web2py:26869] web2py-developers again

2009-07-18 Thread mdipierro
If you have contributed to web2py (source code, documentation, promotion, testing, debugging) please ask to join http://groups.google.com/group/web2py-developers Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[web2py:26868] Re: Select from database with multiple criteria

2009-07-18 Thread ionel
Thank you for your suggestions. An acceptable solution (for me): def sql_query_with_and(query1, query2): if (None == query2): return query1 else: return query1 & query2 query = None if (None != field1_value): query = (db.table.field1 == field1_value) if (None != fi

[web2py:26867] Re: HOW2Py

2009-07-18 Thread Yarko Tymciurak
Ok - so I think what you're saying is you plan to make "regular" docs and make them available thru some webinar / slide-show hosting site, like these I suppose I get the concept. So, you will index and reference these as people load things up everywhere - is that the idea? On Sat, Jul 18, 20

[web2py:26866] Re: HOW2Py

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 9:41 PM, gluegl wrote: > > I personally favor SlideShare, ScribD, DocStoc, Vimeo, Truveo/ > YouTube... > However every is encourage to contribute in whatever manner they feel > they can do the best job at it. > At least something positive is being done, which a great step

[web2py:26865] Re: HOW2Py

2009-07-18 Thread mdipierro
> However every is encourage to contribute in whatever manner they feel > they can do the best job at it. > At least something positive is being done, which a great step in the > right direction. +1 --~--~-~--~~~---~--~~ You received this message because you are su

[web2py:26864] Re: HOW2Py

2009-07-18 Thread gluegl
I personally favor SlideShare, ScribD, DocStoc, Vimeo, Truveo/ YouTube... However every is encourage to contribute in whatever manner they feel they can do the best job at it. At least something positive is being done, which a great step in the right direction. -G On Jul 18, 5:43 pm, Yarko Tymciu

[web2py:26862] Re: Create file on the fly for downloadling

2009-07-18 Thread mdipierro
Try replace f.seek(0) return f.read() with return f.getvalue() if it does not work than it is a PyExelerator issue On Jul 18, 8:32 pm, 陶艺夫 wrote: > Hi, all friends. > I'm using PyExelerator to create Excel report for users to download. I tried > to save the Workbook object to a S

[web2py:26863] Re: Select from database with multiple criteria

2009-07-18 Thread Yarko Tymciurak
since form.vars holds validated request.vars, after form.accepts( ), look at the structure of your form.vars, and then you'll see what you need to do to build up your query from the user response. you can show them in your page, for development, with {{=BEAUTIFY(form.vars)}} and compare that wit

[web2py:26861] Re: Select from database with multiple criteria

2009-07-18 Thread mdipierro
sorry. you can but it really depends on details. In db(query).select() query is a variable and you can do query=query1&query2 or query=query1|query2 query1 can be db[table][field]==value you can combine and build them as you wish in a loop. How you do this in practice depends on the represe

[web2py:26860] Create file on the fly for downloadling

2009-07-18 Thread 陶艺夫
Hi, all friends. I'm using PyExelerator to create Excel report for users to download. I tried to save the Workbook object to a StringIO which is said a file-like object, but the result is an empty file. Following are the codes: def get_report(): # generating workbook codes f = StringIO

[web2py:26859] Re: Select from database with multiple criteria

2009-07-18 Thread ionel
I think I wasn't clear. The user can make any selection to search the database. Search Form example: [*] field1 = some_value1 [ ] field2 [*] field3 = some_value2 [ ] field4 [ ] field5 [ ] field6 etc. So, for this situation: query = (db.table.field1=='some_value1')& (db.table.field3=='same_value

[web2py:26858] Re: Select from database with multiple criteria

2009-07-18 Thread mdipierro
yes db(db.table.field0=='somevalue').select (db.table.field1,db.table.field2,orderby=db.table.field3) On Jul 18, 7:58 pm, ionel wrote: > Just to be more clear. The user can select multiples fields, from one > to all. > > On Jul 18, 8:55 pm, ionel wrote: > > > Hello everyone, > > > I have a t

[web2py:26857] Re: Select from database with multiple criteria

2009-07-18 Thread ionel
Just to be more clear. The user can select multiples fields, from one to all. On Jul 18, 8:55 pm, ionel wrote: > Hello everyone, > > I have a table with multiples fields (20). The user can select the > fields for searching the table. He can select one field or all the > fields in any combination

[web2py:26856] Select from database with multiple criteria

2009-07-18 Thread ionel
Hello everyone, I have a table with multiples fields (20). The user can select the fields for searching the table. He can select one field or all the fields in any combination. I need to create a query with his selection. Is this thing possible in web2py but without using executesql() ? Thanks.

[web2py:26855] Re: Question about validation

2009-07-18 Thread Yarko Tymciurak
It is probably useful to repeat this from the book, for the community: When you think of dataflow, from your client to your persistent store: ".requires=..." is enforced at the level of forms; "required=True" is enforced by the DAL (prior to insert); "notnull", "unique", and "ondelete" is enfor

[web2py:26854] killer app idea

2009-07-18 Thread mdipierro
Another killer app I would like to see it this: A p2p news app. Imagine installing web2py and an app that allows you to select keywords of interest. the app connect to other apps of the same tipe via xmlrpc fetches recent news items that match your interests and serves them locally. You can bloc

[web2py:26853] Re: Question about validation

2009-07-18 Thread ionel
Thanks. It make sense. On Jul 18, 3:16 pm, Yarko Tymciurak wrote: > On Sat, Jul 18, 2009 at 1:00 PM, ionel wrote: > > > Hello, > > I have the following situation: > > > Model: > > > db.define_table('country', db.Field('country', 'string', length=50)) > > > db.define_table(region', > >       db.

[web2py:26852] Re: The 80/20 rule

2009-07-18 Thread mdipierro
LOL. On Jul 18, 5:42 pm, Hans Donner wrote: > my wish is that Yarko would be able to express himself in one mail > instead of several (in a short timeframe) :-) > > On Sun, Jul 19, 2009 at 00:38, Yarko Tymciurak wrote: > > I would add one more thing to my list (below): > > > On Sat, Jul 18, 2009

[web2py:26851] Re: running doctests for applications\admin from commandline

2009-07-18 Thread mdipierro
admin cannot be tested this way because assumes a request.env. request.env is empty when testing. On Jul 18, 5:57 pm, Hans Donner wrote: > when running: > > > python web2y.py --test=admin > > I get the tollowing output: > > Traceback (most recent call last): >   File "E:\dev\web2py\web2py\dev-te

[web2py:26850] Re: The 80/20 rule

2009-07-18 Thread waTR
Go Yarko! On Jul 18, 3:33 pm, Yarko Tymciurak wrote: > If you've never looked at this video, please do - it's about 1/2 hour but > worth the time (I just took it in pieces over the afternoon). > > From my notes: > > In this test, web2py would have came out on top (and understandably so). > > O

[web2py:26849] Re: The 80/20 rule

2009-07-18 Thread Hans Donner
assuming you saw my [-2:] ? On Sun, Jul 19, 2009 at 00:45, Yarko Tymciurak wrote: > deal with it.. > > On Sat, Jul 18, 2009 at 5:42 PM, Hans Donner wrote: >> >> my wish is that Yarko would be able to express himself in one mail >> instead of several (in a short timeframe) :-) > > > > > --~--~--

[web2py:26848] running doctests for applications\admin from commandline

2009-07-18 Thread Hans Donner
when running: > python web2y.py --test=admin I get the tollowing output: Traceback (most recent call last): File "E:\dev\web2py\web2py\dev-tests\web2py\gluon\restricted.py", line 178, in restricted exec ccode in environment File "applications\admin\models/access.py", line 27, in p

[web2py:26847] Re: The 80/20 rule

2009-07-18 Thread Yarko Tymciurak
deal with it.. On Sat, Jul 18, 2009 at 5:42 PM, Hans Donner wrote: > > my wish is that Yarko would be able to express himself in one mail > instead of several (in a short timeframe) :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:26846] Re: The 80/20 rule

2009-07-18 Thread Hans Donner
my wish is that Yarko would be able to express himself in one mail instead of several (in a short timeframe) :-) On Sun, Jul 19, 2009 at 00:38, Yarko Tymciurak wrote: > I would add one more thing to my list (below): > > On Sat, Jul 18, 2009 at 5:33 PM, Yarko Tymciurak wrote: >> >> If you've neve

[web2py:26845] Re: The 80/20 rule

2009-07-18 Thread Yarko Tymciurak
I would add one more thing to my list (below): On Sat, Jul 18, 2009 at 5:33 PM, Yarko Tymciurak wrote: > If you've never looked at this video, please do - it's about 1/2 hour but > worth the time (I just took it in pieces over the afternoon). > > From my notes: > > In this test, web2py would hav

[web2py:26844] Re: The 80/20 rule

2009-07-18 Thread Yarko Tymciurak
If you've never looked at this video, please do - it's about 1/2 hour but worth the time (I just took it in pieces over the afternoon). >From my notes: In this test, web2py would have came out on top (and understandably so). Opportunities for web2py (based on observing this video): - docs

[web2py:26843] Re: web2py-users and web2py-developers

2009-07-18 Thread Hans Donner
So far with web2py I have not seen this, and from Massimo's reply it is not the intention to do so. And seeing from this list, neither will the rest. And regarding contribution in source, Massimo will even block those that come from the 'developers' when they do not meet his criteria for web2py.

[web2py:26842] At least in Italy we are second

2009-07-18 Thread mdipierro
Hey, my fellow countrymen are having a poll: http://www.python-it.org/ (on the left column) Looks like at least there we are second so far. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py:26841] Re: HOW2Py

2009-07-18 Thread Yarko Tymciurak
Scribus (starting w/ 1.3.5 I think) also has rendered frames, e.g. LaTex Any reason you did not consider Sphinx? That gives indexs, searchability, both web and pdf presentation On Sat, Jul 18, 2009 at 4:36 PM, JohnMc wrote: > > Yarko, > > Well I have drafted my article using OOffice a

[web2py:26840] Re: web2py-users and web2py-developers

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 4:36 PM, mdipierro wrote: > > It is not my interest to keep the number of contributors low. Quite > the opposite. I do not think you will find anybody whose work has been > ignored. > > Nevertheless it is my interest to minimize changes to web2py. I need > people to help i

[web2py:26839] Re: HOW2Py

2009-07-18 Thread JohnMc
Yarko, Well I have drafted my article using OOffice and am preparing to publish in Scribus. Text/graphics format. I can embed a link to video. I don't know if I can embed video in a Scribus document but I will find out. Being the 'test subject' I fully expect a bunch of feedback. If the format i

[web2py:26838] Re: web2py-users and web2py-developers

2009-07-18 Thread mdipierro
It is not my interest to keep the number of contributors low. Quite the opposite. I do not think you will find anybody whose work has been ignored. Nevertheless it is my interest to minimize changes to web2py. I need people to help improve the docs, write tests, test more, make it look sleeker, w

[web2py:26837] Re: web2py-users and web2py-developers

2009-07-18 Thread mdipierro
I think I see Bottiger problem. He feels he cannot be in the web2py- developers list until he is a contributor and therefore, until then, he will not be able to contribute to some of the discussion. I want to clarify that this is not the case for the following reasons: anybody on the other list w

[web2py:26836] Re: web2py-users and web2py-developers

2009-07-18 Thread Bottiger
Having been somewhat experienced in the politics of open source, I cannot say this is the case. I have experienced occasions where useful contributions I have spent significant time working on ignored by the admins because they wanted to keep the number of contributors low, or they simply did not

[web2py:26835] Re: web2py-users and web2py-developers

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 3:21 PM, Bottiger wrote: > > I can't shake the feeling that I spurred this move. It was in the ecology already, naturally... > .. > I have had made code contributions to other open- > source projects, and I planned to for Web2Py but now it is looking > more diff

[web2py:26834] Re: web2py-users and web2py-developers

2009-07-18 Thread waTR
Bottiger, Wait and see. Don't give up just yet. You may find a diamond in this lump of coal yet. While it may seem like you won't be able to contribute, it is quite the contrary. You will be able to join forces with others making similar contributions and go on to do great things together. The d

[web2py:26833] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread Yarko Tymciurak
launchpad is slow; bazaar from launchpad is also slow... I will forage into mercurial on google code w/ web2conf project (which I told PyCon I'd have up / running in new version of web2py in the next weeks). On Sat, Jul 18, 2009 at 3:19 PM, mdipierro wrote: > > my problem with launchpad is t

[web2py:26832] Re: web2py-users and web2py-developers

2009-07-18 Thread Hans Donner
Bottiger, "and I planned to for Web2Py but now it is looking more difficult" in fact, it is not: you can still contribute what you want, you can still post it here or send it to massimo - please do so. Roadmap, or no roadmap; dev group or not. H On Sat, Jul 18, 2009 at 22:21, Bottiger wrote: >

[web2py:26831] Re: web2py-users and web2py-developers

2009-07-18 Thread Bottiger
I can't shake the feeling that I spurred this move. I might be a newcomer to Web2Py, but I have already sunk some time into studying Web2Py such as finding broken links on the main page and benchmarking the bundled version of flup (which should not be used in a production environment because of G

[web2py:26830] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread mdipierro
my problem with launchpad is that it is very slow compared with google groups. On Jul 18, 2:57 pm, Yarko Tymciurak wrote: > if we move to code.google.com in Aug / Sept, then we should look at that > issue tracker (I expect we should also get reviews tied to the issues > tracker and revisions  "f

[web2py:26829] Re: web2py-users and web2py-developers

2009-07-18 Thread mdipierro
We should not confuse freedom of expression with transparency and with democracy. You have freedom of expression here and people are not being censored for what they say. There is no plan to change that. You also have transparency. The web2py-developers list is world readable although it is new so

[web2py:26828] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread Yarko Tymciurak
if we move to code.google.com in Aug / Sept, then we should look at that issue tracker (I expect we should also get reviews tied to the issues tracker and revisions "for free")... For now, I think Google Groups (as Massimo suggested) is a good interim method, and is no change from what we've been

[web2py:26827] bogus tk message

2009-07-18 Thread Jonathan Lundell
On OS X 10.5, I see the following message on startup: please visit: http://127.0.0.1:8000 starting browser...in 5 seconds TkMacOSXDoHLEvent failed : cppe 1 ,kHighLevelEvent 61657674 tvea,-1708 This thread appears to be relevant, though there doesn't seem to be

[web2py:26826] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread Jason Brower
+1 on launchpad. I love the bug tracker. Not to mention the look and feel. :P On Sat, 2009-07-18 at 12:34 -0700, mdipierro wrote: > I would prefer to use google groups and/or launchpad instead of > hosting something myself. > > On Jul 18, 2:00 pm, Yarko Tymciurak wrote: > > Well - currently

[web2py:26825] Re: Issue with Mercurial

2009-07-18 Thread mdipierro
They must have chenged the API. I hate when an important project breaks backward compatibility. On Jul 18, 2:01 pm, vihang wrote: > thanks massimo, > > I did remove the debug=True and verbose=True to get it working. I > installed the latest version of Mercurial (1.3) and the API on its > wiki al

[web2py:26824] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread mdipierro
I would prefer to use google groups and/or launchpad instead of hosting something myself. On Jul 18, 2:00 pm, Yarko Tymciurak wrote: > Well - currently launchpad has issue tracking, and feature planning > facilities; > > We have not used bug tracking there (or anywhere) because of the overhead;

[web2py:26823] Re: Bug reports

2009-07-18 Thread mdipierro
I do not know if I will have the time. I like the idea, I will try. On Jul 18, 10:57 am, Tim Michelsen wrote: >  > I will be traveling a lot starting Sunday. I should have occasional >  > network access but not really reliable. > > I suggest to add a new page to the web2py page: > Development wi

[web2py:26822] Re: HOW2Py

2009-07-18 Thread Yarko Tymciurak
many questions I have before getting to "where"... What form? Tutorials of what sort? Videos? Text? Interactive w/ excercises? On Sat, Jul 18, 2009 at 2:12 PM, gluegl wrote: > > Will follow Massimo and the members of this group advice... > Where do you suggest? > -G > > > > --~--~-~--

[web2py:26821] Re: Question about validation

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 1:00 PM, ionel wrote: > > Hello, > I have the following situation: > > Model: > > db.define_table('country', db.Field('country', 'string', length=50)) > > db.define_table(region', > db.Field('name', 'string', length=50), > db.Field('country', 'reference country

[web2py:26820] Re: HOW2Py

2009-07-18 Thread gluegl
Will follow Massimo and the members of this group advice... Where do you suggest? -G --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com

[web2py:26819] Re: Question about validation

2009-07-18 Thread DenesL
On Jul 18, 1:00 pm, ionel wrote: > Hello, > I have the following situation: > > Model: > > db.define_table('country', db.Field('country', 'string', length=50)) > > db.define_table(region', >        db.Field('name', 'string', length=50), >        db.Field('country', 'reference country') >  ) > db.

[web2py:26818] Re: web2py-users and web2py-developers

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 2:02 PM, Yarko Tymciurak wrote: > On Sat, Jul 18, 2009 at 1:52 PM, DenesL wrote: > >> >> Joe: I have sided with you many times but not on this one. >> >> A cleaner division between users (a.k.a commoners --giggle--) who want >> to use web2py without knowing what is under

[web2py:26817] Re: web2py-users and web2py-developers

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 1:52 PM, DenesL wrote: > > Joe: I have sided with you many times but not on this one. > > A cleaner division between users (a.k.a commoners --giggle--) who want > to use web2py without knowing what is under the hood and developers > (a.k.a high priests --LOL--) who make a

[web2py:26816] Re: Issue with Mercurial

2009-07-18 Thread vihang
thanks massimo, I did remove the debug=True and verbose=True to get it working. I installed the latest version of Mercurial (1.3) and the API on its wiki also mentions using just ui.ui(). But I am a newbie, so wasn't sure On Jul 18, 6:14 pm, mdipierro wrote: > Try remove debug=True must be

[web2py:26815] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread Yarko Tymciurak
Well - currently launchpad has issue tracking, and feature planning facilities; We have not used bug tracking there (or anywhere) because of the overhead; In general, you need to ask a question (group) to determine if you have a specific problem, or have found a bug; In most cases for bugs, Massim

[web2py:26814] Re: web2py-users and web2py-developers

2009-07-18 Thread DenesL
Joe: I have sided with you many times but not on this one. A cleaner division between users (a.k.a commoners --giggle--) who want to use web2py without knowing what is under the hood and developers (a.k.a high priests --LOL--) who make an extra effort to delve into the innards and into strategic

[web2py:26813] Re: Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread waTR
I am not sure it is so simple. I also have the impression Massimo is already working on something for this. On Jul 18, 11:47 am, lpg wrote: > Recently we have been discussing different ways to manage the roadmap, > feature request, bug tracking etc (http://groups.google.com/group/ > web2py/

[web2py:26812] Vote: Roadmap and Issue Tracking Applications

2009-07-18 Thread lpg
Recently we have been discussing different ways to manage the roadmap, feature request, bug tracking etc (http://groups.google.com/group/ web2py/browse_thread/thread/8ff54638a161cd97 ). From the discussions it's clear we need an application better than Google Groups to do this. Can we take a vote

[web2py:26811] Re: web2py-users and web2py-developers

2009-07-18 Thread waTR
Let me just say that this is a positive step that was needed. Here are some benefits so everyone is clear: 1. Fosters more of a team atmosphere among developers (internal team) 2. Gives Massimo a better idea about who are the start contributors among the team, and can therefore invite them into th

[web2py:26810] Re: web2py-users and web2py-developers

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 12:34 PM, Joe Barnhart wrote: > > I am surprised at this division of groups. Web2py does not have so > much traffic that it is a burden to have all messages in one group. > The intent is *precisely* to exclude people from certain > conversations. There really can be no ot

[web2py:26809] Question about validation

2009-07-18 Thread ionel
Hello, I have the following situation: Model: db.define_table('country', db.Field('country', 'string', length=50)) db.define_table(region', db.Field('name', 'string', length=50), db.Field('country', 'reference country') ) db.region.country.requires=IS_IN_DB(db, 'country.id', '%(c

[web2py:26808] Re: problem when using an SQLFORM to approve user registration

2009-07-18 Thread Dan
Sorry, it was my mistake -- my code was not taking effect the first time. Please disregard my request for help. On Jul 17, 7:15 pm, mdipierro wrote: > Which version of web2py? I cannot reproduce this. > > Can you try add > >    db.auth_table.writable=True > > before accepts? Does it change anyth

[web2py:26807] Re: web2py-users and web2py-developers

2009-07-18 Thread Joe Barnhart
I am surprised at this division of groups. Web2py does not have so much traffic that it is a burden to have all messages in one group. The intent is *precisely* to exclude people from certain conversations. There really can be no other reason for setting up a "developers" group with gated write

[web2py:26806] Re: web2py-users and web2py-developers

2009-07-18 Thread Yarko Tymciurak
On Sat, Jul 18, 2009 at 10:29 AM, Tim Michelsen wrote: > > > Or email me to be added. > > - You can be a developer if you have contributed to web2py, NOT if you > > plant to contribute to web2py. In order to be a developer you must > > also be a member of the web2py-users list and help other user

[web2py:26805] Re: The 80/20 rule

2009-07-18 Thread Yarko Tymciurak
Ach! Yes that's it - JPL - It was from Sean Kelly who's video starts with him working at NOAA: http://oodt.jpl.nasa.gov/better-web-app.mov On Sat, Jul 18, 2009 at 7:42 AM, weheh wrote: > > - > all the rest of this is smack-dab peachy: I'll remind you of one > thing - > there was a website

[web2py:26804] Re: Bug reports

2009-07-18 Thread Tim Michelsen
> I will be traveling a lot starting Sunday. I should have occasional > network access but not really reliable. I suggest to add a new page to the web2py page: Development with subpages * roadmap: put content of messages - http://permalink.gmane.org/gmane.comp.python.web

[web2py:26803] Re: web2py-users and web2py-developers

2009-07-18 Thread Tim Michelsen
> Or email me to be added. > - You can be a developer if you have contributed to web2py, NOT if you > plant to contribute to web2py. In order to be a developer you must > also be a member of the web2py-users list and help other users. > - I ultimately decide who is in and who is out. I may suggest

[web2py:26802] Re: Custom SQLFORM problem

2009-07-18 Thread DenesL
Hi Artman, On Jul 18, 8:02 am, 陶艺夫 wrote: > the table: > db.define_table('users', >     SQLField('user_name','string',required=True,unique=True), >     SQLField('password','password',length=80,required=True), >     SQLField('town_id','integer'), # this can be NULL >     SQLField('name','string',

[web2py:26801] Re: cache.ram

2009-07-18 Thread mdipierro
Notice you can set time_expire=None and it will never expire (until web2py restarts). On Jul 18, 8:29 am, hcvst wrote: > As usual, writing about it, helped: > This works. > > > def db_init(): >      #init db >      return True > > cache.ram('db_init', lambda:db_init(), time_expire=30758400)

[web2py:26800] Re: HOW2Py

2009-07-18 Thread JohnMc
Logistical question -- where shall these entries be published? AlterEgo? With the Lede How2Py: X? On Jul 17, 7:59 pm, gluegl wrote: > Great suggestions... > Will start with #2 CSS / Jquery ... > JohnMc contribution will be great foundation. > > I have add a jquery/css/ Web2Py pr

[web2py:26799] Re: Managing cache folder

2009-07-18 Thread mdipierro
On Jul 18, 5:21 am, Jitender wrote: > Do  we need a  'No-Cache-Modulels' folder  along with the 'modules' > folder. I think this would be an unnecessary complication but if you could submit a patch so that admin has a button to reload modules, that would be nice. > So that we can have one fol

[web2py:26798] Invalid field names starting with "_" char

2009-07-18 Thread Boriel
Well, I jumped into this error: SQLField: invalid field name: '_5_voltage' It was an exception generated on file gluon/sql.py, line #1763 Removing lines 1762 & 1763 will allow fieldnames starting with "_" character to be allowed. I suppose preventing column names starting with "_" was by design,

[web2py:26797] Re: Issue with Mercurial

2009-07-18 Thread mdipierro
Try remove debug=True must be a different version of mercurial. On Jul 18, 3:40 am, vihang wrote: > Hi, > > I just upgraded to the latest version of web2py (1.65.5) and trying > the mercuial vc for the first time. I am facing the following error > when I click on "versioning". > > Traceback (mos

[web2py:26796] I need suggestions (external pages)

2009-07-18 Thread Jose
Hello In the site there are advertisings or patronages that can or not to have your own web site. In the case that they have your web site a link believes himself. But in the cases in which they do not have, I want to host the only a page inside my site. I think about three options (surely there

[web2py:26795] Re: cache.ram

2009-07-18 Thread hcvst
As usual, writing about it, helped: This works. def db_init(): #init db return True cache.ram('db_init', lambda:db_init(), time_expire=30758400) --- HC On Jul 18, 3:16 pm, hcvst wrote: > Hi, > > I am trying to run a bit of model code only once to init the db. I > tried to us

[web2py:26794] cache.ram

2009-07-18 Thread hcvst
Hi, I am trying to run a bit of model code only once to init the db. I tried to use cache.ram: --- if not cache.ram('db_loaded', lambda:False, time_expire=0): # do db stuff cache.ram('db_loaded', lambda:True, time_expire=30758400) #=60*60*24*356 --- Yet cache.ram always returns False. I

[web2py:26793] Re: Custom SQLFORM problem

2009-07-18 Thread 陶艺夫
the table: db.define_table('users', SQLField('user_name','string',required=True,unique=True), SQLField('password','password',length=80,required=True), SQLField('town_id','integer'), # this can be NULL SQLField('name','string',required=True), SQLField('gender',requires=IS_IN_SET(

[web2py:26792] Re: The 80/20 rule

2009-07-18 Thread weheh
- all the rest of this is smack-dab peachy: I'll remind you of one thing - there was a website, guy from NOAA I think it was - that showed all the frameworks that claimed to have something; he tried building something simple with them and uncovered all the flaws and gotchas and try to say "h

[web2py:26791] Managing cache folder

2009-07-18 Thread Jitender
Do we need a 'No-Cache-Modulels' folder along with the 'modules' folder. So that we can have one folder where we put most of our development modules and once the code is stable or putting to world wide web. We can then move the .pyc or .py folders to 'modules' folder. I have also tested this m

[web2py:26790] Issue with Mercurial

2009-07-18 Thread vihang
Hi, I just upgraded to the latest version of web2py (1.65.5) and trying the mercuial vc for the first time. I am facing the following error when I click on "versioning". Traceback (most recent call last): File "C:\Users\vihang\Desktop\VShare\web2py\gluon\restricted.py", line 176, in restricted

[web2py:26789] If you want to succeed

2009-07-18 Thread Peterle
If you want to succeed with web2py, one thing you have to do is a framework with the same strengths of Drupal: I don't mean to translate Drupal in python... I'd like hearing about a python framework with tons of ready-to-use modules and a portal with all sort of usage statistics, fine-grained bug