[web2py:21126] Re: Enhancement request: error ticket and explanation on same page

2009-05-03 Thread Yarko Tymciurak
On Mon, May 4, 2009 at 1:38 AM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > > On Mon, May 4, 2009 at 3:32 AM, weheh wrote: > > I wonder why error tickets are implemented in such a way that the > > ticket shows up as a single hypertexted line on a page, which you have > > to click t

[web2py:21125] Rev 727: Douglas patch creates missing folders

2009-05-03 Thread Yarko Tymciurak
I am concerned about two things: --- this code change is introduced in a lot of places, e.g. same code replicated... --- the way the code is, it will always run (which is unnecessary, except for first time in an app, and even then only in downloaded from hg apps, as once welcome contains these dirs

[web2py:21124] Re: How to pass URL containing email, someb...@somewhere.com, to request.args?

2009-05-03 Thread Iceberg
Python has a urlencode(...) On May4, 2:18pm, weheh wrote: > I'm getting a HTTP 400 Bad Request when I my web2py app URL contains > an email address with an @ sign. Do I need to escape the @ sign, and > if so, how? --~--~-~--~~~---~--~~ You received this message be

[web2py:21123] Re: JSON and datetime

2009-05-03 Thread Iceberg
Mmm, I happened to meet same problem. Sure it is not a web2py issue, not even a python issue. It is mainly because JSON standard does not define how to handle date and time. http://www.json.org/index.html Anyway, encoding datetime is easy. There are even simpler ways here. http://stackoverfl

[web2py:21122] Re: Enhancement request: error ticket and explanation on same page

2009-05-03 Thread Álvaro Justen [Turicas]
On Mon, May 4, 2009 at 3:32 AM, weheh wrote: > I wonder why error tickets are implemented in such a way that the > ticket shows up as a single hypertexted line on a page, which you have > to click to see the actual error message? Why not have the error > message details listed immediately after t

[web2py:21121] Re: redirection to next page on submit

2009-05-03 Thread newbie
Thank you. wud try copying into session variables. :) On May 4, 1:19 am, Yarko Tymciurak wrote: > The thing to be aware of: > > www is connectionless;  each request is it's own "program" running (sort of > - it's its own thread). > > That is, when you ask for a page, a new instance of web2py is

[web2py:21120] Enhancement request: error ticket and explanation on same page

2009-05-03 Thread weheh
I wonder why error tickets are implemented in such a way that the ticket shows up as a single hypertexted line on a page, which you have to click to see the actual error message? Why not have the error message details listed immediately after the ticket number? I'm pretty sure that would save me h

[web2py:21119] How to pass URL containing email, someb...@somewhere.com, to request.args?

2009-05-03 Thread weheh
I'm getting a HTTP 400 Bad Request when I my web2py app URL contains an email address with an @ sign. Do I need to escape the @ sign, and if so, how? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewo

[web2py:21118] Re: JSON and datetime

2009-05-03 Thread weheh
simplejson.dumps(x) should support datetime. Same goes for simplejson.loads(y). Having worked around this limitation within gluon.contrib.simplejson I am convinced this is going to be a pain every time I work with datetime and somebody else's website. I'm interfacing a calendar app to another web

[web2py:21117] Table already exists problem [again]

2009-05-03 Thread TheDude
Massimo, I know that we've talked about this in the past, but here we go again... I'm using the latest web2py, in my applications, I would define tables as usual only to get an SQL error saying the table exists. I tried clearing out my "databases" folder, and the only way to clear out would be to

[web2py:21116] Re: BUG:

2009-05-03 Thread mdipierro
BTW what os? On May 3, 10:17 pm, mdipierro wrote: > That's why we say web2py requires 2.5. ;-) > > Massimo > > On May 3, 10:10 pm, Oscar wrote: > > > That's right, I'm using Python 2.6.1 > > > Regards, > > > Oscar. > > > On 4 mayo, 21:59, mdipierro wrote: > > > > Are you using python 2.6? The

[web2py:21115] Re: Clarification

2009-05-03 Thread mdipierro
yes yes On May 3, 10:03 pm, JohnMc wrote: > To anyone -- > > A) dict() as Web2Py applies them. There is reference made in both the > Book and the 'Rolling with...' that the dict() values are made > available and passed to the corresponding view for display. So the > scope of the dict() is limite

[web2py:21114] Re: BUG:

2009-05-03 Thread mdipierro
That's why we say web2py requires 2.5. ;-) Massimo On May 3, 10:10 pm, Oscar wrote: > That's right, I'm using Python 2.6.1 > > Regards, > > Oscar. > > On 4 mayo, 21:59, mdipierro wrote: > > > Are you using python 2.6? The tar module seems to have a bug in 2.6. > > > Massimo > > > On May 3, 9:5

[web2py:21113] Re: BUG:

2009-05-03 Thread Oscar
That's right, I'm using Python 2.6.1 Regards, Oscar. On 4 mayo, 21:59, mdipierro wrote: > Are you using python 2.6? The tar module seems to have a bug in 2.6. > > Massimo > > On May 3, 9:56 pm, Oscar wrote: > > > Ok let me explain more in detail. > > > I developing free_sms, I'm doing right n

[web2py:21112] Clarification

2009-05-03 Thread JohnMc
To anyone -- A) dict() as Web2Py applies them. There is reference made in both the Book and the 'Rolling with...' that the dict() values are made available and passed to the corresponding view for display. So the scope of the dict() is limited to the function/view pair correct? B) Variables as W

[web2py:21111] Re: BUG:

2009-05-03 Thread mdipierro
Are you using python 2.6? The tar module seems to have a bug in 2.6. Massimo On May 3, 9:56 pm, Oscar wrote: > Ok let me explain more in detail. > > I developing free_sms, I'm doing right now on version 1.61.4 (using > ziped file downloaded from download link in your page). I just > ppackaged i

[web2py:21110] Re: BUG:

2009-05-03 Thread Oscar
Ok let me explain more in detail. I developing free_sms, I'm doing right now on version 1.61.4 (using ziped file downloaded from download link in your page). I just ppackaged it from 1.61.4 and uploaded again to 1.62 RC1, then I tried just open any function at default controller an every returns

[web2py:21109] Re: BUG:

2009-05-03 Thread mdipierro
I guess I misunderstood the issue. where di you download "free_sms" from. This does not come from my server. Massimo On May 3, 9:29 pm, Oscar wrote: > Sorry but there are more files missing: > > Traceback (most recent call last): >   File "/Users/Ra/codigo_fuente/web2py/gluon/template.py", line

[web2py:21108] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
To see where I'm going with this, I've modified the controller to use the base read/create/update controller (setsubmit) so it can be used with a minimum of new code. Here is the new version adding a controller 'authdata' for the auth_user table: def index(): session.action = "update" #r

[web2py:21107] Re: BUG:

2009-05-03 Thread Oscar
Sorry but there are more files missing: Traceback (most recent call last): File "/Users/Ra/codigo_fuente/web2py/gluon/template.py", line 128, in parse_template child = open(t, 'rb').read() IOError: [Errno 2] No such file or directory: '/Users/Ra/codigo_fuente/ web2py/applications/free_sms/v

[web2py:21106] Re: Non-relational databases

2009-05-03 Thread dlypka
Upon further reading of the source code in html.py and sqlhtml.py I see now that the widgets in sqlhtml.py are very elegantly built upon calls to the 'HTML Helpers' which are in html.py. It was the HTML Helpers which I was referring to as 'controls'. NOTE however that I have been able to use an '

[web2py:21105] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
Well you've done me a great service by creating this sample. I went a bit further and got some partial success by just changing this one line: Testfield1: {{if session.action == "update":}} {{ =INPUT(_type='text', _id='testtable_testfield1', _name='testfield1', valu

[web2py:21104] Re: Non-relational databases

2009-05-03 Thread mdipierro
not sure I understand what you mean by widgets then. for me a widget is an object that represents a field in a form. INPUT is not a widget. widgets in web2py are class IntegerWidget(StringWidget): class DoubleWidget(StringWidget): class TimeWidget(StringWidget): class DateWidget(StringWidget): cl

[web2py:21103] Re: redirect referer url

2009-05-03 Thread Álvaro Justen [Turicas]
On Wed, Apr 29, 2009 at 8:49 AM, vihang wrote: > Is there any way to know which the current page was redirected from? > Esp, when one calls redirect(), I would like to know the previous page > from the redirected page.  I was hoping that info would be there in > request.env.http_referer, but that

[web2py:21102] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
Folks, I've taken note of your comments and work to help me with this. Although I'm afraid that I don't have the skills to participate, I really appreciate your efforts. Kindest regards, Gary On May 3, 8:59 pm, dlypka wrote: > FYI > If someone tries to run your code on a fresh empty db, > th

[web2py:21101] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
FYI If someone tries to run your code on a fresh empty db, then they need to first create a record in the database and im that case, the record would have id=1 and so in your code def testdata(): setsubmit() if request.args: id = request.args[0] else: id = 3 # Included for testing

[web2py:21100] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
The objects in gluon/html.py appear to be what I would call 'controls' whereas the objects in gluon\sqlhtml.py are 'widgets'. So I see that Crud uses controls and SQLFORM uses widgets. I am hoping to find a way to use a control in the View markup rather than in the Controller. I believe that is

[web2py:21099] Re: Plugin system

2009-05-03 Thread dlypka
The objects in gluon/html.py appear to be what I would call 'controls' whereas the objects in gluon/sqlhtml.py are 'widgets'. So I see that Crud uses controls and SQLFORM uses widgets. I am hoping to find a way to use a control in the View markup rather than in the Controller. On May 3, 5:46 p

[web2py:21098] Re: Non-relational databases

2009-05-03 Thread Yarko Tymciurak
BigTable is among the so-called column-oriented databases: http://en.wikipedia.org/wiki/Column-oriented_DBMS Check out: http://www.hypertable.org/ http://en.wikipedia.org/wiki/BigTable Cassandra: http://cwiki.apache.org/confluence/display/CSDR/Index

[web2py:21097] Re: Validation in Custom Form using crud

2009-05-03 Thread Álvaro Justen [Turicas]
On Sun, May 3, 2009 at 7:32 PM, dlypka wrote: > > because **inside**  the crud()  call I believe it (magically) does > this kind of stuff: > > def test(): >    f = FORM('Is web2py cool? Why?', >            SELECT(OPTION('Yes', _value='y'), OPTION('No', > _value='n'), _name='opts', requires=IS_IN_

[web2py:21096] Re: Non-relational databases

2009-05-03 Thread dlypka
Even though there are existing widgets, do they handle the specific issue of working with the CRUD Error framework? i.e. is class INPUT considered to be a widget? I suspect we need a variation of CRUD that generates widgets internally instead of INPUT instances etc, On May 3, 5:51 pm, mdipierro

[web2py:21095] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
because **inside** the crud() call I believe it (magically) does this kind of stuff: def test(): f = FORM('Is web2py cool? Why?', SELECT(OPTION('Yes', _value='y'), OPTION('No', _value='n'), _name='opts', requires=IS_IN_SET(['y'], error_message='Errr...wrong answer')),

[web2py:21094] Re: how to get help on web2py

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 4:27 PM, rev wrote: > > Hi Yarko, > > > I should clarify - I threw away a quite angry response to rev's post > I *sincerely* apologize that my post caused you to become angry. > That definitely was not my intention. Hey! No problem - You're not responsible for my feelings

[web2py:21093] Re: Non-relational databases

2009-05-03 Thread mdipierro
we have widgets already. Look into gluon/sqlhtml.py for examples. The only thing missing is a repository for third party widgets. It would be great is somebody were to take care of that and maintain a repository. Massimo On May 3, 4:11 pm, dlypka wrote: > I think it is a great idea to be starte

[web2py:21092] Re: Plugin system

2009-05-03 Thread mdipierro
The format is the last thing we should worry about it. The real issues are how to we categorize plugins? What should the metadata contain? what should be standard hooks? which contraints should be require for the plugin to be portable? On May 3, 3:16 pm, dlypka wrote: > For the metadata, it soun

[web2py:21091] Re: Rows disappearing after update

2009-05-03 Thread mdipierro
I will investigate this problem. About syntax you can do db.part[recordId].update_record(part_Description = updatedData) db.part[recordId].update_record(**dict(part_Description = updatedData)) db.part[recordId]=dict(part_Description = updatedData) On May 3, 12:32 pm, Brian wrote: > I've tried

[web2py:21090] Re: how to get help on web2py

2009-05-03 Thread rev
Hi Yarko, > I should clarify - I threw away a quite angry response to rev's post I *sincerely* apologize that my post caused you to become angry. That definitely was not my intention. Two users before me raised the concern about the efforts spent on creating a wiki, and I agreed. I'm new in web2

[web2py:21089] Re: Non-relational databases

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 4:11 PM, dlypka wrote: > > I think it is a great idea to be started the sooner, the better. > > One thing at a time - there is no shortage of projects! I think it will take someone who has a specific interest in and skill with a particular non-rel backend and who is intere

[web2py:21088] Re: BUG:

2009-05-03 Thread Oscar
I will try again. Thank you! Oscar. On 3 mayo, 23:56, mdipierro wrote: > I think it is fixed. I had forgotten to add some new admin files to > SVN. > > Massimo > > On May 2, 5:03 pm, mdipierro wrote: > > > I am investing the previous issue. I changed the structure of admin in > > trunk and i

[web2py:21087] Re: BUG:

2009-05-03 Thread Oscar
I did get the same result with mutiple downloaded files... so, ¿All were corrupted? even ziped file in your page. Regards, Oscar. On 3 mayo, 17:03, mdipierro wrote: > I am investing the previous issue. I changed the structure of admin in > trunk and it is possible I forgot to add some of the

[web2py:21086] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
Thank you for your detailed reply. I hope I'm not opening a can of worms. Being a relative newbie to both Python and Web2py, reading your explanation makes sense to my elementary level. wish I had a higher lever of Python competence. What I don't understand is, with the exception of formattin

[web2py:21085] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
Thank you for your detailed reply. I hope I'm not opening a can of worms. Being a relative newbie to both Python and Web2py, reading your explanation makes sense to my elementary level. wish I had a higher lever of Python competence. What I don't understand is, with the exception of formattin

[web2py:21084] Re: Non-relational databases

2009-05-03 Thread dlypka
I think it is a great idea to be started the sooner, the better. Plus, I also recommend creating a "wig2py" (widget 2 py) for GUI Controls similar to the idea of ASP.NET controls to solve the problem of using custom forms with CRUD. So I believe 2 critical web2py framework projects needs to be

[web2py:21083] Re: Missing the old document for DAL

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 1:53 PM, Yarko Tymciurak wrote: > There are examples throughout the code - look at sql.py and gql.py for > examples in the docstrings (I agree, the docstrings could explain a little > more). > > select(limitby=(start_record,end_record), so limitby(1,2) would select one > re

[web2py:21082] Re: redirection to next page on submit

2009-05-03 Thread Yarko Tymciurak
The thing to be aware of: www is connectionless; each request is it's own "program" running (sort of - it's its own thread). That is, when you ask for a page, a new instance of web2py is created (cache), the application and controller that is being requested is determined, the models are read in

[web2py:21081] Re: Plugin system

2009-05-03 Thread dlypka
For the metadata, it sounds like a need for something similar to good old 'typelibs' a la Microsoft COM. I suppose it would be represented in XML rather than binary as typelibs were binary. Or maybe in some portable python byte code? On May 3, 10:55 am, mdipierro wrote: > This is a recurrent th

[web2py:21080] Re: javascript proxy issue

2009-05-03 Thread Yarko Tymciurak
This is great stuff, whitehouse.gov -- I know that google moderator (or a modification of) has been used for nationwide townhalls also - Guido vonRossum's team was involved in helping set that up. I would like to see moderator-like app on web2py. Note: I have yet to see anything that looks as go

[web2py:21079] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
The idea of replacing the handcoded tag by a call to a framework 'control' is basically parallel to the situation when coding a ASP.NET page: the developer has to choose between hand-coding an tag OR coding an ASP.NET control, which in this case would be because it has enhanced functional

[web2py:21078] Re: Non-relational databases

2009-05-03 Thread Yarko Tymciurak
the question of non-relational DBs is an interesting one, and increasingly will become so in the years to come. I think DAL is structured to make web2py apps portable - allow you to run your design without regard to backend storage. Clearly, that is biased towards relational databases which are p

[web2py:21077] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
Since generating forms thru those HTML class methods is not too much fun, I believe we could continue along your solution path by making some changes to those classes so that we can create an instance of class INPUT to generate ONLY the input tags So in this scenario you would slightly change your

[web2py:21076] Re: how to get help on web2py

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 1:43 PM, JohnMc wrote: > > But flat files, that is so yesterday... -- dlypka > > It seems to be, till you start talking about portability. Free of the > need to drag around a DBMS, PMWiki will run on just about any media > you can think of. I can fit an awful lot of wiki pa

[web2py:21075] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
OK I found it (I believe) in (assuming you have downloaded the web2py sourcecode) \web2py\gluon\html.py line 744: def xml(self): name = self.attributes.get('_name', None) if name and hasattr(self, 'errors') and self.errors.get(name, None): return

[web2py:21074] Re: how to get help on web2py

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 6:56 AM, dlypka wrote: > > I wish the wiki used the WYSIWYG HTML control for content entry a la > T3 instead of the text mode with python doc tags. > And then I think an XSL transform should be used to strip out the tags > to store a parallel copy of the content that is a p

[web2py:21073] Re: how to get help on web2py

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 2:50 AM, Joe Barnhart wrote: > > Yarko -- > > I can't say about others, but for me the key missing features in the > wiki are: > > * Wiki-style links and organization > * Easy navigable URLs > * More compact and usable layout Thanks, Joe, for the concrete and useful point

[web2py:21072] Re: how to get help on web2py

2009-05-03 Thread Yarko Tymciurak
On Sun, May 3, 2009 at 2:50 AM, Joe Barnhart wrote: > > Yarko -- > > I can't say about others, but for me the key missing features in the > wiki are: > .. > > I don't want anyone to feel like I'm telling them what to do. I am > just a messenger, bearing the bad news that we still do no

[web2py:21071] Re: Validation in Custom Form using crud

2009-05-03 Thread dlypka
OK I have reproduced your code on my machine. I blanked out the First name and pressed Submit. Then I did File .. View Source There I can see that it generates cannot be empty! So we 'simply' have to scour the web2py source code to look for where the CRUD and or FORM framework code generates a w

[web2py:21070] Re: Prune httpserver.log?

2009-05-03 Thread Yarko Tymciurak
cron may not be the nicest way to go I imagine having a problem (lots of logging) and just at that time, some size limit hits, or cron is triggered by some other criteria and the site loses useful logging information. A better solution would be to have a "round-robin" writing of the log file,

[web2py:21069] Re: Missing the old document for DAL

2009-05-03 Thread Yarko Tymciurak
There are examples throughout the code - look at sql.py and gql.py for examples in the docstrings (I agree, the docstrings could explain a little more). select(limitby=(start_record,end_record), so limitby(1,2) would select one record - record 1 (2 is not included). You can see this in test_dal.py

[web2py:21068] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
Thanks to all for your input and suggestions. I've tried to make the changes without effecting the functionality or the goal of using the 'crud' controllers. Massimo - I'll repost the application with the changes below. Alvaro - I've considered abandoning the use of the crud controllers and use

[web2py:21067] Re: redirection to next page on submit

2009-05-03 Thread Fran
On May 3, 6:53 pm, newbie wrote: >        Actually I'm trying to access some of the request variables of > the form. But If i redirect using >         redirect(URL(r=request,f='confirm')) >      I'm not able to access the request variables of the form. Try copying them to session before the redi

[web2py:21066] Re: how to get help on web2py

2009-05-03 Thread JohnMc
But flat files, that is so yesterday... -- dlypka It seems to be, till you start talking about portability. Free of the need to drag around a DBMS, PMWiki will run on just about any media you can think of. I can fit an awful lot of wiki pages in the 300kb that is a sqlite footprint. Any of the ot

[web2py:21065] Re: javascript proxy issue

2009-05-03 Thread Tim Michelsen
Hey, Fran, here is something what I wanna get with web2py: http://www.whitehouse.gov/change/ Cheers, Timmie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send

[web2py:21064] Re: Cascading menu

2009-05-03 Thread Yarko Tymciurak
Hi Iceberg - Thanks for this effort. I just looked, and I would like to see the "onmouseover" removed - this is something that should not be in the layout, but generated by the applicaiton. The default behavior can be set in the css; have a look at the source to http://meyerweb.com/eric/css/edg

[web2py:21063] Re: And I am confused again... Again...

2009-05-03 Thread weheh
I like the conciseness of how Massimo does this: db.student.student_name.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB (db,"student.student_name")] On May 3, 12:29 am, Jason Brower wrote: > Wow, thanks Yarko. > > > > On Sat, 2009-05-02 at 16:25 -0500, Yarko Tymciurak wrote: > > Also, note, that you ar

[web2py:21062] Re: redirection to next page on submit

2009-05-03 Thread newbie
hi mdipierro, Actually I'm trying to access some of the request variables of the form. But If i redirect using redirect(URL(r=request,f='confirm')) I'm not able to access the request variables of the form. On May 3, 7:03 pm, newbie wrote: > thanks for the immediate reply :

[web2py:21061] Re: Rows disappearing after update

2009-05-03 Thread Brian
Ignore the elif under update, I cut a bunch of redundant if-elif code out and forgot to change that. On May 3, 12:32 pm, Brian wrote: > I've tried adding a commit() after an update, but still the same > thing. > > Here's the model for parts: > > # > try: >         db = SQLDB("pos

[web2py:21060] Re: Non-relational databases

2009-05-03 Thread dlypka
When I evaluate a database framework, the first thing I look at is the field types. Right now I see web2py supports these types: •db.Field(name, 'string') •db.Field(name, 'text') •db.Field(name, 'password') •db.Field(name, 'blob') •db.Field(name, 'upload') •db.Field(name, 'boolean') •db.Field(nam

[web2py:21059] Re: Rows disappearing after update

2009-05-03 Thread Brian
I've tried adding a commit() after an update, but still the same thing. Here's the model for parts: # try: db = SQLDB("postgres://user:passw...@localhost:5432/table") except: db = SQLDB("sqlite://service.db") PART_TYPES = [ 'Cooling', 'Heating', 'Refrigeration',

[web2py:21058] Re: 1000 users!

2009-05-03 Thread Jason Brower
Yahoo and dang! Hehe, don't know what's better, being without the book and starting earlier, or with the book and starting now. :P Congrats! On Sun, 2009-05-03 at 09:02 -0700, mdipierro wrote: > Congratulations to Rafael, our user # 1000. > > @Rafael, > you win a free copy of the PDF book. Ple

[web2py:21057] Re: Non-relational databases

2009-05-03 Thread Tim Michelsen
Kless wrote: > I'm more interested into a framework backed by a non relational db, > mainly MongoDB [1]. By that reason I discard Django, and to Pylons > because it hasn't a plugin system that lets reuse/share applications. > > Is web2py ready to use non-relational databases? > > > [1] http://m

[web2py:21056] Re: how to get help on web2py

2009-05-03 Thread dlypka
Ok, I just took a look at pmwiki. It does have a nice Search features. But flat files, that is so yesterday... I would suggest using pmwiki features as the basis of the web2py wiki development Roadmap with implementation continuing in web2py. Just change the input UI to be WYSIWYG html. Maybe writ

[web2py:21055] 1000 users!

2009-05-03 Thread mdipierro
Congratulations to Rafael, our user # 1000. @Rafael, you win a free copy of the PDF book. Please email me personally to retrieve the file. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewor

[web2py:21054] Re: Non-relational databases

2009-05-03 Thread mdipierro
It is too much GAE specific and it would make the web2py app not portable on relational databases. You can use IS_IN_DB(...,multiple=True) to achieve very similar functionality in a portable way. there is a vimeo video about it. Massimo On May 3, 10:54 am, dlypka wrote: > Are there plans for w

[web2py:21053] Re: Plugin system

2009-05-03 Thread mdipierro
sorry http://www.web2py.com/examples/static/t2.pdf Massimo On May 3, 9:57 am, "Zoom.Quiet" wrote: > On Sun, May 3, 2009 at 22:55, mdipierro wrote: > > > This is a recurrent theme on this list and one I care the most. It is > > also a complicated issue because different people define plugins

[web2py:21052] Re: Non-relational databases

2009-05-03 Thread dlypka
Are there plans for web2py to handle the GAE ListProperty described in the GAE Cookbook article "How to query by date range" where it suggests: For example, add a ListProperty named "date_list", and populate it like this: date_list = [start_date, end_date]. I assume an example is: class B(d

[web2py:21051] Re: What's the plan for supporting multi-level menus with response.menu?

2009-05-03 Thread Francisco Gama
Personally, I prefer mootools as a JS framework but I do understand why you don't want to web2py tied with some framework that will never please everybody. Besides, css based only has always advantages. Steve Gibson is always a good reference ;) On 8 Mar, 17:51, mdipierro wrote: > What about a

[web2py:21050] Re: Plugin system

2009-05-03 Thread Zoom.Quiet
On Sun, May 3, 2009 at 22:55, mdipierro wrote: > > This is a recurrent theme on this list and one I care the most. It is > also a complicated issue because different people define plugins in > different ways and because it is a matter of writing specs more than a > technical issues. Anyway... > >

[web2py:21049] Re: Plugin system

2009-05-03 Thread mdipierro
This is a recurrent theme on this list and one I care the most. It is also a complicated issue because different people define plugins in different ways and because it is a matter of writing specs more than a technical issues. Anyway... In web2py we do not have the concept of projects. We have th

[web2py:21048] Re: Non-relational databases

2009-05-03 Thread mdipierro
web2py works on GAE. We are committed to provide some support for other non-relational databases (I do not know mongodb) but, if you need it, we can work together to make it work. Massimo On May 3, 7:13 am, Kless wrote: > I'm more interested into a framework backed by a non relational db, > m

[web2py:21047] Re: Prune httpserver.log?

2009-05-03 Thread mdipierro
I just os.unlink() On May 3, 7:40 am, Iceberg wrote: > Is there anyone who deploy web2py on production server? How do you > prune httpserver.log? Otherwise this file grows bigger and bigger. > Currently I am planing to os.unlink() it via the cron feature. Is > there any more gentle way? Thanks.

[web2py:21046] Re: Missing the old document for DAL

2009-05-03 Thread mdipierro
why not. Can you do it and send me a new file? Massimo On May 3, 5:59 am, Iceberg wrote: > Hi Massimo, > > Once again, I forgot the syntax for the limitby clause, so I turned to > the built-in doc for help. Unfortunately, the detail syntax of limitby > is not mentioned at all. >  http://www.web

[web2py:21045] Re: how to get help on web2py

2009-05-03 Thread JohnMc
There is a wiki standards effort that is attempting to foster common layouts so that interwiki linking will be easier. http://webseitz.fluxent.com/wiki/WikiStandards As to a good example of a wiki, PmWiki is one of the better ones. (www.pmwiki.org). It is a flat file, PHP based system. DenesL, k

[web2py:21044] Re: redirection to next page on submit

2009-05-03 Thread newbie
thanks for the immediate reply :) On May 3, 7:01 pm, mdipierro wrote: > def page1(): >    form=SQLFORM(db.a_table) >    if FORM.accepts(form,request.vars): >         session.vars=form.vars >         redirect(URL(r=request,f='confirm')) >    return dict(form=form) > > def confirm(): >    form=FOR

[web2py:21043] Re: redirection to next page on submit

2009-05-03 Thread mdipierro
def page1(): form=SQLFORM(db.a_table) if FORM.accepts(form,request.vars): session.vars=form.vars redirect(URL(r=request,f='confirm')) return dict(form=form) def confirm(): form=FORM('sure?',INPUT(_name='yes',_type='checkbox'),INPUT (_type='submit')) if request.vars.

[web2py:21042] Re: What's the plan for supporting multi-level menus with response.menu?

2009-05-03 Thread mdipierro
Can you tweak and provide an example so that it can be used as popop menus too? On May 3, 8:48 am, Iceberg wrote: > Hello folks, > > There are intermittent discussion about cascading menu from time to time. >        http://groups.google.com/group/web2py/msg/9a04650f84649641 > and recently: >    

[web2py:21041] Authentication and Authorization

2009-05-03 Thread annet
I have a couple of questions about the Auth class. To use authentication I uncommented the following functions in db.py: mail = Mail() mail.settings.server = 'smtp.yourdomain.com:25' mail.settings.sender = 'y...@yourdomain.com' mail.settings.login = 'usern...@password' auth = Auth(globals(), db)

[web2py:21040] Plugin system

2009-05-03 Thread Kless
Is there any plugin system for reuse/share applications in another projects? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com

[web2py:21039] Non-relational databases

2009-05-03 Thread Kless
I'm more interested into a framework backed by a non relational db, mainly MongoDB [1]. By that reason I discard Django, and to Pylons because it hasn't a plugin system that lets reuse/share applications. Is web2py ready to use non-relational databases? [1] http://mongodb.org/ --~--~-~

[web2py:21037] redirection to next page on submit

2009-05-03 Thread Nazgi
Hi, I'm new to python and web2py. I have a simple doubt. I've written a form and after the submit button is pressed in the form, I want to print the variables of the form into next page and ask for confirmation. I have written the form in a controller and also the function for the next pag

[web2py:21035] Prune httpserver.log?

2009-05-03 Thread Iceberg
Is there anyone who deploy web2py on production server? How do you prune httpserver.log? Otherwise this file grows bigger and bigger. Currently I am planing to os.unlink() it via the cron feature. Is there any more gentle way? Thanks. --~--~-~--~~~---~--~~ You recei

[web2py:21034] Re: how to get help on web2py

2009-05-03 Thread dlypka
I wish the wiki used the WYSIWYG HTML control for content entry a la T3 instead of the text mode with python doc tags. And then I think an XSL transform should be used to strip out the tags to store a parallel copy of the content that is a pure text 'blob' and then that text blob need to be run th

[web2py:21033] Missing the old document for DAL

2009-05-03 Thread Iceberg
Hi Massimo, Once again, I forgot the syntax for the limitby clause, so I turned to the built-in doc for help. Unfortunately, the detail syntax of limitby is not mentioned at all. http://www.web2py.com/examples/default/dal Eventually google still guides me to the old document for DAL: http:/

[web2py:21032] Re: how to get help on web2py

2009-05-03 Thread Joe Barnhart
Yarko -- I can't say about others, but for me the key missing features in the wiki are: * Wiki-style links and organization * Easy navigable URLs * More compact and usable layout All wikis I have used in the past use embedded WikiStyleTags to create links to other pages on the wiki, or even cre

[web2py:21031] Re: Validation in Custom Form using crud

2009-05-03 Thread Álvaro Justen [Turicas]
I think this is not really what you want, but could help: you can validate data (using validators) if you use helpers to create your forms. Creating forms with helpers is more flexible than with Crud. Try something like this: def test(): f = FORM('Is web2py cool? Why?', SELECT(OPT