[web2py] Does Web2py DAL have something similar to Rails Active Record Associations?

2015-01-23 Thread joseph simpson
Looks like a useful concept. -- Joe Simpson “Reasonable people adapt themselves to the world. Unreasonable people attempt to adapt the world to themselves. All progress, therefore, depends on unreasonable people.” George Bernard Shaw -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] how to run function right after user first logs in?

2015-01-23 Thread Alex Glaros
I want to run a function that determines if user has mail right after he logs in. What location can I place the function that will ensure that it will run when user first logs in? thanks Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.co

[web2py] Re: Mobile browsers cannot select Home in menu

2015-01-23 Thread Otto Domínguez
I noticed that last night, but you know more than I do, so i'll watch this post for a solution. Thanks. El viernes, 23 de enero de 2015, 19:41:15 (UTC-6), Carlos Hanson escribió: > > I would like to better understand the gluon.html.MENU helper with respect > to mobile browsers. > > When mobile i

[web2py] Mobile browsers cannot select Home in menu

2015-01-23 Thread Carlos Hanson
I would like to better understand the gluon.html.MENU helper with respect to mobile browsers. When mobile is True, the main menu is rendered as a SELECT rather than a UL. Although the dropdown doesn't look pretty, I see the value in how a mobile user can select a menu item. However, a selection

[web2py] Re: put signature on custom auth table

2015-01-23 Thread Leonel Câmara
I think that should be an auth option. In some cultures it gets really messy what a last name and a first name is. Name only is really the only correct way. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

[web2py] Re: What are the usual steps for designing a web2py application?

2015-01-23 Thread Francisco Ribeiro
There is another way of looking at this which I think it's really effective. Don't guide your approach by user requirements because customers don't know what are their own requirements. Even we, think we do but many times, we don't. Guide your approach by something concrete based on rapid proto

[web2py] Re: What are the usual steps for designing a web2py application?

2015-01-23 Thread 黄祥
i think : 1. ask more detail about user requirement 2. analysis and design database to match with user requirement 3. analysis and design system flow to match with user requirement 4. design the web layout 5. testing the system flow, system security and web layout best regards, stifan -- Resour

[web2py] Re: put signature on custom auth table

2015-01-23 Thread 黄祥
i've read that on the book, but the problem is, i want to replace first name and last name fields with 1 field name. any idea how to achieve it using web2py way? thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

[web2py] Re: What are the usual steps for designing a web2py application?

2015-01-23 Thread Dave S
On Friday, January 23, 2015 at 5:17:25 AM UTC-8, Y wrote: > > Hi. I have something on a graph database (Neo4j seem the best one) in mind. > I'm not sure if web2py (or any framework is good for what I intend to do). > I have high security demands. > >> >> Well, web2py was designed with security i

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
Please delete my previous forum post from your emails : ) On Friday, January 23, 2015 at 4:18:03 PM UTC-6, Massimo Di Pierro wrote: > > Want to stop by my office next week? I'd like to take a look. > > On Friday, 23 January 2015 15:02:21 UTC-6, Omi Chiba wrote: >> >> OK, so I can fix this Type

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
Massimo, Thank you for looking into the problem. Your office is a little bit far for me but maybe we can work remotely. It's hosting server so I can give you login info and we can use google hangout chat or something The server is live but only few people access the website so we can bring do

[web2py] Re: Admin backend not displaying right on GAE

2015-01-23 Thread Otto Domínguez
Mine is the default app.yaml from examples/ (2.9.12), python 2.7.6, GAE 1.9.17, Ubuntu 14.04 64-bit. Attached it as it is of now. You can see it has your suggested line. I tested with an app.yaml attached to the last post of this conversation: https://groups.google.com/forum/?fromgroups#!search

[web2py] Re: put signature on custom auth table

2015-01-23 Thread Massimo Di Pierro
I think it is much safer to use auth.settings.extra_fields['auth_user'] = [ ] First create the table without signature, then migrate it with (signature=True). On Friday, 23 January 2015 16:04:11 UTC-6, 黄祥 wrote: > > hi, > > is it possible to put signature on custom auth table? > e.g. take

[web2py] Re: more simple form field for search in some table coloumn

2015-01-23 Thread 黄祥
i mean for the query in web2py way : rows = db((db.model.id == db.product.model) & (db.product.quantity > 0) )((*db.product.serial_no.contains(search_product) ) | * * (db.product.product_no.contains(search_product) ) | * * (db.model.name.contains(search_product)* ) ).select(db.product.ALL)

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Massimo Di Pierro
Want to stop by my office next week? I'd like to take a look. On Friday, 23 January 2015 15:02:21 UTC-6, Omi Chiba wrote: > > OK, so I can fix this TypeError: can't pickle function objects error by > the solution described here. (Adding AllowOverride None in apache config > file > > https://gro

[web2py] Re: Automatically displaying email field as mailto anchor tag in views.

2015-01-23 Thread Massimo Di Pierro
In models you can do: db.mytable.myemail.represent = lambda email,row: A(email,_href='mailto:%s' % email) On Thursday, 22 January 2015 19:22:17 UTC-6, Paul wrote: > > > I am a web2py newbie though I've used Python for years. I need a CRMy kind > of application so I latched onto this > https:

[web2py] Re: What are the usual steps for designing a web2py application?

2015-01-23 Thread Y
Hi. I have something on a graph database (Neo4j seem the best one) in mind. I'm not sure if web2py (or any framework is good for what I intend to do). I have high security demands. Am Freitag, 23. Januar 2015 00:30:25 UTC+1 schrieb Dave S: > > On Thursday, January 22, 2015 at 12:21:31 AM UTC-8,

Re: [web2py] Re: Using a graph database with web2py

2015-01-23 Thread Y
What's REST? I guess there is the possibility for using python: http://nicolewhite.github.io/neo4j-flask/ > > But if I had checked the right-hand column, it mentions a REST web api. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] Do You have rbac application for example?

2015-01-23 Thread Serg Syuzev
Hello! I'd like to use in my "crm-like" app rbac mechanism but I don't understand how it work. Maybe someone have example how use web2py-rbac in real app? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:/

[web2py] Need Customer Care Specialist ASAP at Austin,Texas

2015-01-23 Thread venu . esolvit
Good Morning!!! We at Esolvit are looking for the following position. Job Title : "Customer Care Specialist" Location : Austin, TX Duration : 6+ Months Requirements : Must be on site in Austin, Texas. There is no Remote work allowed. Job Description: - "Provide unbiased assistance to

[web2py] Re: Bootstrap modal for insert, update and delete

2015-01-23 Thread Serg Syuzev
Hello! I think, You can use some jQuery "magic" for begin. In *views/comments/post.load *in line: {{=A('Edit', callback=URL('welcome', 'comments', 'get_comment', vars={'id': post.id}), target="form_load")}} for example, add before "callback": *_onclick="jQuery('#myModal').modal('show');",* ​ >

[web2py] RSS feed

2015-01-23 Thread Dani
Hi: What string type pass for this work? file: gluon/serializers.py (from 25 Sep 2014) line: 182 def safestr(obj, key, default=''): return str(obj[key]).encode('utf-8', 'replace') if key in obj else default This code fail for me if have special characters. Example: if: obj[key]

[web2py] Re: Ubuntu Software-Center contains web2py 1.99

2015-01-23 Thread Y
Unfortunately not, I'm a newbie. -- 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] put signature on custom auth table

2015-01-23 Thread 黄祥
hi, is it possible to put signature on custom auth table? e.g. taken from book ## after auth = Auth(db) db.define_table( auth.settings.table_user_name, Field('name', length=128, default=''), Field('email', length=128, default='', unique=True), # required Field('username', length=1

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
OK, so I can fix this TypeError: can't pickle function objects error by the solution described here. (Adding AllowOverride None in apache config file https://groups.google.com/forum/#!searchin/web2py/apache$20pickle/web2py/UYqS8nIkeQY/ib8Vjshs7JEJ This solve one problem! So I don't have any prob

Re: [web2py] Re: Using a graph database with web2py

2015-01-23 Thread Dave S
On Friday, January 23, 2015 at 12:45:05 AM UTC-8, Michele Comitini wrote: > > don't waste time with java graphlibs, python has much better things. > http://rdflib.readthedocs.org/en/latest/ > > For those of us just starting to climb the learning curve for this, I'd add the link http://www.w3.org

[web2py] Re: Google Cloud Storage libraries interaction web2py appengine

2015-01-23 Thread Jacinto Parga
Thanks, I'm just looking for a simple way to upload and download files from google cloud store, but it seems so tricky to me. El jueves, 22 de enero de 2015, 23:59:11 (UTC+1), Massimo Di Pierro escribió: > > GAE does not provide httplib2 > > they want you to use urlfetch (their api). web2py pro

[web2py] Fail codification RSS feed when special characters

2015-01-23 Thread damufo
Hi: What string type pass for this work? file: gluon/serializers.py (from 25 Sep 2014) line: 182 def safestr(obj, key, default=''): return str(obj[key]).encode('utf-8', 'replace') if key in obj else default This code fail for me if have special characters. Example: if: obj[key]

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
I mean file is created anyway. It's just a error ticket File "C:\Python27\Lib\copy_reg.py", line 70, in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle function objects On Friday, January 23, 2015 at 9:26:18 AM UTC-6, Omi Chiba wrote: > > Um...

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
Um... more weird things. I'm using version 2.4.7 now and I got a similar error when I try to create view. Versionweb2py™Version 2.4.7-stable+timestamp.2013.05.24.17.48.47PythonPython 2.7.4: C:\UniServer\usr\local\apache2\bin\Apache.exe (prefix: C:\Python27) Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9.

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-23 Thread Omi Chiba
Yes. I stop and start apache when I replace web2py folder. After trouble shooting I found 1. http://thksupport.com/welcome/default/index => OK 2. https://thksupport.com/welcome/default/index => NG 3. https://thksupport.com/admin/default/index => NG So any https request become NG for the same err

[web2py] version 2.9.5 and is 2.9.11 = 2.9.10

2015-01-23 Thread Richard
Hello, First I would have an appreciation of the 2.9.5 appreciation. I want to migrate form 2.4.7. My code base is updated and working in 2.9.5, so I would like to know if there was any major issue known with this version. Also, I have a folder identified with 2.9.10 where I have tested my app.

[web2py] Re: AppointmentManager appliance updated

2015-01-23 Thread Gael Princivalle
Hello. I would like to use this appointment manager application. The new link is not valid anymore: https://github.com/oktools/web2py-appliances/tree/master/AppointmentManager And this one is quite old: https://github.com/mdipierro/web2py-appliances/tree/master/AppointmentManager Where can I fi

Re: [web2py] Re: Using a graph database with web2py

2015-01-23 Thread Michele Comitini
don't waste time with java graphlibs, python has much better things. http://rdflib.readthedocs.org/en/latest/ 2015-01-23 2:38 GMT+01:00 Ovidio Marinho : > Look this: http://www.highcharts.com/ > > > > > Ovidio Marinho Falcao Neto > ITJP.NET.BR > ovidio...