[web2py:22136] Re: Decorators in logical expressions

2009-05-19 Thread annet . vermeer
Yarko, Couldn't your decorator w/ arguments be written: @auth.requires_any_membership( *list ) Like this?: @auth.requires_membership(['site','core']) def crud_address(): return dict() @auth.requires_membership('site') def crud_event(): return dict() Core is an intersection of

[web2py:22137] Re: Custom SQLFORM layout

2009-05-19 Thread Alexey Nezhdanov
Here is it. Small, nice, tested and documented. One downside though. I tried hard but failed to understand the original self.trows purpose. While I preserved default functionality, I'm not sure if I missed something subtle. And, btw, use of trows seemed buggy for me. Here is my best guess: trows

[web2py:22138] Re: Menu not always showing up...

2009-05-19 Thread Jason Brower
Actually, I just put in my default.py file the only controller file I am using. I place it before all the other methods that I initialize. I am lookingto it more now. Regards, Jason On Mon, 2009-05-18 at 03:55 -0700, annet.verm...@gmail.com wrote: Jason, Just a thought ... Did you put the

[web2py:22139] Re: another web2py powered

2009-05-19 Thread Yarko Tymciurak
This is nonsense - None of the contact information or registry about the site or domains is true - all phone numbers, in registry and on the site itself are disconnected numbers; no name this is registered under is true; the site uses deceptive practices to lure users into registering to buy bid

[web2py:22140] Re: Custom SQLFORM layout

2009-05-19 Thread Alexey Nezhdanov
Version 2 of the patch I discovered that I messed up self.custom.dspval contents with previous patch. And having both functions (do_custom do_standard) is more convenient - this way used can decide where he wants standard fields to go - before his ones of after them. On Tue, May 19, 2009 at

[web2py:22141] how to create index on a database table

2009-05-19 Thread benqktc
hi everybody, i am new to web2py. my question is : is there any means to create index on a database table column when defining that table using SQLDB.define_table? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:22142] Re: how to create index on a database table

2009-05-19 Thread AchipA
Explicitly, no, but web2py will implicitly create indexes on id's and columns containing foreign keys (=referencing other tables). On May 19, 10:20 am, benqktc zxzwin...@gmail.com wrote: hi everybody, i am new to web2py. my question is : is there any means to create index on a database table

[web2py:22143] cannot open page

2009-05-19 Thread durga
i have created an app which is working before i added the code for session expiration. # ### # ## session expiration # ### t0 = time.time() if session.authorized: if

[web2py:22144] Re: how to create index on a database table

2009-05-19 Thread Alexey Nezhdanov
Also I think that you will encounter no problems if you just directly connect to sql server console and add index there. On May 19, 12:20 pm, benqktc zxzwin...@gmail.com wrote: hi everybody, i am new to web2py. my question is : is there any means to create index on a database table column

[web2py:22145] Re: how to create index on a database table

2009-05-19 Thread benqktc
adding 'unique=True' to SQLField causes web2py to implicitly create unique index on that column, that works for me. but what if i just want an index not an unique index. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:22146] Re: authorization

2009-05-19 Thread annet . vermeer
I still haven't solved the problem described in the post above. This is what I have got so far: @auth.requires_membership('user_3') def crud_address(): db.adres.bedrijf.default=auth.user.bedrijf form=crud.create(db.adres) rows=db(db.adres.bedrijf==auth.user.bedrijf)\

[web2py:22147] Inconsistency in INPUT(value=)

2009-05-19 Thread Alexey Nezhdanov
Hello Please notice this difference: print INPUT(_type='hidden', value='test') input type=hidden / print INPUT(_type='text', value='test') input type=text value=test / and at the same time: print INPUT(_type='text',_value='test') input type=text value=test / print

[web2py:22148] Re: Inconsistency in INPUT(value=)

2009-05-19 Thread mdipierro
This is simply an undocumented issue and it is correct. _value is the tag attribute and it works as expected. value is for internal use and it contain the current value of an input field that is to be set by the user. hidden input fields ignore value because they only have a _value. I will try

[web2py:22149] Re: Corrections to the manual

2009-05-19 Thread Fran
On 18 May, 20:41, Skylar Saveland skylar.savel...@gmail.com wrote: there are few things wrong with this block on page 29.  Where is the canonical place to issue notice of small errors? For small errors, I generally mail Massimo personally. Things which require discussion best sent here. Issue

[web2py:22150] Re: another web2py powered

2009-05-19 Thread TheDude
What website is it? On May 19, 4:30 am, Yarko Tymciurak yark...@gmail.com wrote: This is nonsense - None of the contact information or registry about the site or domains is true - all phone numbers, in registry and on the site itself are disconnected numbers; no name this is registered

[web2py:22151] Re: another web2py powered

2009-05-19 Thread JohnMc
Heck, even his address listed on his website is nothing more than the address of teh Palo Alto US Post Office. Granted, but he is using a Post Office box. So it would be proper to use the address as presented. That being said, if he is a fraud and uses the mails in any way, he could have the US

[web2py:22152] Re: how to create index on a database table

2009-05-19 Thread TheDude
Hmm may be we can add an index=True option? Even better have something like: db.add_index('table', 'name_index_as', ['field1','field2'], unique=True) It'll add an index with multiple fields, unique=True is obviously optional. However, this may be to much work, and may be focusing ont he actual

[web2py:22153] look into this

2009-05-19 Thread mdipierro
http://www.trilancer.com/jpolite/#t1 --~--~-~--~~~---~--~~ 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 email

[web2py:22154] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-19 Thread Timmie
Hello, I need some more assistance or documentation. look into the new welcome app. There are three menus defined in models/ menu.py They are used in views/layout.html. The CSS is from public domain but there is a link to an article about it in static/base.css * How I get a horizontal instead

[web2py:22155] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-19 Thread mdipierro
There is no need to edit the CSS instead of {{=MENU(response.menu)}} {{menu=MENU(response.menu)}} {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}} {{=menu}} On May 19, 10:34 am, Timmie timmichel...@gmx-topmail.de wrote: Hello, I need some more assistance or documentation. look

[web2py:22156] perhaps the best way to scale web2py

2009-05-19 Thread mdipierro
http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer this module keeps tracks of cookies so each client is always served by the same server and sessions can stay on the local filesystems. Only the uploads folder needs to be cross (nfs?) mounted. Massimo

[web2py:22157] perhaps the best way to scale web2py

2009-05-19 Thread mdipierro
http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer this module keeps tracks of cookies so each client is always served by the same server and sessions can stay on the local filesystems. Only the uploads folder needs to be cross (nfs?) mounted. Massimo

[web2py:22158] Re: another web2py powered

2009-05-19 Thread Yarko Tymciurak
Massimo removed the website - no publicity to them - I will not repeat the URL. I wrote notes on ALL (and there are MANY) the different addresses, none of which seem to be associated to any real name (and there are many names things are registered under); I decided NOT to post that here. I

[web2py:22159] Re: another web2py powered

2009-05-19 Thread Yarko Tymciurak
On Tue, May 19, 2009 at 9:46 AM, JohnMc maruadventu...@gmail.com wrote: Heck, even his address listed on his website is nothing more than the address of teh Palo Alto US Post Office. Granted, but he is using a Post Office box. So it would be proper to use the address as presented. That

[web2py:22160] Of use to someone?

2009-05-19 Thread JohnMc
A cron like set of functions for use on GAE. Might be of use to someone here? a href=http://groups.google.com/group/httpmr-discuss/ browse_thread/thread/1648611a54c01aaurl/a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:22161] Re: how to create index on a database table

2009-05-19 Thread Joe Barnhart
I added some indexes using SQLite syntax: db.executesql('CREATE INDEX IF NOT EXISTS me_indx_1 ON meet_event (id_event);') But I have to say, the database slowed down so much it actually made the web pages time out! I have NO idea why declaring some indexes would cause it to go slower. I

[web2py:22164] Re: Of use to someone?

2009-05-19 Thread AchipA
Forgot to add - you could probably make softcron work on GAE. I don't use GAE at the moment, so I'm unable to verify, but in general it certainly is a possibility. On May 19, 6:33 pm, JohnMc maruadventu...@gmail.com wrote: A cron like set of functions for use on GAE. Might be of use to someone

[web2py:22162] Re: Auth, Crud and Service in 1.62rc2

2009-05-19 Thread Álvaro Justen [Turicas]
On Sun, May 17, 2009 at 4:48 AM, annet annet.verm...@gmail.com wrote: I explored web2py version 1.62rc2 and wonder why Auth, Crud and Service are instantiated by default and why the needed table are created by default. I have a separate database application in which I define the none

[web2py:22163] Re: Of use to someone?

2009-05-19 Thread AchipA
I'm very much keen on extending web2py cron to GAE, but the proposed solution in the link above does not seem reliable to me at all. I'd say you're probably better off by external triggering from cron-sites. On May 19, 6:33 pm, JohnMc maruadventu...@gmail.com wrote: A cron like set of functions

[web2py:22165] running examples on gae

2009-05-19 Thread Hans Donner
Trying to make the web2py examples run out of the box on google apps engine (sdk). It now runs almost all examples, only the purchase part of the database not yet, anyone a suggestion for this? The fixing might be a bit quickdirty, but I was after the results. Index:

[web2py:22166] jPolite solved (almost) all our problems

2009-05-19 Thread mdipierro
I turned jpolite into a web2py app. https://www.web2py.com/jpolite (there is a download link to the w2p file, requires web2py 1.62.1) The form submission needs more work, perhaps you can help. When that's fixed we can integrate with Auth and port T3 on this. Massimo

[web2py:22168] Re: running examples on gae

2009-05-19 Thread mdipierro
Because the example we provide uses a JOIN and GAE cannot do JOINS. Massimo On May 19, 1:57 pm, Hans Donner hans.don...@pobox.com wrote: Trying to make the web2py examples run out of the box on google apps engine (sdk). It now runs almost all examples, only the purchase part of the database

[web2py:22169] Re: tools.py does not use rewrite.py wrapped URL()

2009-05-19 Thread Guido Kollerie
On 17-mei-2009, at 23:03, mdipierro wrote: Massimo, fixed. please check trunk and let me know. Confirmed to have been fixed. Thanks for the impressive turn around time (once again) :-) -- Guido --~--~-~--~~~---~--~~ You received this message because you

[web2py:22170] perlbal in python ?!

2009-05-19 Thread mdipierro
Is there something like this in python? http://search.cpan.org/dist/Perlbal/ If not, anybody interesting in rewriting it in Python? Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework

[web2py:22171] Re: running examples on gae

2009-05-19 Thread HansD
I know GAE cannot do direct JOINS. However, a modification in the table layout or a workaround on DAL level should be possible I think (but I haven't had the time yet to figure that one out yet). On May 19, 9:10 pm, mdipierro mdipie...@cs.depaul.edu wrote: Because the example we provide uses a

[web2py:22172] Re: running examples on gae

2009-05-19 Thread dlypka
Does the latest web2py Admin page now run on GAE so that we can directly edit the .py files on the GAE file system, thereby doing all web2py dev in the cloud? Or is it still necessary to do development on a private machine and then upload the modified app to GAE each time? On May 19, 3:35 pm,

[web2py:22173] Re: running examples on gae

2009-05-19 Thread mdipierro
This is not possible because the GAE file system is readonly. If you want to develop on gae, you must use T3. In that case pages are stores in the DB and not on filesystem. Massimo On May 19, 2:46 pm, dlypka dly...@gmail.com wrote: Does the latest web2py Admin page now run on GAE so that we

[web2py:22174] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Tim Michelsen
I turned jpolite into a web2py app. https://www.web2py.com/jpolite I can see how thrilled you are. Courious to see your next level web2py app... Will this also contain a JavaScript proxy? http://faq.openlayers.org/proxyhost/how-do-i-set-up-a-proxyhost/

[web2py:22175] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-19 Thread Tim Michelsen
{{menu=MENU(response.menu)}} {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}} {{=menu}} Thanks. I though I had to define the class in the controller. This is really cool. Thanks for that. --~--~-~--~~~---~--~~ You received this message because you are

[web2py:22176] Re: running examples on gae

2009-05-19 Thread HansD
update for database_examples.py: - small bug fixed for the gae_hack - updated the form to work with dropdown boxes (also for non-gae) Index: applications/examples/controllers/database_examples.py === ---

[web2py:22177] Re: jPolite solved (almost) all our problems

2009-05-19 Thread mikech
How do I unzip the w2p file on Windows for this app? Mike On May 19, 12:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: I turned jpolite into a web2py app. https://www.web2py.com/jpolite (there is a download link to the w2p file, requires web2py 1.62.1) The form submission needs more

[web2py:22178] Re: perhaps the best way to scale web2py

2009-05-19 Thread Douglas Soares de Andrade
Em Terça-feira 19 Maio 2009, às 12:58:08, mdipierro escreveu: http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer this module keeps tracks of cookies so each client is always served by the same server and sessions can stay on the local filesystems. Only the uploads folder

[web2py:22179] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Kuba Kucharski
Hi How do I unzip the w2p file on Windows for this app? You don't have to. Just install the app via admin interface. -- Kuba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post

[web2py:22180] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Horst Herb
On Wed, May 20, 2009 at 5:06 AM, mdipierro mdipie...@cs.depaul.edu wrote: I turned jpolite into a web2py app. https://www.web2py.com/jpolite Jaw dropping - just what I needed for my web app. Just when I was in the process of integrating http://www.dhtmlgoodies.com/index.html?page=dhtml-suite

[web2py:22181] Re: Hoping to increase my connections to web2py people on linkedIn

2009-05-19 Thread Álvaro Justen [Turicas]
On Mon, May 18, 2009 at 1:07 AM, mdipierro mdipie...@cs.depaul.edu wrote: I have a better idea. A web2py app that provides: - web pages for developers/contributors/users - a database of projects (could replace appliances) - a database of code snippets (could replace AlterEgo) - a wiki -

[web2py:22183] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Kuba Kucharski
It is ok to ask. Just upload a file, OR type an url(full http path to the w2p file), then type the name under which your app will be installed.. submit your data.. and that is all. Your app is now installed, you can see it, edit, etc. from your installed apps list. On May 20, 2009 2:37 AM,

[web2py:22185] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Álvaro Justen [Turicas]
On Tue, May 19, 2009 at 8:00 PM, mikech mp.ch...@gmail.com wrote: How do I unzip the w2p file on Windows for this app? .w2p = .tar.gz If you don't have web2py 1.62, rename .w2p to .tar.gz, gunzip it and use app.tar as usual. -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21

[web2py:22186] Re: running examples on gae

2009-05-19 Thread mdipierro
Can you please email this to me? thanks On May 19, 5:13 pm, HansD hans.don...@pobox.com wrote: update for database_examples.py: - small bug fixed for the gae_hack - updated the form to work with dropdown boxes (also for non-gae) Index: applications/examples/controllers/database_examples.py

[web2py:22187] Re: perhaps the best way to scale web2py

2009-05-19 Thread mdipierro
cool thanks. Massimo On May 19, 6:06 pm, Douglas Soares de Andrade dsandr...@gmail.com wrote: Em Terça-feira 19 Maio 2009, às 12:58:08, mdipierro escreveu: http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer this module keeps tracks of cookies so each client is always

[web2py:22188] Re: Custom SQLFORM layout

2009-05-19 Thread Alexey Nezhdanov
Massimo, can you please comment on the points that I mentioned. I'm still interested in that solution and using out-of-trunc code is not very convenient if upgrading. There were 2 main points: 1) Is there recommended approach for _reusing_widgets_ generated by SQLFORM? Current code contains

[web2py:22189] Re: jPolite solved (almost) all our problems

2009-05-19 Thread mikech
Yarko: Thanks for the png's. My version says that I'm running 1.62.1 as well, and that my version is current, but this is not what I see on my admin website. I'm running this under Vista. I guess my version must be just slightly older than yours, unless this is a bug. I am working with the

[web2py:22190] Re: look into this

2009-05-19 Thread Jason Brower
Ironically, I just finnished a school project I did for our journalism students. They wanted to do this very thing, I set all this very stuff up in jquery with a basic php page management system. I wanted to do it in python, but I didn't know about web2py when I started the project. Regards,

[web2py:22192] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Álvaro Justen [Turicas]
On Wed, May 20, 2009 at 1:00 AM, Michael Chean mp.ch...@gmail.com wrote: This is what I see: Ok, your web2py is updated but your admin app isn't. Please remove applications/admin/* and uncompress admin.w2p inside it. -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 /

[web2py:22193] Re: jPolite solved (almost) all our problems

2009-05-19 Thread mdipierro
I posted a new jpolite.w2p and not FROM(,_class='ajaxform1') end SQLFORM(,_class=ajaxform1') submit within the same box. There is more thing that needs to be fixed, incorpprate web2py_ajax into is for calendar, etc. All these changes required/require modifying and code js

[web2py:22195] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-19 Thread mdipierro
I am going to change this. This was new in version 1.62 and not really well thought. In trunk now you can do {{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}} and this more in line with the syntax of other helpers. The syntax in the previous example is gone. massimo On May

[web2py:22196] Re: Custom SQLFORM layout

2009-05-19 Thread Alexey Nezhdanov
On Wednesday 20 May 2009 08:34:13 mdipierro wrote: This is correct it is required to refresh a widget is the form contains errors. Ok, then there is certainly a bug in current code, just as I described. Because it goes one level deeper that needed and puts new widget into old one. I checked

[web2py:22197] Re: Custom SQLFORM layout

2009-05-19 Thread mdipierro
On May 19, 11:37 pm, Alexey Nezhdanov snak...@gmail.com wrote: On Wednesday 20 May 2009 08:34:13 mdipierro wrote: This is correct it is required to refresh a widget is the form contains errors. Ok, then there is certainly a bug in current code, just as I described. Because it goes one

[web2py:22198] Re: perhaps the best way to scale web2py

2009-05-19 Thread mdipierro
Yes this better and it is in C, not perl. Can you add a reference to this in AlterEgo? Also the wiki should have a section on scalability and this should be there. Massimo On May 19, 6:06 pm, Douglas Soares de Andrade dsandr...@gmail.com wrote: Em Terça-feira 19 Maio 2009, às 12:58:08,

[web2py:22199] Re: Hoping to increase my connections to web2py people on linkedIn

2009-05-19 Thread mdipierro
The first step is writing a model about what we want to store. Minimally I think: - people (with an image and a profile page) - file (with description, author*, timestamp*, revision number*) - pages (with title, author*, timestamp*, revision number*) * should be automatically generated.

[web2py:22200] Re: jPolite solved (almost) all our problems

2009-05-19 Thread mdipierro
Tim, I do not get it. What does the JS proxy do? Massimo On May 19, 4:54 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote: I turned jpolite into a web2py app. https://www.web2py.com/jpolite I can see how thrilled you are. Courious to see your next level web2py app... Will this also