[web2py] Re: Disabled fields in SQLFORM fail validation?

2015-03-04 Thread 黄祥
perhaps you can add the field for counter and increase whenever the table 
is edit (onupdate), and then using conditional if to check if counter > 1 
then field.writable = False

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py nginx ubuntu 14.04

2015-03-04 Thread 黄祥
did you had any chance check the logs? please take a look at the log it'll 
tells you more detail what's going on happen in the background server 
process.

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] web2py nginx ubuntu 14.04

2015-03-04 Thread T.R.Rajkumar
I ran the setup-web2py-nginx-uwsgi-ubuntu.sh in a ubuntu 14.04 machine. The 
script ran and webpy, uwsgi, nginx are all running. I am not able to browse 
the sites. The error the server is taking too long to respond appears in 
firefox. I am able to ping the server. Pl. help. Also I want to have 
pyodbc. If I start web2py with rocket server pyodbc is not listed. Pl. 
help. Thanks in advance.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: SQLFORM.factory adding dynamic form

2015-03-04 Thread 黄祥
perhaps you can create an address table and use list:reference in 
sqlform.factory
e.g. (not tested)
db.define_table('address', Field('address') )

def form_from_factory():
form = SQLFORM.factory(
Field('address', *'list:reference', requires = IS_IN_DB(db, 
db.address.id,  '%(address)s')* ) )
if form.process().accepted:
response.flash = 'form accepted'
session.address = form.vars.address
elif form.errors:
response.flash = 'form has errors'
return dict(form = form)

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] confirmation on sqlform.grid (add and edit)

2015-03-04 Thread 黄祥
hi,

is it possible to have confirmation on sqlform.grid (add and edit)? so when 
user click submit during add or edit using grid it will appear the 
confirmation. the grid signature seems don't have it.

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: how to define field so that it only pulls from auth_user those who have a certain auth_membership?

2015-03-04 Thread 黄祥
perhaps you can achieve it with query on IS_IN_DB validator:
e.g.
query_sessions = (
(db.auth_user.id == db.auth_membership.user_id) &
(db.auth_membership.group_id == db.auth_group.id) &
(db.auth_group.role.like('coach'))
)

db.sessions.coach.requires = IS_IN_DB(db(query_sessions), db.auth_user.id, 
 '%(first_name)s %(last_name)s')

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] how to define field so that it only pulls from auth_user those who have a certain auth_membership?

2015-03-04 Thread Oliver Holloway
All players' and coaches' names are stored in auth_user, with roles 
(Player, Coach) listed in auth_group and assigned in auth_membership. How 
do I define the field "coach" below so that it will allow only those who 
have the Coach role? Here's the table definition.

db.define_table('sessions',
Field('program_name', 'string', requires=IS_IN_DB(db, 
db.programs.program_name)),
Field('session_type', 'string', 
requires=IS_IN_SET(['evaluation', 'practice'], zero=None)),
Field('*coach*', 'string', requires=IS_IN_DB(db, 
db.auth_user.id, '%(first_name)s %(last_name)s')),
Field('session_date', 'date'),
Field('session_time', 'time')
   )


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap is really killing web2py

2015-03-04 Thread Leonel Câmara
You need to name the app too, just giving it the upload file is not enough.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py ckEditor

2015-03-04 Thread Alex Glaros
hi Tim

how do I install ck_editor?

assume I don't know what directory to use or anything else

thanks!

Alex

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] dbio=False proper way to update every fields not only the one that had changed

2015-03-04 Thread Anthony
The update should calculate the computed field as long as all the values 
needed for the calculation are included with the update.

Anthony

On Wednesday, March 4, 2015 at 4:55:01 PM UTC-5, Richard wrote:
>
> Thanks for answering Anthony,
>
> Actually f1 and f2 belongs to the table, I am filtering them because I 
> want to treat them separately... 
>
> About your question, I am investigating why my compute didn't work... My 
> first impression is that it is not include in form.vars so it not get hit 
> at all... But I am not sure of that...
>
> Richard
>
> On Wed, Mar 4, 2015 at 4:44 PM, Anthony  wrote:
>
>> Does form.vars include all the variables needed by the compute function?
>>
>> Also, instead of:
>>
>> **{f: v for f, v in form.vars.iteritems()}
>>
>> you can do:
>>
>> **db[request.args(0)]._filter_fields(form.vars)
>>
>> _filter_fields will filter out the "id" field as well as any form.vars 
>> that are not fields in the table.
>>
>> Anthony
>>
>>
>>
>>
>> On Wednesday, March 4, 2015 at 4:35:37 PM UTC-5, Richard wrote:
>>>
>>> Hello,
>>>
>>> I need to do control record update in order to clear some fields values 
>>> in case a flag is set to false. But doing the update like this :
>>>
>>>
>>> db(db[request.args(0)].id == request.args(1)).update(**{f: v for f, v in 
>>> form.vars.iteritems()})
>>>
>>> prevent a compute field to be trigger and updating properly as well...
>>>
>>> So, to make sure my compute field get it I am doing another update() 
>>> like this
>>>
>>>
>>> db(db[request.args(0)].id == request.args(1)).update()
>>>
>>>
>>> Which work in one case by not in the other where I actually clear some 
>>> values like this :
>>>
>>>
>>> db(db[request.args(0)].id == request.args(1)).update(f1=None, f2=None, 
>>> **{f: v for f, v in form.vars.iteritems() if f not in ('f1', 'f2')})
>>>
>>>
>>> Maybe I should do a db.commit() before my second "blank" update() though 
>>> it seems to me that it should be a better way and I am concern in reducing 
>>> db hit.
>>>
>>> Thanks
>>>
>>> Richard
>>>
>>>  -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] dbio=False proper way to update every fields not only the one that had changed

2015-03-04 Thread Richard Vézina
Thanks for answering Anthony,

Actually f1 and f2 belongs to the table, I am filtering them because I want
to treat them separately...

About your question, I am investigating why my compute didn't work... My
first impression is that it is not include in form.vars so it not get hit
at all... But I am not sure of that...

Richard

On Wed, Mar 4, 2015 at 4:44 PM, Anthony  wrote:

> Does form.vars include all the variables needed by the compute function?
>
> Also, instead of:
>
> **{f: v for f, v in form.vars.iteritems()}
>
> you can do:
>
> **db[request.args(0)]._filter_fields(form.vars)
>
> _filter_fields will filter out the "id" field as well as any form.vars
> that are not fields in the table.
>
> Anthony
>
>
>
>
> On Wednesday, March 4, 2015 at 4:35:37 PM UTC-5, Richard wrote:
>>
>> Hello,
>>
>> I need to do control record update in order to clear some fields values
>> in case a flag is set to false. But doing the update like this :
>>
>>
>> db(db[request.args(0)].id == request.args(1)).update(**{f: v for f, v in
>> form.vars.iteritems()})
>>
>> prevent a compute field to be trigger and updating properly as well...
>>
>> So, to make sure my compute field get it I am doing another update() like
>> this
>>
>>
>> db(db[request.args(0)].id == request.args(1)).update()
>>
>>
>> Which work in one case by not in the other where I actually clear some
>> values like this :
>>
>>
>> db(db[request.args(0)].id == request.args(1)).update(f1=None, f2=None,
>> **{f: v for f, v in form.vars.iteritems() if f not in ('f1', 'f2')})
>>
>>
>> Maybe I should do a db.commit() before my second "blank" update() though
>> it seems to me that it should be a better way and I am concern in reducing
>> db hit.
>>
>> Thanks
>>
>> Richard
>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] dbio=False proper way to update every fields not only the one that had changed

2015-03-04 Thread Anthony
Does form.vars include all the variables needed by the compute function?

Also, instead of:

**{f: v for f, v in form.vars.iteritems()}

you can do:

**db[request.args(0)]._filter_fields(form.vars)

_filter_fields will filter out the "id" field as well as any form.vars that 
are not fields in the table.

Anthony



On Wednesday, March 4, 2015 at 4:35:37 PM UTC-5, Richard wrote:
>
> Hello,
>
> I need to do control record update in order to clear some fields values in 
> case a flag is set to false. But doing the update like this :
>
>
> db(db[request.args(0)].id == request.args(1)).update(**{f: v for f, v in 
> form.vars.iteritems()})
>
> prevent a compute field to be trigger and updating properly as well...
>
> So, to make sure my compute field get it I am doing another update() like 
> this
>
>
> db(db[request.args(0)].id == request.args(1)).update()
>
>
> Which work in one case by not in the other where I actually clear some 
> values like this :
>
>
> db(db[request.args(0)].id == request.args(1)).update(f1=None, f2=None, **{
> f: v for f, v in form.vars.iteritems() if f not in ('f1', 'f2')})
>
>
> Maybe I should do a db.commit() before my second "blank" update() though 
> it seems to me that it should be a better way and I am concern in reducing 
> db hit.
>
> Thanks
>
> Richard
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Disabled fields in SQLFORM fail validation?

2015-03-04 Thread Anthony
Hard to say without seeing any code.

On Wednesday, March 4, 2015 at 2:59:27 PM UTC-5, lillian wrote:
>
>
> No suggestions or insight into this?  Anyone?
>
> On Saturday, February 28, 2015 at 5:07:03 AM UTC-8, lillian wrote:
>>
>> Hello,
>>
>> I have a SQLFORM.factory-created form with several fields but one in 
>> particular that can only be filled out ONCE.  If the form is edited that 
>> particular field is disabled.  All that logic works fine.  However, when 
>> the edited form is submitted the disabled field fails validation even 
>> though it contained the original valid value.  After the failed submit it 
>> is empty.
>>
>> I expect I could work around this - replace the input with a label 
>> instead of disabling it for example - but I'd rather know why disabled 
>> fields fail validation.  Are their contents inaccessible?  Making the field 
>> readonly solves the validation problem but raises others (the field still 
>> responds to clicks and other user input for example).
>>
>> Thoughts?
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] dbio=False proper way to update every fields not only the one that had changed

2015-03-04 Thread Richard
Hello,

I need to do control record update in order to clear some fields values in 
case a flag is set to false. But doing the update like this :


db(db[request.args(0)].id == request.args(1)).update(**{f: v for f, v in 
form.vars.iteritems()})

prevent a compute field to be trigger and updating properly as well...

So, to make sure my compute field get it I am doing another update() like 
this


db(db[request.args(0)].id == request.args(1)).update()


Which work in one case by not in the other where I actually clear some 
values like this :


db(db[request.args(0)].id == request.args(1)).update(f1=None, f2=None, **{f: 
v for f, v in form.vars.iteritems() if f not in ('f1', 'f2')})


Maybe I should do a db.commit() before my second "blank" update() though it 
seems to me that it should be a better way and I am concern in reducing db 
hit.

Thanks

Richard

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-03-04 Thread Manuele Pesenti
Il 04/03/15 17:40, Chris ha scritto:
> I do web2py consulting work on the side but I'm an individual. Can I
> include just an email address, and not a webpage?
me too... in Italy.

M.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] SQLFORM.factory adding dynamic form

2015-03-04 Thread Ramkrishan Bhatt
Hi Everyone, 
SQLFORM.factory can we create dynamic form for one to many relation. Like 
person can have multiple address. So how can we achieve with composit form with 
SQLFORM.factory with multiple tables. 
Please send me example too.
Like I can add many address form than bulk record insertion.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: admin pointing to wrong static css in rendered page.

2015-03-04 Thread Massimo Di Pierro
No you do not get rid of that. That is very important and a web2py feature 
called "static asset management":

http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management

You just need the proper web server rule. What server do you use?

On Wednesday, 4 March 2015 13:59:27 UTC-6, John McMaster wrote:
>
> Just installed web2py on webfaction.
> Used one of the scripts on the webfaction community site.
>
> The domain is working.
> When I try to access the admin/default/index the css is clearly not being 
> used.
>
> After using the Inspect Element to see what went wrong you can clearly see 
> that the admin index.html page is looking for the static css in a folder 
> that isn't on the server.
>
> admin/static/_2.9.12/css/bootstrap_essentials.css
>
> it should be 
>
> admin/static/css/bootstrap_essentials.css
>
>
> My question is this How do I correct this?
>
> Is this a bug in web2py?
>
> I see a lot of people trying to resolve issues with static pages. My 
> thinking was this. One the web2py welcome/default/index is working and the 
> nginx.conf file has a reg exp to redirect static files and they work.
>
> Where did the _2.9.12 come from?
>
>
> here is the code used in the layout.html for loading the static files
> {{
> response.files.append(URL('static','css/bootstrap.min.css'))
> response.files.append(URL('static','css/bootstrap_essentials.css'))
> 
> response.files.append(URL('static','css/bootstrap-responsive.min.css'))
> }}
> there is no _2.9.12
>
> If I could get rid of _2.9.12 the reg exp would work.
>
> Any ideas or help in this matter would help not just me but a lot of 
> others.
>
> Thank You. 
>
> By the way... Web2py is AWESOME!
> It has been a long day so please forgive any misstakes! 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Resizable SQLFORM grid columns?

2015-03-04 Thread LoveWeb2py
Although I do like the layout of jqgrid I'm also using custom buttons in 
the sqlform.grid  and have links going back to database versioning. I will 
give jqgrid a shot, but I'd love to hear other thoughts/ideas.

On Wednesday, March 4, 2015 at 9:00:52 AM UTC-5, LoveWeb2py wrote:
>
> Very nice slice! I'm going to give it a try. Wasn't sure if there was a 
> builtin already with web2py. I'd like to see something integrated with 
> web2py in the future. Maybe I'll write a widget to add to the SQLFORM which 
> could integrated jqgrid. 
>
> On Wednesday, March 4, 2015 at 8:36:00 AM UTC-5, Willoughby wrote:
>>
>> I'd move over to jqgrid for something like that. But I've been using it 
>> for 5+ years, so I'm a bit biased.
>> I think Tim's update is the latest.  Take a look:
>>
>> http://www.web2pyslices.com/slice/show/1714/jqgrid-viewing-and-updating-data
>>
>>
>> On Wednesday, March 4, 2015 at 8:29:45 AM UTC-5, LoveWeb2py wrote:
>>>
>>> Has anyone tried to tackle this before? 
>>>
>>> I'd like to be able to resize the SQLFORM.grid columns so the user could 
>>> expand or contract the column similar to excel. I'm guessing I'll have to 
>>> use jquery for this?
>>>
>>> If anyone could point me in the right direction to get started I'd 
>>> really appreciate it.
>>>
>>> Thanks!
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py static files and bootstrap 3

2015-03-04 Thread Massimo Di Pierro
speaking for bootstrap2

>
> bootstrap.min.css - which needs to be replaced with the new one [REQUIRED]
> bootstrap-responsive.min.css - no idea what this is... [OPTIONAL]
> calendar - I assume this is used for Fields that are datetime, does it 
> require bootstrap2? [NEEDED BUT NOT BASED ON BOOTSTRAP] 
>
web2py.css - This I assume is a must-have [MUST HAVE]
> web2py_bootstrap.css - How necessary is this? [MUST HAVE, MAY NEED EDIT 
> FOR BS3]
> web2py_bootstrap_nojs.css -  no idea what this is... [ME NEITHER, my 
> understanding is that this is required to make BS2 menus work if JS is 
> disabled]
>
>
> For JS we have:
> bootstrap.min.js - which needs to be replaced with the new one [REQUIRED]
> calendar.js - Again, for Fields I think [REQUIRED]
> dd_belatedpng - No idea [to support PNG transparency on IE6]
> jquery - Duh, though I'd rather point to CDN [YES unless running locally]
> modernizr.custom.js - Again, no idea... [to support older browsers]
> share.js - This I know I don't need, as this application is for internal 
> use [OPTIONAL]
> web2py.js - Assume it is a must have [MUST HAVE, CSS independent]
> web2py_bootstrap - Seems to only affect menus, so not a big deal [ONLY 
> MENUS]
>
>
> So there we have it, if you could shed light on what files need to be edit 
> to work with bootstrap 3 and help me understand what each one is 
> responsible for, I am at a loss.
>
> Let me thank you in advance for any help you may provide.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: admin pointing to wrong static css in rendered page.

2015-03-04 Thread Niphlod
please point to the script used: it probably comes from an old setup. 
You'll find numerous occurrences of the same "problem" here and there on 
the forum. What needs to be changed is the "thing" that serves static 
files, taking into consideration static asset management 

 

On Wednesday, March 4, 2015 at 8:59:27 PM UTC+1, John McMaster wrote:
>
> Just installed web2py on webfaction.
> Used one of the scripts on the webfaction community site.
>
> The domain is working.
> When I try to access the admin/default/index the css is clearly not being 
> used.
>
> After using the Inspect Element to see what went wrong you can clearly see 
> that the admin index.html page is looking for the static css in a folder 
> that isn't on the server.
>
> admin/static/_2.9.12/css/bootstrap_essentials.css
>
> it should be 
>
> admin/static/css/bootstrap_essentials.css
>
>
> My question is this How do I correct this?
>
> Is this a bug in web2py?
>
> I see a lot of people trying to resolve issues with static pages. My 
> thinking was this. One the web2py welcome/default/index is working and the 
> nginx.conf file has a reg exp to redirect static files and they work.
>
> Where did the _2.9.12 come from?
>
>
> here is the code used in the layout.html for loading the static files
> {{
> response.files.append(URL('static','css/bootstrap.min.css'))
> response.files.append(URL('static','css/bootstrap_essentials.css'))
> 
> response.files.append(URL('static','css/bootstrap-responsive.min.css'))
> }}
> there is no _2.9.12
>
> If I could get rid of _2.9.12 the reg exp would work.
>
> Any ideas or help in this matter would help not just me but a lot of 
> others.
>
> Thank You. 
>
> By the way... Web2py is AWESOME!
> It has been a long day so please forgive any misstakes! 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Creating custom auth

2015-03-04 Thread Massimo Di Pierro
what is token_auth?

On Wednesday, 4 March 2015 13:59:27 UTC-6, Franky Davis Monroe Jr. wrote:
>
> I have added the following to a controller method:
>
> @auth.requires_login()
> def index():
> return 'Hello world!'
>
>
> This forces the app to take the user to the login page correctly.  
>
>
> I have then added a simple class:
>
>
> def querystring_auth():
> """
> Querystring based auth 
> """
>
> def querystring_login_aux():
> return True
> return token_login_aux()
>
>
> In db.py I have added this:
>
> import token_auth
> auth.settings.login_methods[0] = [token_auth]
>
>
> The end result is I am still taken to the login page.  My question is: how 
> can I get it to base the login on the result of my custom Auth class and in 
> turn how do I make it so the user is simple represented by a UUID stored in 
> auth_users along with a simple description.  I don't care about requiring 
> or showing any other fields.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Creating custom auth

2015-03-04 Thread Massimo Di Pierro
what is token_auth?

On Wednesday, 4 March 2015 13:59:27 UTC-6, Franky Davis Monroe Jr. wrote:
>
> I have added the following to a controller method:
>
> @auth.requires_login()
> def index():
> return 'Hello world!'
>
>
> This forces the app to take the user to the login page correctly.  
>
>
> I have then added a simple class:
>
>
> def querystring_auth():
> """
> Querystring based auth 
> """
>
> def querystring_login_aux():
> return True
> return token_login_aux()
>
>
> In db.py I have added this:
>
> import token_auth
> auth.settings.login_methods[0] = [token_auth]
>
>
> The end result is I am still taken to the login page.  My question is: how 
> can I get it to base the login on the result of my custom Auth class and in 
> turn how do I make it so the user is simple represented by a UUID stored in 
> auth_users along with a simple description.  I don't care about requiring 
> or showing any other fields.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap is really killing web2py

2015-03-04 Thread Niphlod


On Wednesday, March 4, 2015 at 8:59:28 PM UTC+1, Guilherme Rosa wrote:
>
> I am running the latest version of web2py and for some reason it will not 
> let me load the w2p file in the admin interface under "upload and instal 
> packed application".
>
> Anyone having this same issue?
>

does it say anything or it just refuses ? :D 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py static files and bootstrap 3

2015-03-04 Thread Simon Marshall
i would also like to know this please

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] admin pointing to wrong static css in rendered page.

2015-03-04 Thread John McMaster
Just installed web2py on webfaction.
Used one of the scripts on the webfaction community site.

The domain is working.
When I try to access the admin/default/index the css is clearly not being 
used.

After using the Inspect Element to see what went wrong you can clearly see 
that the admin index.html page is looking for the static css in a folder 
that isn't on the server.

admin/static/_2.9.12/css/bootstrap_essentials.css

it should be 

admin/static/css/bootstrap_essentials.css


My question is this How do I correct this?

Is this a bug in web2py?

I see a lot of people trying to resolve issues with static pages. My 
thinking was this. One the web2py welcome/default/index is working and the 
nginx.conf file has a reg exp to redirect static files and they work.

Where did the _2.9.12 come from?


here is the code used in the layout.html for loading the static files
{{
response.files.append(URL('static','css/bootstrap.min.css'))
response.files.append(URL('static','css/bootstrap_essentials.css'))

response.files.append(URL('static','css/bootstrap-responsive.min.css'))
}}
there is no _2.9.12

If I could get rid of _2.9.12 the reg exp would work.

Any ideas or help in this matter would help not just me but a lot of others.

Thank You. 

By the way... Web2py is AWESOME!
It has been a long day so please forgive any misstakes! 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2015-03-04 Thread Massimo Di Pierro
yes.

On Wednesday, 4 March 2015 07:30:09 UTC-6, Paolo Valleri wrote:
>
> Massimo, I suggest adding a message when web2py start using internal cron 
> in which is stated that cron is no longer supported.
> Do you agree ?
>
> On Tuesday, March 3, 2015 at 5:51:50 PM UTC+1, Massimo Di Pierro wrote:
>>
>> BTW. We do not support cron anymore since we have the scheduler. Cron 
>> causes other problems with locking of resources and memory build-up. It is 
>> not necessarily a bug, it is designed to guarantee start of execution not 
>> cap resource utilization.
>>
>> On Monday, 2 March 2015 11:49:20 UTC-6, AngeloC wrote:
>>>
>>> Hi Yannick, 
>>>
>>> Probably it's a regression with hardcron, if you search the list you 
>>> can find several thread about that problem. 
>>>
>>> I had it several times in the past and simply I gave up using hard 
>>> cron in web2py. I ususally use the plain and simple unix cron to 
>>> schedule activities! 
>>>
>>> Sincerely, Angelo 
>>>
>>> 2015-03-02 18:39 GMT+01:00 Massimo Di Pierro : 
>>> > This usually happens when you open but you do not close connections. 
>>> It can 
>>> > happen if you put open connections in cache-ram. Do you open many 
>>> files? 
>>> > 
>>> > 
>>> > On Monday, 2 March 2015 00:24:57 UTC-6, Yusuf Kaka wrote: 
>>> >> 
>>> >> I've got the same error, was there any resolution? 
>>> >> 
>>> >> On Monday, February 22, 2010 at 2:28:17 AM UTC+2, Pascal wrote: 
>>> >>> 
>>> >>> Thanks for the note... I'm usually running Web2py through Wing IDE 
>>> >>> since it is easy for debugging... 
>>> >>> Please let me know if you have any questions regarding this issue 
>>> >>> 
>>> >>> Yannick P. 
>>> >>> 
>>> >>> On Feb 21, 4:02 pm, Massimo Di Pierro  
>>> wrote: 
>>> >>> > This is interesting I will take a look asap. 
>>> >>> > 
>>> >>> > Meanwhile, if you are not using cron, run web2py with -N. 
>>> >>> > 
>>> >>> > Massimo 
>>> >>> > 
>>> >>> > On Feb 21, 2010, at 1:28 PM, Yannick wrote: 
>>> >>> > 
>>> >>> > > Hello mate, 
>>> >>> > > I'm using the latest version of Web2py and Mac OS and since few 
>>> >>> > > web2py 
>>> >>> > > release I have been having this problem and I don't know what is 
>>> the 
>>> >>> > > cause of this... 
>>> >>> > > When it happens I can't access my application anymore I got a 
>>> this 
>>> >>> > > message from the browser: "Internal error 
>>> >>> > > Ticket issued: unrecoverable " 
>>> >>> > > So basicallly I just have to reboot the server to get my appl 
>>> working 
>>> >>> > > again... 
>>> >>> > 
>>> >>> > > Here is the exceptions I got from Web2py: 
>>> >>> > 
>>> >>> > > ### 
>>> >>> > > Exception in thread Thread-106: 
>>> >>> > > Traceback (most recent call last): 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/threading.py", line 486, in __bootstrap_inner 
>>> >>> > >self.run() 
>>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>>> line 
>>> >>> > > 229, in run 
>>> >>> > >shell=self.shell) 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/subprocess.py", line 587, in __init__ 
>>> >>> > >errread, errwrite) = self._get_handles(stdin, stdout, stderr) 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/subprocess.py", line 953, in _get_handles 
>>> >>> > >errread, errwrite = os.pipe() 
>>> >>> > > OSError: [Errno 24] Too many open files 
>>> >>> > >  
>>> >>> > > Exception in thread Thread-107: 
>>> >>> > > Traceback (most recent call last): 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/threading.py", line 486, in __bootstrap_inner 
>>> >>> > >self.run() 
>>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>>> line 
>>> >>> > > 229, in run 
>>> >>> > >shell=self.shell) 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/subprocess.py", line 587, in __init__ 
>>> >>> > >errread, errwrite) = self._get_handles(stdin, stdout, stderr) 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/subprocess.py", line 933, in _get_handles 
>>> >>> > >p2cread, p2cwrite = os.pipe() 
>>> >>> > > OSError: [Errno 24] Too many open files 
>>> >>> > > # 
>>> >>> > > Exception in thread Thread-1: 
>>> >>> > > Traceback (most recent call last): 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>>> >>> > > python2.5/threading.py", line 486, in __bootstrap_inner 
>>> >>> > >self.run() 
>>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>>> line 
>>> >>> > > 55, in run 
>>> >>> > >s.run() 
>>> >>> > >  File 
>>> "/System/Library/Frameworks/Python.framework/Versi

Re: [web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-03-04 Thread Tom Stratton
Oddly, neither of those terms come up when you search the book online ;-)

I'm glad to have this forum to find the hidden gotchas!

Tom 

On Tuesday, March 3, 2015 at 9:13:45 AM UTC-8, mcm wrote:
>
> You can use rname or entity quoting to support all of the names your 
> chosen db engines support.  Those are documented in the book.
>
> 2015-03-02 19:46 GMT+01:00 Tom Stratton  >:
>
>> Follow up to this (and a big Thank You for saving me a lot of digging!)
>>
>> I had field names with "$" in them which caused the same error. I believe 
>> that the rules for field names may be the same as the rules for variable 
>> names. I'm guessing that trying to reference a.b.c instead of a.b[c] is 
>> causing the issue.
>>
>> For safety sake - don't use anything in a field name that can't be part 
>> of an object/variable name!
>>
>> Thanks again.
>>
>> Tom
>>
>> On Saturday, January 10, 2015 at 5:20:39 AM UTC-8, Carlos Kitu wrote:
>>
>>> Hi, just for other developers sake to save some time.
>>>
>>> I was getting this error:
>>>
>>>  'Row' object has no attribute 'id'
>>>
>>> Versión
>>> web2py™ Version 2.9.11-stable+timestamp.2014.09.15.23.35.11
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "./web2py/gluon/restricted.py", line 224, in restricted
>>> exec ccode in environment
>>>   File "./web2py/applications/AlcalaFyE/controllers/appadmin.py", line 
>>> 671, in 
>>>   File "./web2py/gluon/globals.py", line 392, in 
>>> self._caller = lambda f: f()
>>>   File "./web2py/applications/AlcalaFyE/controllers/appadmin.py", line 
>>> 341, in update
>>> f='download', args=request.args[:1]))
>>>   File "./web2py/gluon/sqlhtml.py", line 1168, in __init__
>>> self.record_id = str(record[field.name])
>>>   File "./web2py/gluon/dal.py", line 7529, in __getitem__
>>> raise ae
>>> AttributeError: 'Row' object has no attribute 'id'
>>>
>>> It was quite confusing because I could create records (with appadmin or 
>>> smartgrid), and see them in a grid, and the problem only appeared when I 
>>> tried to view the record in a form.
>>>
>>> I do NEVER use international characters in field names, but as I am 
>>> spanish,  unintentionally wrote a Ñ character (U+00D1: N with a 
>>> diacritical tilde) in a field name. As soon as I replaced the Ñ with a N, 
>>> everything worked fine.
>>>  
>>> I'm quite a new user of web2py, and as I'm dealing with the ins and outs 
>>> of web2py, I repeatedly skipped such an obvious question and was looking 
>>> for a more subtle error.
>>> As I couldn't find any reference to this problem in the forum, I thought 
>>> I would make sense to report it.
>>>
>>> I think web2py is a great product. Good job!
>>>
>>> Best regards.
>>>
>>  -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py static files and bootstrap 3

2015-03-04 Thread Guilherme Rosa
I have seen it, yes. Thanks Richard. Unfortunatly when I tried to upload 
this into the admin interface as either a a packed application or as a 
layout template it fails 

Even if I could get that w2p file to work, I'd really like to know which 
css and js are extra and which are must have.

On Tuesday, 3 March 2015 12:04:39 UTC-6, Richard wrote:
>
> Hello Guilherme,
>
> Are you aware of wecolme optimized for bs3 : 
> https://groups.google.com/d/msg/web2py/9ipT2xkXMhc/yi7sF2Uzm7MJ
>
> ?
>
> You may consider just starting from this app instead of try to do 
> everything by yourself... Or you can get alot of inspiration from it with 
> diff tools.
>
> Richard
>
> On Mon, Mar 2, 2015 at 4:22 PM, Guilherme Rosa  > wrote:
>
>> I am trying to create a new app in web2py which will use bootstrap 3. I 
>> tried simply changing the bootstrap.min css and js but that caused a mess.
>>
>> I have read that nothing in web2py really relies in a UI framework, 
>> except maybe SQLFORM, which has styles for bootstrap3, so I assume that all 
>> I really need to do is redo the layout.html from the ground up.
>>
>> So here is my question: Which static files are must have for web2py?
>>
>> For CSS we have:
>> bootstrap.min.css - which needs to be replaced with the new one
>> bootstrap-responsive.min.css - no idea what this is...
>> calendar - I assume this is used for Fields that are datetime, does it 
>> require bootstrap2?
>> web2py.css - This I assume is a must-have
>> web2py_bootstrap.css - How necessary is this?
>> web2py_bootstrap_nojs.css -  no idea what this is...
>>
>>
>> For JS we have:
>> bootstrap.min.js - which needs to be replaced with the new one
>> calendar.js - Again, for Fields I think
>> dd_belatedpng - No idea
>> jquery - Duh, though I'd rather point to CDN
>> modernizr.custom.js - Again, no idea...
>> share.js - This I know I don't need, as this application is for internal 
>> use
>> web2py.js - Assume it is a must have
>> web2py_bootstrap - Seems to only affect menus, so not a big deal
>>
>>
>> So there we have it, if you could shed light on what files need to be 
>> edit to work with bootstrap 3 and help me understand what each one is 
>> responsible for, I am at a loss.
>>
>> Let me thank you in advance for any help you may provide.
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Bootstrap is really killing web2py

2015-03-04 Thread Guilherme Rosa
I am running the latest version of web2py and for some reason it will not 
let me load the w2p file in the admin interface under "upload and instal 
packed application".

Anyone having this same issue?

On Monday, 21 July 2014 03:39:56 UTC-5, Massimo Di Pierro wrote:
>
> Here is welcome optimized for bootstrap 3. It still needs to have forms 
> and grid formstyle be set to formstyle_bootstrap3. 
>
> On Sunday, 20 July 2014 10:31:03 UTC-5, Anthony wrote:
>>
>> Can you give examples of things that work only with Bootstrap 2?
>>
>> On Friday, July 18, 2014 3:17:34 PM UTC-4, Moustafa Mahmoud wrote:
>>>
>>> I have been using web2py for 3 years know, and I was really impressed by 
>>> it, I defended it in every discussion, even implemented all my projects 
>>> using it and even convinced my Graduation Project Team to use it in our GP. 
>>> However, as my skill increased and I began looking more into customizing my 
>>> applications, I have hit a brick wall discovering how tightly bound web2py 
>>> is to bootstrap2, I wanted to use bootstrap 3 but was faced with tons of 
>>> problems. If I want to move to another front end framework then I 
>>> discovered that it would be easier to use another framework because of the 
>>> time and effort I would need to invest in modifying all parts of web2py 
>>> that are tightly bound  to bootstrap.
>>> This will result in making web2py a headache to me rather than my best 
>>> friend. I am writing this message because I am really sad that an amazing 
>>> framework like web2py is forcing me to consider an alternative because I do 
>>> really feel it is constraining me at this point.
>>> Any help or ideas about that ?
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] How to properly import Active Directory users into web2py auth_user table?

2015-03-04 Thread Grzegorz Dzień
I have tried doing it this way:

def showthemall():
# LDAP connection settings
LDAP_SERVER = "ldap://ad.superhost";
BIND_DN = "superuser@ad.superhost"
BIND_PASS = "mysupersecretpassword"
# Connect to LDAP
con = ldap.initialize(LDAP_SERVER)
# Authenticate in LDAP
con.simple_bind_s(BIND_DN, BIND_PASS)
# We don't want disabled users, so we use some magic LDAP-Active
Directory filers for it
ldapfilter =
'(&(&(objectclass=person)(
objectcategory=person))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))'
# What user attributes do we want list in link:
# 
http://www.manageengine.com/products/ad-manager/help/csv-import-management/active-directory-ldap-attributes.html
attrs = ['displayName', 'givenName', 'sn', 'mail', 'mailNickname',
'department']
# Get all users from ldap
base_dn = 'ou=,dc=,dc='
ad_users = con.search_s( base_dn, ldap.SCOPE_SUBTREE, ldapfilter, attrs 
)

for user in ad_users:
# get 2nd value separated by comma
ouvar=user[0].split(',')[1]
# if ouvar valude is not Generic
if ouvar != 'OU=Generic':
# add user to the auth_user table
required_fields = set([ 'sn', 'givenName', 'mail',
'department', 'mailNickname' ])
if required_fields.issubset(set(user[1])):
db.auth_user.insert(first_name=user[1]['givenName'],
last_name=user[1]['sn'],
email=user[1]['mail'],
username=user[1]['mailNickname'],
password=None,
registration_id=user[1]['mailNickname'])



It is importing contact as (I mean every value in the DB is enveloped in 
vertical bar):

|Grzegorz||Dzien||gdzien@domai...|gdzien|None|gdzien|


By the way - is there a way to re-use web2py's AD connector's connection?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] sqlform.grid populated with an AJAX call, grid search doesn't work correctly

2015-03-04 Thread drmbded
I have a relatively simple page which has a drop down selection and an 
empty DIV. When a user selects an item from the drop down an ajax call back 
to web2py creates an sqlform.grid with a left join query and populates the 
empty DIV with the grid. This works great.

Now if I use the search capability of the grid: after filling in the search 
criteria and clicking on the "Search" button, the submit sends me to a page 
which just says "Nothing to show".

I suspect that the grid isn't quite configured correctly to cause the 
"Search"/Submit to populate the DIV with the results. Or is the issue that 
the grid was created with a left join it can't reconcile the left join with 
the search criteria?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Creating custom auth

2015-03-04 Thread Franky Davis Monroe Jr.
I have added the following to a controller method:

@auth.requires_login()
def index():
return 'Hello world!'


This forces the app to take the user to the login page correctly.  


I have then added a simple class:


def querystring_auth():
"""
Querystring based auth 
"""

def querystring_login_aux():
return True
return token_login_aux()


In db.py I have added this:

import token_auth
auth.settings.login_methods[0] = [token_auth]


The end result is I am still taken to the login page.  My question is: how 
can I get it to base the login on the result of my custom Auth class and in 
turn how do I make it so the user is simple represented by a UUID stored in 
auth_users along with a simple description.  I don't care about requiring 
or showing any other fields.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Disabled fields in SQLFORM fail validation?

2015-03-04 Thread lillian

No suggestions or insight into this?  Anyone?

On Saturday, February 28, 2015 at 5:07:03 AM UTC-8, lillian wrote:
>
> Hello,
>
> I have a SQLFORM.factory-created form with several fields but one in 
> particular that can only be filled out ONCE.  If the form is edited that 
> particular field is disabled.  All that logic works fine.  However, when 
> the edited form is submitted the disabled field fails validation even 
> though it contained the original valid value.  After the failed submit it 
> is empty.
>
> I expect I could work around this - replace the input with a label instead 
> of disabling it for example - but I'd rather know why disabled fields fail 
> validation.  Are their contents inaccessible?  Making the field readonly 
> solves the validation problem but raises others (the field still responds 
> to clicks and other user input for example).
>
> Thoughts?
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: nssm and web2py as a windows service

2015-03-04 Thread Niphlod
^_^ . Glad it worked out fine. @tim: maybe a PR on the book with this 
cmdline instead of the one posted there 

c:\web2py.py -p 8041 -i "0.0.0.0" --password="112233" --folder=
"d:\web2py_internet" --socket-timeout=10 --timeout=120 -c 
"d:\web2py_internet\applications\example.com.au.crt" -k 
"d:\web2py_internet\applications\web2py.key



that is a taddle bit:
-  long
- unreadable
- for a pretty uncommon setup (web2py.py on c:\ ?!?)

would be beneficial.
something among the lines of 

web2py.py (or web2py.exe) -a "" --interfaces "0.0.0.0:80"  <-- to 
run HTTP only
and
web2py.py (or web2py.exe) -a "" --interfaces 
"0.0.0.0:80;0.0.0.0:443:c:\path_to_key.key:c:\path_to_cert.crt" <-- to run 
HTTP and HTTPS

what do you say ?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: nssm and web2py as a windows service

2015-03-04 Thread Rod Watkins
Thanks Niphlod. i had a silly typo i kept missing. Got it working great. 
rod

On Tuesday, March 3, 2015 at 3:46:50 PM UTC-8, Tim Richardson wrote:
>
>
>
> On Wednesday, March 4, 2015 at 6:43:03 AM UTC+11, Niphlod wrote:
>>
>> nssm isn't rocket science, from the web2py perspective.
>> The point usually is being able to run web2py passing arguments as you 
>> need them ? 
>> If you can do it by cmdline, nssm isn't an issue: just use the same 
>> commandline
>>
>> web2py.py -a "" --interfaces 
>> "0.0.0.0:80;0.0.0.0:443:path_to_key:path_to_cert"
>>
>> should suffice for most cases.
>>
>>
> ... so first let us know if you have a working command line version of 
> what you want to do. 
>
> nssm is easy after that. 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-03-04 Thread Chris
I do web2py consulting work on the side but I'm an individual. Can I 
include just an email address, and not a webpage? (web...@adventurecow.com, 
US)

On Sunday, February 15, 2015 at 5:21:36 PM UTC-5, Massimo Di Pierro wrote:
>
> We need to update the list of companies that provide web2py consulting.
> This list is obsolete:
>
> http://web2py.com/init/default/support 
> 
>
> Some links are broke. Most pages do not even mention web2py. Some of them 
> have a design that is simply not acceptable for a web development company.
>
> That list will be eliminated. IF YOU WANT TO BE LISTED please update your 
> page to have a decent design and MENTION WEB2PY on the main site. Then 
> respond to this thread by providing an updated link and the country were 
> you incorporated. If you have a self-employed individual list your country 
> of residence.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Can somebody please spot my mistake--------Trying to use CKeditor with web2py

2015-03-04 Thread niki
hi Leonel,

It worked like a charm. Thank you so much.
Sorry for the late response was swamped to even test your suggestion till 
now.

Regards,

Sinini

On Tuesday, 3 March 2015 22:51:07 UTC+2, Leonel Câmara wrote:
>
> Hey,
>
> Can you try this slice instead
> http://www.web2pyslices.com/slice/show/1952/ck-editor4-plugin
>
> Get the plugin from here:
> https://github.com/timrichardson/web2py_ckeditor4
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Upload field default value ?!!

2015-03-04 Thread António Ramos
You are right

I wrote before checking again.
Last time i checked, after removing the "required", the record could not be
saved.
Then checked the sqlite db via firefox plugin and still the required was
set at the sqlite db.

So far so good more on this later if problems.
Thank u



2015-03-04 14:55 GMT+00:00 Leonel Câmara :

> Humm required is set at the DAL level I don't see how this could create
> problems due to sqlite.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Upload field default value ?!!

2015-03-04 Thread Leonel Câmara
Humm required is set at the DAL level I don't see how this could create 
problems due to sqlite.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Resizable SQLFORM grid columns?

2015-03-04 Thread LoveWeb2py
Very nice slice! I'm going to give it a try. Wasn't sure if there was a 
builtin already with web2py. I'd like to see something integrated with 
web2py in the future. Maybe I'll write a widget to add to the SQLFORM which 
could integrated jqgrid. 

On Wednesday, March 4, 2015 at 8:36:00 AM UTC-5, Willoughby wrote:
>
> I'd move over to jqgrid for something like that. But I've been using it 
> for 5+ years, so I'm a bit biased.
> I think Tim's update is the latest.  Take a look:
>
> http://www.web2pyslices.com/slice/show/1714/jqgrid-viewing-and-updating-data
>
>
> On Wednesday, March 4, 2015 at 8:29:45 AM UTC-5, LoveWeb2py wrote:
>>
>> Has anyone tried to tackle this before? 
>>
>> I'd like to be able to resize the SQLFORM.grid columns so the user could 
>> expand or contract the column similar to excel. I'm guessing I'll have to 
>> use jquery for this?
>>
>> If anyone could point me in the right direction to get started I'd really 
>> appreciate it.
>>
>> Thanks!
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-03-04 Thread rochacbruno
Hi Massimo,

You can remove my old (extinct) company 
   
   - Blouweb Consultoria Digital  (Brasil)

I am not working with this company anymore, and I also do not have the 
domain.


Thanks!

On Sunday, February 15, 2015 at 8:21:36 PM UTC-2, Massimo Di Pierro wrote:
>
> We need to update the list of companies that provide web2py consulting.
> This list is obsolete:
>
> http://web2py.com/init/default/support
>
> Some links are broke. Most pages do not even mention web2py. Some of them 
> have a design that is simply not acceptable for a web development company.
>
> That list will be eliminated. IF YOU WANT TO BE LISTED please update your 
> page to have a decent design and MENTION WEB2PY on the main site. Then 
> respond to this thread by providing an updated link and the country were 
> you incorporated. If you have a self-employed individual list your country 
> of residence.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Upload field default value ?!!

2015-03-04 Thread António Ramos
Hello i have an app that was designed with some required upload fields.

Now after 1 year and around 5gb in my download folder, someone tells me
that the upload fields are not required anymore under some scenarios.

I cannot delete the required value from my dal because the sqlite does not
let it.

So to bypass this problems is there anyway that i can default the upload
field to some trashy value ?

any other thoughts ?

Regards
António

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Resizable SQLFORM grid columns?

2015-03-04 Thread Willoughby
I'd move over to jqgrid for something like that. But I've been using it for 
5+ years, so I'm a bit biased.
I think Tim's update is the latest.  Take a look:
http://www.web2pyslices.com/slice/show/1714/jqgrid-viewing-and-updating-data


On Wednesday, March 4, 2015 at 8:29:45 AM UTC-5, LoveWeb2py wrote:
>
> Has anyone tried to tackle this before? 
>
> I'd like to be able to resize the SQLFORM.grid columns so the user could 
> expand or contract the column similar to excel. I'm guessing I'll have to 
> use jquery for this?
>
> If anyone could point me in the right direction to get started I'd really 
> appreciate it.
>
> Thanks!
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Resizable SQLFORM grid columns?

2015-03-04 Thread LoveWeb2py
Has anyone tried to tackle this before? 

I'd like to be able to resize the SQLFORM.grid columns so the user could 
expand or contract the column similar to excel. I'm guessing I'll have to 
use jquery for this?

If anyone could point me in the right direction to get started I'd really 
appreciate it.

Thanks!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2015-03-04 Thread Paolo Valleri
Massimo, I suggest adding a message when web2py start using internal cron 
in which is stated that cron is no longer supported.
Do you agree ?

On Tuesday, March 3, 2015 at 5:51:50 PM UTC+1, Massimo Di Pierro wrote:
>
> BTW. We do not support cron anymore since we have the scheduler. Cron 
> causes other problems with locking of resources and memory build-up. It is 
> not necessarily a bug, it is designed to guarantee start of execution not 
> cap resource utilization.
>
> On Monday, 2 March 2015 11:49:20 UTC-6, AngeloC wrote:
>>
>> Hi Yannick, 
>>
>> Probably it's a regression with hardcron, if you search the list you 
>> can find several thread about that problem. 
>>
>> I had it several times in the past and simply I gave up using hard 
>> cron in web2py. I ususally use the plain and simple unix cron to 
>> schedule activities! 
>>
>> Sincerely, Angelo 
>>
>> 2015-03-02 18:39 GMT+01:00 Massimo Di Pierro > >: 
>> > This usually happens when you open but you do not close connections. It 
>> can 
>> > happen if you put open connections in cache-ram. Do you open many 
>> files? 
>> > 
>> > 
>> > On Monday, 2 March 2015 00:24:57 UTC-6, Yusuf Kaka wrote: 
>> >> 
>> >> I've got the same error, was there any resolution? 
>> >> 
>> >> On Monday, February 22, 2010 at 2:28:17 AM UTC+2, Pascal wrote: 
>> >>> 
>> >>> Thanks for the note... I'm usually running Web2py through Wing IDE 
>> >>> since it is easy for debugging... 
>> >>> Please let me know if you have any questions regarding this issue 
>> >>> 
>> >>> Yannick P. 
>> >>> 
>> >>> On Feb 21, 4:02 pm, Massimo Di Pierro  
>> wrote: 
>> >>> > This is interesting I will take a look asap. 
>> >>> > 
>> >>> > Meanwhile, if you are not using cron, run web2py with -N. 
>> >>> > 
>> >>> > Massimo 
>> >>> > 
>> >>> > On Feb 21, 2010, at 1:28 PM, Yannick wrote: 
>> >>> > 
>> >>> > > Hello mate, 
>> >>> > > I'm using the latest version of Web2py and Mac OS and since few 
>> >>> > > web2py 
>> >>> > > release I have been having this problem and I don't know what is 
>> the 
>> >>> > > cause of this... 
>> >>> > > When it happens I can't access my application anymore I got a 
>> this 
>> >>> > > message from the browser: "Internal error 
>> >>> > > Ticket issued: unrecoverable " 
>> >>> > > So basicallly I just have to reboot the server to get my appl 
>> working 
>> >>> > > again... 
>> >>> > 
>> >>> > > Here is the exceptions I got from Web2py: 
>> >>> > 
>> >>> > > ### 
>> >>> > > Exception in thread Thread-106: 
>> >>> > > Traceback (most recent call last): 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/threading.py", line 486, in __bootstrap_inner 
>> >>> > >self.run() 
>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>> line 
>> >>> > > 229, in run 
>> >>> > >shell=self.shell) 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/subprocess.py", line 587, in __init__ 
>> >>> > >errread, errwrite) = self._get_handles(stdin, stdout, stderr) 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/subprocess.py", line 953, in _get_handles 
>> >>> > >errread, errwrite = os.pipe() 
>> >>> > > OSError: [Errno 24] Too many open files 
>> >>> > >  
>> >>> > > Exception in thread Thread-107: 
>> >>> > > Traceback (most recent call last): 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/threading.py", line 486, in __bootstrap_inner 
>> >>> > >self.run() 
>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>> line 
>> >>> > > 229, in run 
>> >>> > >shell=self.shell) 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/subprocess.py", line 587, in __init__ 
>> >>> > >errread, errwrite) = self._get_handles(stdin, stdout, stderr) 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/subprocess.py", line 933, in _get_handles 
>> >>> > >p2cread, p2cwrite = os.pipe() 
>> >>> > > OSError: [Errno 24] Too many open files 
>> >>> > > # 
>> >>> > > Exception in thread Thread-1: 
>> >>> > > Traceback (most recent call last): 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/threading.py", line 486, in __bootstrap_inner 
>> >>> > >self.run() 
>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>> line 
>> >>> > > 55, in run 
>> >>> > >s.run() 
>> >>> > >  File 
>> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> >>> > > python2.5/sched.py", line 114, in run 
>> >>> > >  File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", 
>> line 
>> >>> > > 47, in launch 
>> >>> > >cronda

[web2py] Re: Current status of adapting OrientDB for web2py

2015-03-04 Thread Paolo Valleri
Hi, contributions are more than welcome :)
You can start by having a look at those other no-sql adapters 
in https://github.com/web2py/pydal/tree/master/pydal/adapters

Paolo

On Wednesday, March 4, 2015 at 4:27:16 AM UTC+1, Pumplerod wrote:
>
> I'm curious if anyone has done any more to integrate OrientDB with the 
> DAL.  Or if not, if there is a guide of some sort for creating an adapter.
>
> I'm beginning to design a site around OrientDB and rather than keeping 
> track of two systems one for Auth and one for the rest of my data it seems 
> like it may easier to create the adapter.
>
>
> On Monday, February 13, 2012 at 9:54:05 AM UTC-8, Nolan Nichols wrote:
>>
>> I'm researching the nosql and graph database landscape for a web2py 
>> application that will require the schema to evolve over time and 
>> provide network/graph analysis metrics. 
>>
>> I started by looking at the Tinkerpop (http://tinkerpop.com/) stack 
>> and the Bulbflow (http://bulbflow.com/) python library for interacting 
>> with Tinkerpop graph databases like Neo4j and OrientDB. 
>>
>> It looks like there was interest a few months back in adapting 
>> OrientDB's sql interface for web2py, and there is an open issue: 
>>
>> - http://code.google.com/p/web2py/issues/detail?id=407 
>>
>> A few questions: 
>>
>> What is the current status of an OrientDB/web2py adapter? 
>> Is anyone currently using a graph database with web2py? 
>> Any suggestions for using web2py DAI/templates with non-rdbms sources? 
>>
>> Cheers, 
>>
>> Nolan
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.