[web2py] when I run web2p[y in Vista, and I click on adminstrative, what password do I enter???

2012-04-01 Thread jayvandal

[web2py] Re: when I run web2p[y in Vista, and I click on adminstrative, what password do I enter???

2012-04-01 Thread Oli
You have to register yourself. Am Sonntag, 1. April 2012 08:05:38 UTC+2 schrieb jayvandal:

[web2py] Re: upload porblem (argent )

2012-04-01 Thread Hassan Alnatour
windows server 2008 , python 2.7 and i am using apache , what is rocket ??

[web2py] Re: web2py win7 64bits

2012-04-01 Thread Anthony
When you start the web2py server via the command line, you are setting the password. Then, when you access the admin interface, you have to provide the password that you set when you started the server. Anthony On Sunday, April 1, 2012 8:27:06 AM UTC-4, Ovidio Marinho wrote: Because

[web2py] Re: Can I use a modified version of the Fedora setup script on my site?

2012-04-01 Thread Massimo Di Pierro
II do not think there is content in the setup scripts that really require any form of license or copyright. I am happy to declare them public domain and you can do whatever you want. Massimo On Saturday, 31 March 2012 23:13:09 UTC-5, Site Admin wrote: Hi all, I have set up a site for

Re: [web2py] wb2py with existing database

2012-04-01 Thread Manuele Pesenti
Il 31/03/2012 17:25, Anthony ha scritto: Github is probably best (or possibly Bitbucket or Google Code). I think the plan is for web2pyslices to add a plugin content type for posting plugins (you would still probably host the actual code at Github or elsewhere and link to it from

Re: [web2py] wb2py with existing database

2012-04-01 Thread Anthony
Ok from now you can find the updated code on github at this link: https://github.com/manuelep/plugin_lookout You should replace the Sourceforge link on the web2pyslices post with the above link.

[web2py] Re: Separate form elements in a view ?

2012-04-01 Thread Anthony
See http://web2py.com/books/default/chapter/29/7#Custom-forms and http://web2py.com/books/default/chapter/29/7#SQLFORM-in-HTML. Forms are also web2py HTML helper objects, so if you just need to make little tweaks, you can use the server-side DOM to manipulate the form object before serializing

[web2py] auth.messages.logged_out not flashing unless next redirect specified

2012-04-01 Thread weheh
Is there a good reason why auth.messages.logged_out doesn't flash upon logout unless there is a next argument? # this flashes def logout(): auth.messages.logged_out = 'bye bye' return dict(form=auth.logout(next=URL(c='mycontroller', f='index'))) # this does not flash def logout():

[web2py] Re: auth.messages.logged_out not flashing unless next redirect specified

2012-04-01 Thread Massimo Di Pierro
do you have an auth.settings.logout_next = ... somewhere? Try add a print request.env.path_info in the db.py. I suspect somehow in the latter case you have two redirects and that causes the flash do be eaten by the first redirect On Sunday, 1 April 2012 12:55:28 UTC-5, weheh wrote: Is

Re: [web2py] wb2py with existing database

2012-04-01 Thread Manuele Pesenti
Il 01/04/2012 18:25, Anthony ha scritto: You should replace the Sourceforge link on the web2pyslices post with the above link. already added it in a comment... what's the problem with sourceforge? M.

Re: [web2py] is_in_db two tables

2012-04-01 Thread Manuele Pesenti
Il 01/04/2012 19:52, CtrlSoft ha scritto: i have the follwing tables: || db.define_table('topmenu', Field('parent',type='integer', requires=IS_EMPTY_OR(IS_IN_DB(db, 'topmenu.id', '%(title)s'))), Field('link', type='string', label=T('Link')), Field('title',

Re: [web2py] is_in_db two tables

2012-04-01 Thread CtrlSoft
it's a good idea, but i'm using sqlform.grid in app admin and this will create confusion in rows ..., i need to hide rows that are in sidemenu or in top menu.

[web2py] Re: Separate form elements in a view ?

2012-04-01 Thread bussiere adrien
i will dig it regards. Bussiere Le dimanche 1 avril 2012 18:33:48 UTC+2, Anthony a écrit : See http://web2py.com/books/default/chapter/29/7#Custom-forms and http://web2py.com/books/default/chapter/29/7#SQLFORM-in-HTML . Forms are also web2py HTML helper objects, so if you just need to

Re: [web2py] Re: How to prevent form within component submitting?

2012-04-01 Thread Ronghui Yu
It works, thanks simon. By the way, is it possible to add some extra attribute to the form works as a validator, so that the validator could be run before submit, if it returns false, just stop submit. In that case, this will decrease a little bit work. On Mon, Apr 2, 2012 at 2:32 AM, simon

[web2py] web service using validate_and_insert quick question

2012-04-01 Thread Matt
Hi there, Assuming I've got a simple webservice that accepts a company_id, and photo_image via a form POST. db.table('person', Field('company', 'integer', required = True), Field('photo_image', 'upload', required = True, requires = IS_IMAGE()) def webservice_name(): person_id =

[web2py] SpatiaLite support now in trunk

2012-04-01 Thread DenesL
SpatiaLite support using new DB adapter now in trunk: db=DAL('spatialite://...') NOTES: After installation of the required SpatiaLite libraries Windows users *must* rename libspatialite-2.dll as libspatialite.dll for it to be picked-up by web2py. Support under Linux and Mac has not been

Re: [web2py] adding an item in a list:reference :

2012-04-01 Thread Kenny Chung
Im curious on this as well. Also, is list:reference valid for mysql? On Apr 1, 2012 2:23 PM, bussiere adrien bussi...@gmail.com wrote: ok i see the example : db.define_table('tag',Field('name'),format='%(name)s') db.define_table('product', Field('name'),

[web2py] Re: Multiple custom SQLFORMs on a page only able to submit one.

2012-04-01 Thread Anthony
In the method which defines the registration form, I return upload_form alongside as : return(reg_form=reg_form,upload_form=upload_form) The problem is that the _formkey and _formname hidden fields are created when you call form.accepts() -- so you have to call form.accepts() both when

[web2py] membership

2012-04-01 Thread CtrlSoft
how to hide tables based on user membership? i have following functin in controller: def view(): table = request.args(0) grid = SQLFORM.grid(db[table],args=request.args[:1], ui = dict(widget='', header='', content='', default='', cornerall='',

[web2py] Re: membership

2012-04-01 Thread Anthony
You can use auth.has_membership(role='some_role') to test whether the logged in user has membership in a given group. You can use that to conditionally display the links in the view as well as to restrict access to the grid (i.e., redirect somewhere if access is restricted). Anthony On

[web2py] Re: is_in_db two tables

2012-04-01 Thread Anthony
db.define_table(articles, Field('reference', db.sidemenu, requires=IS_IN_DB(db, 'sidemenu.id', '%(title)s')), *# here i need smth like : db.sidemenu | db.topmenu ... and is_in_db(db,'sidemenu.id' or 'topmenu.id')* Field('image', 'upload'), Field(title,label=T('Title

[web2py] Re: web service using validate_and_insert quick question

2012-04-01 Thread Matt
Hey Anthony, Thanks for that suggestion will try your approach. Thanks again, Matt On Monday, 2 April 2012 12:00:55 UTC+12, Anthony wrote: db.table('person', Field('company', 'integer', required = True), Field('photo_image', 'upload', required = True, requires = IS_IMAGE()) def

[web2py] Re: SpatiaLite support now in trunk

2012-04-01 Thread Massimo Di Pierro
why the renaming? Any way we can make it automatic? On Sunday, 1 April 2012 18:20:51 UTC-5, DenesL wrote: SpatiaLite support using new DB adapter now in trunk: db=DAL('spatialite://...') NOTES: After installation of the required SpatiaLite libraries Windows users *must* rename

Re: [web2py] adding an item in a list:reference :

2012-04-01 Thread Massimo Di Pierro
Not efficient in searches but supported by all backends. On Sunday, 1 April 2012 18:30:31 UTC-5, Kenny wrote: Im curious on this as well. Also, is list:reference valid for mysql? On Apr 1, 2012 2:23 PM, bussiere adrien bussi...@gmail.com wrote: ok i see the example :

Re: [web2py] wb2py with existing database

2012-04-01 Thread Ruben Orduz
Nice work Manuele, I'll keep an eye on that project. On Sun, Apr 1, 2012 at 4:48 PM, Manuele Pesenti manuele.pese...@gmail.com wrote: Il 01/04/2012 18:25, Anthony ha scritto: You should replace the Sourceforge link on the web2pyslices post with the above link. already added it in a

[web2py] Deployment sqlite question

2012-04-01 Thread rdodev
Folks, I've a question. I'm using a semi automated approach to deploying my app. I manage my code through a private BitBucket repo. On my server I have a cron job checking for changes a few times per day. When it finds changes in the repo stops apache (mod_wsgi), pulls source, restarts apache.

[web2py] Re: auth.messages.logged_out not flashing unless next redirect specified

2012-04-01 Thread Massimo Di Pierro
In gluon/tools.py there is self.settings.logout_next = URL('index') On Sunday, 1 April 2012 22:37:12 UTC-5, weheh wrote: I did a global search with eclipse and couldn't find anything that set auth.settings.logout_next. I am inspecting request.env.path_info through eclipse and it takes on a