[web2py:12051] Re: Weird thing with SQLFORM

2008-11-18 Thread pigmej
Massimo, That's part of my model, all tables are difined. And works everything except this one relation. No idea why it does not work. On Nov 18, 5:01 am, mdipierro <[EMAIL PROTECTED]> wrote: > I rearranged the order of you code and removed those cols referencing > tables that are not defined.

[web2py:12052] problem with record sum

2008-11-18 Thread pmate
What's the problem with this piece of code: Tot. articoli {{tot=x._extra[db.articles.quantity.sum()]}} {{if tot==None: tot="-"}} {{=tot}} It gives me this error: Traceback (most recent call last): File "/home/pmate/software/web2py/gluon/restri

[web2py:12053] Re: problem with record sum

2008-11-18 Thread pmate
i don't know what's going on, even this stopped working: def nuovo_carico(): session.idnuovocarico=gemag.movimenti.insert(tipo='carico') redirect(URL(r=request,f='carico')) it gives me: Traceback (most recent call last): File "/home/pmate/software/web2py/gluon/restricted.py", line 62, i

[web2py:12054] itemize temporary data

2008-11-18 Thread Baron
hello, My app calculates temporary data that I want to display to the user. There is a lot of it so paginating it with t2.itemize sounds like a good idea. But itemize takes a database table as input. So, I could write the data to a table and then query it to get the right form, but that would be

[web2py:12055] Re: remote access to admin

2008-11-18 Thread Baron
thanks for passing that tip on David. I also couldn't get remote admin working after fiddling with default.py so have been relying on an ssh tunnel. I tried your suggestion but was still denied. Do you remember any other steps? Richard On Nov 18, 8:22 am, davidjensen <[EMAIL PROTECTED]> wrote:

[web2py:12056] Re: remote access to admin

2008-11-18 Thread pigmej
ssh -L 8000:localhost:8000 [EMAIL PROTECTED] Then at localhost:8000 you will have web2py admin ;) On 18 Lis, 13:02, Baron <[EMAIL PROTECTED]> wrote: > thanks for passing that tip on David. I also couldn't get remote admin > working after fiddling with default.py so have been relying on an ssh >

[web2py:12057] Re: itemize temporary data

2008-11-18 Thread billf
I don't think you can - as you say itemize takes tables and an optional query. I think you will have to create your own "itemize" that works off your results. Looking at T2.itemize, it should not be difficult. Would it be nice if one could create a database and table in ram cache (disk cache wou

[web2py:12058] Re: Weird thing with SQLFORM

2008-11-18 Thread mdipierro
If you want you can send me the entire code privately. Massimo On Nov 18, 3:46 am, pigmej <[EMAIL PROTECTED]> wrote: > Massimo, > > That's part of my model, all tables are difined. And works everything > except this one relation. > > No idea why it does not work. > > On Nov 18, 5:01 am, mdipierr

[web2py:12059] Re: itemize temporary data

2008-11-18 Thread mdipierro
If sqlite can create a database in ram than this is possible. I will take a look. Massimo On Nov 18, 7:33 am, billf <[EMAIL PROTECTED]> wrote: > I don't think you can - as you say itemize takes tables and an > optional query. I think you will have to create your own "itemize" > that works off y

[web2py:12060] Re: problem with record sum

2008-11-18 Thread mdipierro
about _extra: you found a bug that was introduced in version 1.48. I will try fix this today. for now you can replace _extra[db.articles.quantity.sum()] with _extra [str(db.articles.quantity.sum()])] and it should fix it. about _insert: I am not sure. I will look into it. Massimo On Nov 18, 4:

[web2py:12061] Re: problem with record sum

2008-11-18 Thread mdipierro
Can you send me the definition of table movimenti and how you set default values? Massimo On Nov 18, 4:31 am, pmate <[EMAIL PROTECTED]> wrote: > i don't know what's going on, even this stopped working: > def nuovo_carico(): > session.idnuovocarico=gemag.movimenti.insert(tipo='carico') >

[web2py:12062] Re: itemize temporary data

2008-11-18 Thread billf
SQLite appears to have a ":memory:" keyword for in-memory databases. It looks like a minor change to sql.py to change the way it parses the uri from db=SQLDB('slqlite://something') so that it can say sqlite3.Connection(":memory:") when required. SQLite "virtual tables" also look interesting. See

[web2py:12064] Re: tier vs. module

2008-11-18 Thread mr.freeze
That makes sense. So would you consider T2 to be stable at this point? It seems to work well. On Nov 18, 12:04 am, mdipierro <[EMAIL PROTECTED]> wrote: > You do not need to worry because the all idea of t2 is to have > separate modules for different functionalities that you include as > needed.

[web2py:12063] Re: problem with record sum

2008-11-18 Thread pmate
Thanks Massimo, _extra[str( solved my first problem. For the second one, here is what you asked: db.define_table('movimenti', SQLField('data','date',requires=IS_DATE('%d/%m/%Y'),default=now), SQLField('t2_person_id',default=db.t2_person.id), SQLField('ente_id',db.enti), SQLFi

[web2py:12065] Re: itemize temporary data

2008-11-18 Thread mdipierro
can you send me a patch for sqlite? SQLDB('sqlite:memory:') Massimo On Nov 18, 8:53 am, billf <[EMAIL PROTECTED]> wrote: > SQLite appears to have a ":memory:" keyword for in-memory databases. > It looks like a minor change to sql.py to change the way it parses the > uri from db=SQLDB('slqlite:

[web2py:12066] Re: tier vs. module

2008-11-18 Thread mdipierro
Yes, but I am planning to give more flexibilty to registration, add a reset_password today. I will remove the current google checkout stuff and move it to a different .py file. Massimo On Nov 18, 9:11 am, "mr.freeze" <[EMAIL PROTECTED]> wrote: > That makes sense. So would you consider T2 to be

[web2py:12067] Re: problem with record sum

2008-11-18 Thread mdipierro
This causes your second problem: default=db.t2_person.id a default must be a value, cannot be a field object. Massimo On Nov 18, 9:03 am, pmate <[EMAIL PROTECTED]> wrote: > Thanks Massimo, > _extra[str( > > solved my first problem. > For the second one, here is what you asked: > > db.defin

[web2py:12068] Re: problem with record sum

2008-11-18 Thread mdipierro
The problem with _extra is now fixed in trunk and the fix is compatible with the temporary fix I suggested before (will work with or without it). I also added new tests and they pass: >>> mynumber=db.define_table('mynumber',SQLField('x','integer')) >>> db(mynumber.id>0).delete() >>> f

[web2py:12069] Re: itemize temporary data

2008-11-18 Thread Yarko
This discussion begs a question I pointed out yesterday - coupling across layers We have view actions being closely tied to model layer ... Someone is appropriately trying to have controller function in between (the only way it should be) and is having trouble. I think we need to revisit the

[web2py:12070] Re: Weird thing with SQLFORM

2008-11-18 Thread pigmej
Massimo, have you got my message ? On Nov 18, 2:58 pm, mdipierro <[EMAIL PROTECTED]> wrote: > If you want you can send me the entire code privately. > > Massimo > > On Nov 18, 3:46 am, pigmej <[EMAIL PROTECTED]> wrote: > > > Massimo, > > > That's part of my model, all tables are difined. And work

[web2py:12071] Re: itemize

2008-11-18 Thread Wes James
I defined a lambda, but clicking on [ next page ] still only gives me page 1. On Mon, Nov 17, 2008 at 4:32 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > I have answered tihis just now in another thread > > On Nov 17, 4:49 pm, "Wes James" <[EMAIL PROTECTED]> wrote: >> I put this in a view: >> >> {{

[web2py:12072] Re: Weird thing with SQLFORM

2008-11-18 Thread mdipierro
db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB (db,'docs_categories.id','docs_categories.name',error_message="...")) works for me and I see the dropdown categories. there is no db.docs_pages.category.requires=IS_NULL_OR(IS_IN_DB (db,'docs_categories.id','docs_categories.name',error_mess

[web2py:12073] header row with lambda row:

2008-11-18 Thread Wes James
Is there a way to have a header row with the lambda row: stuff? Nevermind - i just realized i could probably work with the output of a lambda like any other db output and create my own output view... -wj --~--~-~--~~~---~--~~ You received this message because you

[web2py:12074] Re: header row with lambda row:

2008-11-18 Thread [EMAIL PROTECTED]
no i can't - then I can use itemize paging... On Nov 18, 9:02 am, "Wes James" <[EMAIL PROTECTED]> wrote: > Is there a way to have a header row with the lambda row: stuff? > Nevermind - i just realized i could probably work with the output of a > lambda like any other db output and create my own o

[web2py:12075] new feature in trunk: SQLDB('sqlite:memory:')

2008-11-18 Thread mdipierro
works as a normal db but it is in memory. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, sen

[web2py:12076] Re: itemize temporary data

2008-11-18 Thread billf
Yarko Re "my note last night re: MVC ==> data / logic / presentation." - is that for general discussion? I would be very interested to see it as I am working on a related change. Your note doesn't seem to be a post to the forum. Bill On Nov 18, 3:53 pm, Yarko <[EMAIL PROTECTED]> wrote: > This

[web2py:12077] Re: itemize

2008-11-18 Thread Wes James
ok i'm using the limitby wrong. I took out my limitby=(0,10) thinking that meant give me 10 pages at a time. It now is using the 25 at a time and is working fine. how do i do 10 pages at a time? On Tue, Nov 18, 2008 at 8:56 AM, Wes James <[EMAIL PROTECTED]> wrote: > I defined a lambda, but cli

[web2py:12078] Re: where to put view logic

2008-11-18 Thread billf
Yarko Basically I agree with everything you say. There are always going to be some grey areas but that's life. For example, I could argue that hiding changes to the model could be handled by the model (as opposed to the controller as you suggest) by exposing a "legacy" view. (I'm talking genera

[web2py:12079] Re: problem with record sum

2008-11-18 Thread pmate
oops, i just wanted to have the id of the logged user in that field... Paolo --~--~-~--~~~---~--~~ 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:12080] Re: itemize

2008-11-18 Thread [EMAIL PROTECTED]
I just went in to t2.py and changed 25 to 10, took limitby out of the controller code and it works now 10 items at a time. Why does limitby= (0,10) not work?? thx, -wj On Nov 18, 9:33 am, "Wes James" <[EMAIL PROTECTED]> wrote: > ok i'm using the limitby wrong.  I took out my limitby=(0,10) thi

[web2py:12081] Re: Weird thing with SQLFORM

2008-11-18 Thread pigmej
Hmmm I see dropdowns too, but any value of this one ( with category, defined db.docs_pages_ver.category.requires) is selected... I do not need the second relation... On Nov 18, 5:00 pm, mdipierro <[EMAIL PROTECTED]> wrote: > db.docs_pages_ver.category.requires=IS_NULL_OR(IS_IN_DB > (db,'docs_c

[web2py:12083] Re: itemize temporary data

2008-11-18 Thread Yarko Tymciurak
Bill - I meant this thread: http://groups.google.com/group/web2py/browse_thread/thread/597a47c35a6c5e31/53f658cbe8da2dc5 Regards, Yarko On Tue, Nov 18, 2008 at 10:27 AM, billf <[EMAIL PROTECTED]>wrote: > > Yarko > > Re "my note last night re: MVC ==> data / logic / presentation." - is > that f

[web2py:12084] Re: itemize

2008-11-18 Thread Yarko Tymciurak
Is this an error in documentation? limitby is a db.select() parameter; Looking at the t2.itemize code, it looks to be computed, and setup by sending the parameter 'nitems' (which defaults to 25). Try calling with: t2.itemize(db.mytable, query=db.mytable.id>0,nitems=my_page_size) On Tue, Nov 18

[web2py:12085] Re: where to put view logic

2008-11-18 Thread Yarko Tymciurak
> > In the simple case, this decays to something looking like this: > > view: index.html: > > {{ =person }} > > controlller: default.html::index() I meant derault.py::index() > > > ... > person = SQLFORM( db.person) > > > and SQLFORM is the utility function that operates as the controll

[web2py:12086] Re: itemize

2008-11-18 Thread Yarko Tymciurak
I think the docstring and documentation for t2.itemize needs to be updated; the options are: a list of tables, followed by options: query, orderby, nitems On Tue, Nov 18, 2008 at 12:20 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > Is this an error in documentation? > limitby is a db.select

[web2py:12087] Re: itemize

2008-11-18 Thread Wes James
didn't work - went back to 25 items per page On Tue, Nov 18, 2008 at 11:20 AM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > Is this an error in documentation? > limitby is a db.select() parameter; > Looking at the t2.itemize code, it looks to be computed, and setup by > sending the parameter 'nit

[web2py:12089] Re: itemize

2008-11-18 Thread Wes James
i should add, it shows 25 items per page with nitems=10 --~--~-~--~~~---~--~~ 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 To unsubscribe from t

[web2py:12088] Re: tier vs. module

2008-11-18 Thread Yarko
As far as a code base, my observation says it's stable... But it is a conceptual prototype - it's probably now ready for an architectural (design) review to see if there are any hidden issues lurking that we would like to address... 2 things come to mind for me: - deployment and versioning; -

[web2py:12090] Re: itemize

2008-11-18 Thread Wes James
the odd thing is, I change the 25 to 10 in the t2.py file on the nitems line and it works right - 10 items per page On Tue, Nov 18, 2008 at 11:29 AM, Wes James <[EMAIL PROTECTED]> wrote: > i should add, it shows 25 items per page with nitems=10 > --~--~-~--~~~---~--~-

[web2py:12091] Re: itemize

2008-11-18 Thread Wes James
oops, it is working. I had nitem=10 instead of nitems=10. So this does work: default.py controller def function() return dict(var=t2.itemize(db.dbname,nitems=10)) -wj On Tue, Nov 18, 2008 at 11:30 AM, Wes James <[EMAIL PROTECTED]> wrote: > the odd thing is, I change the 25 to 10 in the t

[web2py:12092] Re: itemize

2008-11-18 Thread Yarko Tymciurak
somethings wrong - I just try this from ipython, and it should work --- could you post your entire calling line? Thanks, Yarko from iPython (testing dictionary get, w/ default) --- In [1]: d = {} In [2]: print d.get('name') None In [3]: print d.get('nitems', 25) 25 In [4]: print

[web2py:12093] Re: itemize

2008-11-18 Thread Yarko Tymciurak
good - that makes sense; I'll send a doc patch to Massimo for T2 (it doesn't affect code, so don't worry). On Tue, Nov 18, 2008 at 12:36 PM, Wes James <[EMAIL PROTECTED]> wrote: > > oops, it is working. I had nitem=10 instead of nitems=10. > > So this does work: > > default.py controller > > de

[web2py:12082] Re: where to put view logic

2008-11-18 Thread yarko
On Nov 18, 10:41 am, billf <[EMAIL PROTECTED]> wrote: > Yarko > > Basically I agree with everything you say.  There are always going to > be some grey areas but that's life. > > For example, I could argue that hiding changes to the model could be > handled by the model (as opposed to the controll

[web2py:12094] Re: itemize

2008-11-18 Thread Wes James
How about also changing: return TABLE(_class='t2-itemize', *nav+[TR(represent(tables[0],row)) for row in rows]) to return TABLE(_class='t2-itemize', *nav+[TR(represent(tables[0],row)) for row in rows]+nav) so there is a na

[web2py:12095] Re: itemize

2008-11-18 Thread Wes James
this change is just below the nitems line in t2.py... On Tue, Nov 18, 2008 at 11:59 AM, Wes James <[EMAIL PROTECTED]> wrote: > How about also changing: > > return TABLE(_class='t2-itemize', > *nav+[TR(represent(tables[0],row)) for row in rows]) > > to > >

[web2py:12096] Re: itemize

2008-11-18 Thread Yarko Tymciurak
Massimo - how about this suggestion from Wes? On Tue, Nov 18, 2008 at 1:00 PM, Wes James <[EMAIL PROTECTED]> wrote: > > this change is just below the nitems line in t2.py... > > On Tue, Nov 18, 2008 at 11:59 AM, Wes James <[EMAIL PROTECTED]> wrote: > > How about also changing: > > > >

[web2py:12097] t2.itemize patch (documentation / docstring only)

2008-11-18 Thread Yarko Tymciurak
Massimo - Here is for everyone; I'm sending this separately too. Yarko === modified file 'docs/t2.tex' --- docs/t2.tex 2008-10-22 02:26:42 + +++ docs/t2.tex 2008-11-18 18:55:36 + @@ -40,7 +40,7 @@ \end{verbatim}} \noindent Video Tutorial (old): -{\footnotesize +{\footnotesize \begin{

[web2py:12098] Re: Weird thing with SQLFORM

2008-11-18 Thread mdipierro
what does this: I see dropdowns too, but any value of this one ( with category, defined db.docs_pages_ver.category.requires) is selected... mean? On Nov 18, 11:44 am, pigmej <[EMAIL PROTECTED]> wrote: > Hmmm > > I see dropdowns too, but any value of this one ( with category, > defined db.docs_

[web2py:12099] Re: itemize

2008-11-18 Thread mdipierro
yarko sent me a patch. accepted in trunk! On Nov 18, 1:04 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > Massimo - how about this suggestion from Wes? > > On Tue, Nov 18, 2008 at 1:00 PM, Wes James <[EMAIL PROTECTED]> wrote: > > > this change is just below the nitems line in t2.py... > > > On

[web2py:12100] Re: t2.itemize patch (documentation / docstring only)

2008-11-18 Thread mdipierro
in trunk. ;-) On Nov 18, 1:08 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > Massimo - > > Here is for everyone; I'm sending this separately too. > > Yarko > > === modified file 'docs/t2.tex' > --- docs/t2.tex 2008-10-22 02:26:42 + > +++ docs/t2.tex 2008-11-18 18:55:36 + > @@ -40,7 +4

[web2py:12101] get data from table in controller

2008-11-18 Thread Wes James
When a student clicks on a link they will see what scholarships they might get based on their current selections. I can do: if db.student.rank=='Senior': schols.append['Senior 1 schol'] but I have "Senior 1 schol" in a schols database is the best way to get to that schols database by doing:

[web2py:12102] Re: where to put view logic

2008-11-18 Thread billf
Responses below On Nov 18, 6:04 pm, yarko <[EMAIL PROTECTED]> wrote: > On Nov 18, 10:41 am, billf <[EMAIL PROTECTED]> wrote: > > > Yarko > > > Basically I agree with everything you say.  There are always going to > > be some grey areas but that's life. > > > For example, I could argue that hiding

[web2py:12103] Re: get data from table in controller

2008-11-18 Thread mdipierro
> allschols=db().select(db.scholarship.ALL) > > then how do I access the rows of data in allschols? is the first row > allschols[0] or allschols.fieldname? for item in allschols: do_something_with(item.fieldname) --~--~-~--~~~---~--~~ You received this message beca

[web2py:12104] Re: where to put view logic

2008-11-18 Thread Yarko Tymciurak
On Tue, Nov 18, 2008 at 2:03 PM, billf <[EMAIL PROTECTED]> wrote: > I'm not saying that the (presentation) view knows anything about the > model just that the change to the model could be catered for by a > (database/model) view, i.e. even the controller might not need to know > that the persist

[web2py:12105] Re: Weird thing with SQLFORM

2008-11-18 Thread pigmej
Hmmm I can select them, update etc. But in update form always "None" is selected ( first record ). The same thing in web2py-admin. Records has correct values but in update form there is nothing selected in this field. I have now the same problem with todo table... I'm sure that it works about

[web2py:12106] Re: Weird thing with SQLFORM

2008-11-18 Thread mdipierro
Now I get it! Yes, this is a bug introduced in 1.47. Fixed in trunk now. Massimo On Nov 18, 2:26 pm, pigmej <[EMAIL PROTECTED]> wrote: > Hmmm > > I can select them, update etc. But in update form always "None" is > selected ( first record ). > > The same thing in web2py-admin. Records has correc

[web2py:12107] Re: where to put view logic

2008-11-18 Thread billf
Re "SQLFORM is a convenience function - a helper; nothing says the controller has to use it; it's just handy if that's all you need. You would not be happy if you did NOT have it." Sure, but that doesn't make it a good MVC class. One simple example: SQLFORM is instantiated in the controller a

[web2py:12108] Re: itemize

2008-11-18 Thread mdipierro
Hi Wes, your patch is in as well. Massimo On Nov 18, 1:53 pm, mdipierro <[EMAIL PROTECTED]> wrote: > yarko sent me a patch. accepted in trunk! > > On Nov 18, 1:04 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > > > Massimo - how about this suggestion from Wes? > > > On Tue, Nov 18, 2008 at 1:

[web2py:12109] Re: where to put view logic

2008-11-18 Thread Yarko Tymciurak
Making SQLFORM (or anything) "good MVC" isn't the point, I think. When you need simple, direct data form to user (as admin does), it's a design choice to use this convenience function - in that case, strict MVC is just not of primary importance - basically, we don't care that much (because we don'

[web2py:12110] Re: Weird thing with SQLFORM

2008-11-18 Thread Jędrzej Nowak
Nice to hear it ;) I'm going to check it now :) On Tue, 18 Nov 2008 12:50:29 -0800 (PST) mdipierro <[EMAIL PROTECTED]> wrote: > > Now I get it! Yes, this is a bug introduced in 1.47. Fixed in trunk > now. > > Massimo > > On Nov 18, 2:26 pm, pigmej <[EMAIL PROTECTED]> wrote: > > Hmmm > > > >

[web2py:12111] Re: Web2py and pexpect?

2008-11-18 Thread mdipierro
I am checking pexpect. It is fantastic. It is really easy to integrate in web2py because it is a single file. Too bad does not work on windows. Anyway, this really opens the door to a lot interesting applications. Massimo On Nov 17, 2:21 pm, mdipierro <[EMAIL PROTECTED]> wrote: > I mean actual p

[web2py:12112] Re: Weird thing with SQLFORM

2008-11-18 Thread Jędrzej Nowak
Ok, works ;) On Tue, 18 Nov 2008 12:50:29 -0800 (PST) mdipierro <[EMAIL PROTECTED]> wrote: > > Now I get it! Yes, this is a bug introduced in 1.47. Fixed in trunk > now. > > Massimo > > On Nov 18, 2:26 pm, pigmej <[EMAIL PROTECTED]> wrote: > > Hmmm > > > > I can select them, update etc. But i

[web2py:12113] Re: itemize temporary data

2008-11-18 Thread Baron
These tables are Python objects, so is there a way to instantiate them without a database? Otherwise I'll do as you suggest, Bill, and make my own itemize. Baron On Nov 19, 12:33 am, billf <[EMAIL PROTECTED]> wrote: > I don't think you can - as you say itemize takes tables and an > optional que

[web2py:12114] is_in_set

2008-11-18 Thread Wes James
I know that a dropdown list can be created with is_in_set(['yes','no']), but i need numeric values for the select items. Yes No can an is_in_set provide this kind of select? thx, -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:12115] Re: is_in_set

2008-11-18 Thread mdipierro
IS_IN_SET(range(1,10)) should work. If not try IS_IN_SET([str(i) for i in range(1,10)]) On Nov 18, 5:44 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I know that a dropdown list can be created with > is_in_set(['yes','no']), but i need numeric values for the select > items. > > > Yes > No > > >

[web2py:12116] Re: is_in_set

2008-11-18 Thread Wes James
I don't understand how this provides numeric value= items but have text in the visual part of the select. On Tue, Nov 18, 2008 at 5:06 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > IS_IN_SET(range(1,10)) should work. If not try > IS_IN_SET([str(i) for i in range(1,10)]) > > On Nov 18, 5:44 pm, "We

[web2py:12117] Re: is_in_set

2008-11-18 Thread mdipierro
Perhaps I misunderstood the question. response.vars always contains strings no matter what. If the field if type 'integer' the value automatically converted to integer. Massimo On Nov 18, 6:11 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I don't understand how this provides numeric value= items

[web2py:12118] web2py book in PDF at $12.50

2008-11-18 Thread mdipierro
http://www.lulu.com/content/4968879 This is without the Wiley cover since Wiley could not accommodate the requirements but it is the same book. If you buy it, let me know if lulu.com works for you. Please do not redistribute it or you get me in trouble. Massimo --~--~-~--~~-

[web2py:12119] Re: web2py book in PDF at $12.50

2008-11-18 Thread Zoom . Quiet
On Wed, Nov 19, 2008 at 09:45, mdipierro <[EMAIL PROTECTED]> wrote: > > http://www.lulu.com/content/4968879 > > This is without the Wiley cover since Wiley could not accommodate the > requirements but it is the same book. > If you buy it, let me know if lulu.com works for you. > > Please do not red

[web2py:12120] Re: web2py book in PDF at $12.50

2008-11-18 Thread Alfonso de la Guarda
Massimo, Cool, i have purchased your book. Great job. Saludos, Alfonso de la Guarda 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 COS www.cosperu.com alfonsodg.blogspot.com alfonsodg.wordpress.com Telef. 997550914 On Tue

[web2py:12121] Re: web2py book in PDF at $12.50

2008-11-18 Thread cesmiga
Massimo, I just ordered the book also. Thank you for making this much more affordable. Are you going to link this eBook on the web site? I hope you do so more people will purchase it and assist in growing the community. Christopher Smiga mdipierro wrote: > http://www.lulu.com/content/4968

[web2py:12122] Re: is_in_set

2008-11-18 Thread DenesL
Wes, I think what you are looking for is: db.table.field.requires=IS_IN_SET([1,2],labels=['yes','no']) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email t

[web2py:12123] Re: web2py book in PDF at $12.50

2008-11-18 Thread ceej
If you type web2py in the search box it doesn't find it, maybe you should let lulu know that :) On Nov 18, 6:37 pm, cesmiga <[EMAIL PROTECTED]> wrote: > Massimo, > > I just ordered the book also.  Thank you for making this much more > affordable.  Are you going to link this eBook on the web site?

[web2py:12124] Re: is_in_set

2008-11-18 Thread Wes James
Denes, Yes! that works! this lists rocks!! -wj On Tue, Nov 18, 2008 at 7:52 PM, DenesL <[EMAIL PROTECTED]> wrote: > > Wes, I think what you are looking for is: > > db.table.field.requires=IS_IN_SET([1,2],labels=['yes','no']) --~--~-~--~~~---~--~~ You received t

[web2py:12125] Re: web2py book in PDF at $12.50

2008-11-18 Thread ed
Massimo, Just downloaded the book. I am glad it is very affordable than the $50 book. Thank you very much. ed On Nov 19, 10:37 am, cesmiga <[EMAIL PROTECTED]> wrote: > Massimo, > > I just ordered the book also. Thank you for making this much more > affordable. Are you going to link this eBook o

[web2py:12126] Re: web2py book in PDF at $12.50

2008-11-18 Thread jwm
Awesome deal, I just purchased it and thanks for such a great framework! --~--~-~--~~~---~--~~ 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 To u

[web2py:12127] Re: web2py book in PDF at $12.50

2008-11-18 Thread mdipierro
Thank you all for buying the book!!! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send ema

[web2py:12128] Re: web2py book in PDF at $12.50

2008-11-18 Thread Baron
can you enable paperback order for Lulu, or would that conflict with you Wiley agreement? I'm just curious - I will purchase the download version anyway. On Nov 19, 3:34 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Thank you all for buying the book!!! --~--~-~--~~~---~-

[web2py:12129] Re: Possible bug in IS_URL

2008-11-18 Thread Jonathan Benn
Hi pigmej, On Nov 17, 8:21 pm, pigmej <[EMAIL PROTECTED]> wrote: > db.pages.original_link.requires=IS_NULL_OR(IS_URL > (error_message="...")) > > it returns error forhttp://domain.com/file.html > but it works forhttp://domain.com > > Is it bug or "feature" ? I just tried testing this with the

[web2py:12130] Re: Way to generate atom feed

2008-11-18 Thread Jonathan Benn
On Nov 17, 3:38 pm, pigmej <[EMAIL PROTECTED]> wrote: > Sure, if I made it to work as a module ;) > When I'll find some free time, I'll write it ;) Thanks! --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:12131] form variables not validate in "form.accepts"

2008-11-18 Thread ed
Hi, I've been trying to validate and display the form variables in the sample code below but failed. - def emplogin(): response.menu =[ ['Home', False,t2.action('home')],['Sign In',False,t2.action('')]]

[web2py:12132] Re: Web2Py Manual (e-book)

2008-11-18 Thread Baron
http://groups.google.com/group/web2py/browse_thread/thread/4f1b43fcc4b73a9b On Nov 8, 2:03 am, ural <[EMAIL PROTECTED]> wrote: > Hi ! > İs there a way to get the e-edition of Web2Py Manual ? ( I do not live > in USA.) --~--~-~--~~~---~--~~ You received this messag

[web2py:12133] Re: web2py book in PDF at $12.50

2008-11-18 Thread mdipierro
That may conflict. I do not know yet. On Nov 18, 10:55 pm, Baron <[EMAIL PROTECTED]> wrote: > can you enable paperback order for Lulu, or would that conflict with > you Wiley agreement? > I'm just curious - I will purchase the download version anyway. > > On Nov 19, 3:34 pm, mdipierro <[EMAIL PRO

[web2py:12134] Re: form variables not validate in "form.accepts"

2008-11-18 Thread mdipierro
It works for me. Perhaps this is due to a bug that was introuced in 1.49 and was fixed today in trunk. I will repost on Thursday. Massimo On Nov 18, 11:03 pm, ed <[EMAIL PROTECTED]> wrote: > Hi, > I've been trying to validate and display the form variables in the > sample code below but failed.

[web2py:12135] estore

2008-11-18 Thread mdipierro
from our fried ceej: http://www.klasproducts.com --~--~-~--~~~---~--~~ 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 To unsubscribe from this g

[web2py:12136] Re: estore

2008-11-18 Thread Yarko Tymciurak
Nice! And powered by web2py too ;-) On Tue, Nov 18, 2008 at 11:22 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > from our fried ceej: > > http://www.klasproducts.com > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:12137] Re: web2py book in PDF at $12.50

2008-11-18 Thread Phyo Arkar
Wow , Very nice deal!! Good job Massimo! I already have the book , so I dont need another. and its already serving me well. :) looking forward for a new book with T2. On Wed, Nov 19, 2008 at 5:06 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > That may conflict. I do not know yet. > > On Nov 18,

[web2py:12138] Re: estore

2008-11-18 Thread Phyo Arkar
Well done ceej! Just one problem , a little slow (heavy) on my slow speed connection. Else , it is fine. :) On Wed, Nov 19, 2008 at 5:48 AM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: > Nice! And powered by web2py too ;-) > > > > On Tue, Nov 18, 2008 at 11:22 PM, mdipierro <[EMAIL PROTECTED]>

[web2py:12139] Re: Web2py and pexpect?

2008-11-18 Thread artien
Yeah I have used it quite a bit already to control other programs in the server administration webinterface I'm making with web2py. Catching all possible responses (by that i mean like if you try something and the program you control tells you something) and handle them is really most of the work

[web2py:12140] Re: form variables not validate in "form.accepts"

2008-11-18 Thread ed
Massimo, My web2py version is 1.44. Is there any bug reported the same as what i encountered? ed On Nov 19, 1:09 pm, mdipierro <[EMAIL PROTECTED]> wrote: > It works for me. Perhaps this is due to a bug that was introuced in > 1.49 and was fixed today in trunk. > I will repost on Thursday. > > Mas

[web2py:12141] Re: itemize temporary data

2008-11-18 Thread billf
When you say "these tables are Python objects", I assume you are refererring to your temporary data(?) The "detour" above about in-memory tables was just to provide an alternative to making your own itemize, i.e.: - define your temp tables as in-memory tables - insert your "rows" instead of appen

[web2py:12142] Re: estore

2008-11-18 Thread ceej
Thank you all :) @Phyo, there is no caching yet but I'm implementing it. So that in mind I think it runs relatively quickly :) P.s. I have some other projects in the works, one of them includes finally getting web2casts live. On Nov 18, 9:54 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > Well do

[web2py:12143] Re: form variables not validate in "form.accepts"

2008-11-18 Thread ed
Massimo, It seems the other app Puppy I downloaded had the same problem. Errors like blank fields are not displayed. Can this be a T2 problem, corrupted maybe? I tried JobSite and errors are displayed. Thanks ed On Nov 19, 2:25 pm, ed <[EMAIL PROTECTED]> wrote: > Massimo, > My web2py version is 1

[web2py:12144] Re: web2py book in PDF at $12.50

2008-11-18 Thread Grahack
Bought this pdf from France with Paypal, worked well. Now I go for my usual typo hunt! --~--~-~--~~~---~--~~ 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@googlegr

[web2py:12145] Re: form variables not validate in "form.accepts"

2008-11-18 Thread ed
Massimo, Solved the problem, corrupted "plugin_t2". Thanks ed On Nov 19, 3:16 pm, ed <[EMAIL PROTECTED]> wrote: > Massimo, > It seems the other app Puppy I downloaded had the same problem. > Errors like blank fields are not displayed. Can this be a T2 problem, > corrupted maybe? > I tried JobSit