[web2py] Re: Solidform error: list indices must be integers

2012-05-16 Thread Simon Ashley
Thanks for that (mind in neutral) (Seems to be a issue with tags on read only forms but wi

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread Gour
On Thu, 17 May 2012 07:27:53 +0200 "Roberto De Ioris" wrote: > In my mind, less than 20 concurrent connections :) Good. I'm in. ;) > For others it is often a matter of money, if i get 10$ for > configuring a webserver would you prefer to setup > lighttpd/nginx/apache/cherokee/mongrel2 + uwsgi/g

Re: [web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Bassem Bouguerra
This is how I solved it: I went to preferences -> PyDev -> Interpreter - Python and in the Libraries tab, I added the folder /usr/local/Cellar/opencv/2.3.1a/lib/python2.7/site-packages/ It worked like a charm! On Wed, May 16, 2012 at 9:54 PM, Bassem Bouguerra wrote: > Yup. > I put in my ~/.bash

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread Roberto De Ioris
> On Thu, 17 May 2012 06:22:20 +0200 > "Roberto De Ioris" wrote: > >> If you are able to follow it, then adding a webserver should be a >> pretty easy task (and yesterday, uWSGI got https support so you do >> not even need a full webserver for simple deployments) > > What is considered 'simple de

Re: [web2py] Updated slice: nginx and SCGI | Recipe | Web2py Slices - Recipes, Tutorials, Code, Questions

2012-05-16 Thread Roberto De Ioris
> Changes: > - keep-alive support from nginx. Hi Michele, does wsgitools SCGI server really supports keepalive connections ? That would be a kick-ass feature i need to copy for sure :) -- Roberto De Ioris http://unbit.it

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread Gour
On Thu, 17 May 2012 06:22:20 +0200 "Roberto De Ioris" wrote: > If you are able to follow it, then adding a webserver should be a > pretty easy task (and yesterday, uWSGI got https support so you do > not even need a full webserver for simple deployments) What is considered 'simple deployment'?

[web2py] Re: CMS question

2012-05-16 Thread Gour
On Thu, 3 May 2012 21:11:20 -0700 (PDT) Massimo Di Pierro wrote: > This is what I have so far. Here is a nice feature list for potential web2py-based CMS: Hierarchical page navigation Save as draft and preview on site Scheduled publishing Drag-n-drop page ordering WYSIWYG ed

Re: [web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Bassem Bouguerra
Yup. I put in my ~/.bash_profile export PYTHONPATH=$PYTHONPATH:/Users/dan/pymodules export PYTHONPATH=$PYTHONPATH:/usr/local/include/opencv/ And still the same error On Wed, May 16, 2012 at 2:50 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you try set PYTHONPATH? > > http://w

Re: [web2py] nginx uwsgi error 502 bad gate way

2012-05-16 Thread Roberto De Ioris
> Guys, I have followed the cookbook, the posts here, and a posting at > stackoverflow. > > I am getting error 502 bad gateway. My stuff looks like everyone else's > but there are deeper layers of indirection in uwsgi itself and nginx. I > have several uwsgi sym links in /etc/init.dIt is not

[web2py] Re: Suggestion about using jqmobile in web2py

2012-05-16 Thread Ray (a.k.a. Iceberg)
Further discussion is moved to http://groups.google.com/group/web2py-developers/browse_frm/thread/ab1f23e39dcd3c9d Thanks for attention. Regards, Ray On Tuesday, May 15, 2012 10:15:10 PM UTC+8, Anthony wrote: > > Meanwhile, shall we keep the discussion about how to utilize that >> layout_jq

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread pbreit
I'd agree that Python deployment remains unnecessarily difficult. I also agree that just running random scripts isn't the best approach. However I think it can be very helpful to run the commands manually that you find in a script. Then you really know what is being performed and can create you

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread JungHyun Kim
LOL. But someone in this user group already succeeded with openshift. So it might be my fault. I should find the answer more. Thank you very much Massimo. 2012년 5월 17일 목요일 오전 11시 42분 31초 UTC+9, Massimo Di Pierro 님의 말: > > Somehow RH ships with a broken Python. Somehow I am not surprised. > >

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread Massimo Di Pierro
Somehow RH ships with a broken Python. Somehow I am not surprised. On Wednesday, 16 May 2012 21:33:24 UTC-5, JungHyun Kim wrote: > > Unfortunately, I can't. No way to change python version of the server. > > But I tried with python 2.6 on my OS X. It works well. > > > 2012년 5월 17일 목요일 오전 6시 17분 54

[web2py] Re: Solidform error: list indices must be integers

2012-05-16 Thread Massimo Di Pierro
Assuming SOLIDFORM is an SQLFORM form1 = SOLIDFORM(db.Sample, q1, fields=fields1, readonly=True) q1 should be a record id or a Row object. You are passing a Rows object. On Wednesday, 16 May 2012 21:32:08 UTC-5, Simon Ashley wrote: > > Any one with any ideas on this one? > (been trying to troubl

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread JungHyun Kim
Unfortunately, I can't. No way to change python version of the server. But I tried with python 2.6 on my OS X. It works well. 2012년 5월 17일 목요일 오전 6시 17분 54초 UTC+9, Massimo Di Pierro 님의 말: > > Any chance you can try 2.5 or 2.7? > > On Wednesday, 16 May 2012 11:28:32 UTC-5, JungHyun Kim wrote: >>

[web2py] Solidform error: list indices must be integers

2012-05-16 Thread Simon Ashley
Any one with any ideas on this one? (been trying to trouble shoot it all morning) Environment: Version 1.99.4 (2011-12-31 04:51:15) Getting the following error, and unable to work it out. (have other areas using soldiform that are working OK) Traceback (most recent call last): File "C:\web2py\

[web2py] Re: Redirect and try except ?

2012-05-16 Thread IVINH
How i can use? def mycaller(f): try: return f() except *(HTTP...)* : return f() else: raise(HTTP(400)) Vào 09:09:50 UTC+7 Thứ năm, ngày 17 tháng năm năm 2012, IVINH đã viết: > > > Thanks. > > I'm try: > > def mycaller(f): > try: return f() > except: raise(HTTP(400)) > > r

[web2py] Re: Redirect and try except ?

2012-05-16 Thread IVINH
Thanks. I'm try: def mycaller(f): try: return f() except: raise(HTTP(400)) response._caller = mycaller But it's break my redirect in controller. Vào 08:47:14 UTC+7 Thứ năm, ngày 17 tháng năm năm 2012, Anthony đã viết: > > def index(): >> try: >> redirect(URL(f='user',arg

[web2py] Re: Redirect and try except ?

2012-05-16 Thread Anthony
> > def index(): > try: > redirect(URL(f='user',args=['login'])) > except: raise HTTP(400) > redirect() is equivalent to raising an HTTP(303) exception, but of course, the exception you are raising in the try is actually caught by your except, so it ends up raising the HTTP(400)

[web2py] Redirect and try except ?

2012-05-16 Thread IVINH
Hi all, Why not write code like this? (It can not redirect) In my default control: def index(): try: redirect(URL(f='user',args=['login'])) except: raise HTTP(400)

[web2py] Re: URL vars doesn't like Storage

2012-05-16 Thread Massimo Di Pierro
_vars = request.vars['vars'] or {} subject = 'FEEDBACK: %s' % URL(c=_c,f=_f,args=_args,vars=_vars) # < vars doesn't like Storage _vars is a string. You are trying to pass a string where it expects a dict() On Wednesday, 16 May 2012 18:01:13 UTC-5, sebastian wrote: > > Hi All, > > I'd lik

[web2py] Re: How do I specify the migration rules?

2012-05-16 Thread Massimo Di Pierro
1) First you add the newfield from the model. 2) then from shell you do db(db.table).update(newfield=db.table.oldfield*100) db.commit() 3) Then you delete the oldfield from the model. On Wednesday, 16 May 2012 18:00:39 UTC-5, csantos wrote: > > Hi, > Suppose that in my db table I have a text fie

[web2py] Re: KeyError: 'float' when selecting records

2012-05-16 Thread Massimo Di Pierro
You can use the nightly built until we post the new stable (2.0) On Wednesday, 16 May 2012 17:04:21 UTC-5, wuelfhis asuaje wrote: > > Ok Massimo y tested with nightly build 1.99.7 and it's working now. > > Now,, what should i do? work with this version, wait to be corrected in > stable, or what?

[web2py] Re: plugin_lazy_options_widget trigger event

2012-05-16 Thread kenji4569
Hi Jim, In puling_suggest_widget, trigger events are invoked from a js file: https://github.com/sqlabs/sqlabs/blob/master/static/plugin_suggest_widget/suggest.js by $input.trigger($input.attr('id') + '__unselected'); $input.trigger($input.attr('id') + '__selected', [val]); methods. To setup your t

[web2py] nginx uwsgi error 502 bad gate way

2012-05-16 Thread Lewis
Guys, I have followed the cookbook, the posts here, and a posting at stackoverflow. I am getting error 502 bad gateway. My stuff looks like everyone else's but there are deeper layers of indirection in uwsgi itself and nginx. I have several uwsgi sym links in /etc/init.dIt is not clear wh

[web2py] URL vars doesn't like Storage

2012-05-16 Thread Sebastian E. Ovide
Hi All, I'd like to add a feedback form in layout.html so that the users can click on it on whatever page they are and send a message to the site admin. To be useful, the form must include the current page and vars so that the admin can click on a link and go to exactly the same place where the us

[web2py] How do I specify the migration rules?

2012-05-16 Thread csantos
Hi, Suppose that in my db table I have a text field that stores data in an XML format. One day, I decide to change it to a text field with the same name but convert the data to json. In other words, I'd like to specify a migration rule (maybe a callback?) that would convert every single entry in

[web2py] Re: How to use web2py DAL with sybase? Please point me to the sybase adapter

2012-05-16 Thread dlypka
OK I will download the trunk and try it tomorrow. Thanks. On Wednesday, May 16, 2012 4:48:39 PM UTC-5, Massimo Di Pierro wrote: > > I just committed a SybaseAdapter using this driver: > > http://python-sybase.sourceforge.net/ > > It extends the MSSQLAdapter but uses the other driver and Sybase ty

[web2py] Updated slice: nginx and SCGI | Recipe | Web2py Slices - Recipes, Tutorials, Code, Questions

2012-05-16 Thread Michele Comitini
Changes: - keep-alive support from nginx. - secure https channel detection. - process management tip. http://www.web2pyslices.com/slice/show/1466/nginx-and-scgi tnx -- mic

[web2py] Re: KeyError: 'float' when selecting records

2012-05-16 Thread wuelfhis asuaje
Ok Massimo y tested with nightly build 1.99.7 and it's working now. Now,, what should i do? work with this version, wait to be corrected in stable, or what? Thanks

[web2py] Re: KeyError: 'float' when selecting records

2012-05-16 Thread wuelfhis asuaje
Ok Massimo y tested with nightly build 1.99.7 and it's working know. Now,, what should i do? work with this version, wait to be corrected in stable, or what? Thanks

[web2py] Re: KeyError: 'float' when selecting records

2012-05-16 Thread wuelfhis asuaje
Ok let me try !

[web2py] Re: KeyError: 'float' when selecting records

2012-05-16 Thread Massimo Di Pierro
Hello wuelfhis, Do you have 1.99.7 stable? I believe this has been fixed in trunk and in the nightly build. Can you try it? Massimo On Wednesday, May 16, 2012 4:42:55 PM UTC-5, wuelfhis asuaje wrote: > > It only happens in version 1.99.7 > > in 1.99.1 works perfect > > Only happens when the tab

[web2py] KeyError: 'float' when selecting records

2012-05-16 Thread wuelfhis asuaje
It only happens in version 1.99.7 in 1.99.1 works perfect Only happens when the table or (i don't know if model) has a float or decimal field That's what i ran: In [66]: rows = db().select(db.fc_pago.ALL) --- KeyError

Re: [web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Massimo Di Pierro
Can you try set PYTHONPATH? http://www.stereoplex.com/blog/understanding-imports-and-pythonpath On Wednesday, 16 May 2012 12:46:34 UTC-5, web2py_tn wrote: > > Actually I think the installation path is > > /usr/local/lib/ > > But where do I have to manually set it, in web2py? > > On Wed, May 16,

[web2py] Re: How to use web2py DAL with sybase? Please point me to the sybase adapter

2012-05-16 Thread Massimo Di Pierro
I just committed a SybaseAdapter using this driver: http://python-sybase.sourceforge.net/ It extends the MSSQLAdapter but uses the other driver and Sybase types. It needs testing. You can use it with DAL('sybase://dsnstring') or DAL('sybase://username:password@hostname:port/dbname') It uses

[web2py] Re: How to use web2py DAL with sybase? Please point me to the sybase adapter

2012-05-16 Thread dlypka
No preference on which python driver for sybase. So whatever you select is fine with us. Thanks. - Dave Lypka. On Wednesday, May 16, 2012 4:10:28 PM UTC-5, Massimo Di Pierro wrote: > > Will send it tonight. Basically Sybase is almost the same as MSSQL. Do you > a preference for one of the pyhton

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread Massimo Di Pierro
Any chance you can try 2.5 or 2.7? On Wednesday, 16 May 2012 11:28:32 UTC-5, JungHyun Kim wrote: > > > The server is Redhat Openshift (cloud PAAS). It uses Python 2.6 on RHEL 6. > > > > 2012년 5월 17일 목요일 오전 12시 34분 54초 UTC+9, Massimo Di Pierro 님의 말: >> >> what python version and os version do you h

[web2py] Re: web2py uWSGI cherokee -- I give up

2012-05-16 Thread Lewis
Thanks. I am going with nginx. Already had apache up and running for many months. The slices are way out of date (and the site has bad visuals, is hard to navigate and search despite being a volunteer effort by a community member). The cookbook is better but contains obvious errors (symbolic l

[web2py] Re: How to use web2py DAL with sybase? Please point me to the sybase adapter

2012-05-16 Thread Massimo Di Pierro
Will send it tonight. Basically Sybase is almost the same as MSSQL. Do you a preference for one of the pyhton drivers for sybase? On Wednesday, 16 May 2012 10:51:39 UTC-5, dlypka wrote: > > > I do not see any reference to "sybase" in 1.99.7 dal.py. > > Please point me to the sybase adapter. > > T

Re: [web2py] Configuring web2py with nginx - domain error ("gaierror: [Errno -2] Name or service not known")

2012-05-16 Thread Chris
I wrote a patch to fix the problem on my server, which is basically just commenting out that line (main.py:390ish): local_hosts = [http_host,'::1','127.0.0.1',':::127.0.0.1'] if not global_settings.web2py_runtime_gae: local_hosts += [socke

Re: [web2py] Problem with storage object

2012-05-16 Thread Rod Watkins
Ahh, found it. I did have a function named gsettings. It was in a different model file and I had forgotten to delete it. Thanks for the suggestion. That was two hours wasted. :) Rod On Wednesday, 16 May 2012 12:46:26 UTC-7, rochacbruno wrote: > > do you have a function named "gsettings" in cont

Re: [web2py] Re: Error facebook login

2012-05-16 Thread Michele Comitini
The /etc/hosts i am talking about is the one on the client I.e. the computer running the browser not the one running web2py. If you want a public domain name you can one at afraid.org. No PTR just A is needed. mic Il giorno 16/mag/2012 15:16, "www.diazluis.com" ha scritto: > greetings. > > I re

Re: [web2py] Problem with storage object

2012-05-16 Thread Rod Watkins
No, no such function. On Wednesday, 16 May 2012 12:46:26 UTC-7, rochacbruno wrote: > > do you have a function named "gsettings" in controller? > > > > -- > > Bruno Rocha > [http://rochacbruno.com.br] > >

Re: [web2py] Filling the page as data is being processed

2012-05-16 Thread Richard Vézina
If you don't need this page to be update more then once a day or once a hour what you can do is this : You make sub-function that you gonna cache def __sub_func_NAME(): complex query return var def display_func(): var = cache.ram('var', lambda: __sub_func_sample

Re: [web2py] Filling the page as data is being processed

2012-05-16 Thread Fabiano Faver
For this purpose they are not...I may include a field on printers table that inform the date I searching for. If what I want to do in this page is still not clear I can try to explain more. basically its a grid that each TD have a bg-color dependant on it last date EmpresaTb = db.define_table

[web2py] cannot find the adapter for sybase which Massimo is referring to

2012-05-16 Thread dlypka
Please advise where it is. I do not see 'sybase' in dal.py. Is is somewhere else? Thanks.

Re: [web2py] Filling the page as data is being processed

2012-05-16 Thread Richard Vézina
Would you show your models... You make complexe queries, maybe your models are not pretty well design for the purpose. Richard On Wed, May 16, 2012 at 3:22 PM, Fabiano Faver wrote: > But because of the group by clause it are too slow and I curious to know > if I can query each company separate

Re: [web2py] Problem with storage object

2012-05-16 Thread Bruno Rocha
do you have a function named "gsettings" in controller? -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Problem with storage object

2012-05-16 Thread Rod Watkins
I have created a Storage object in a model to expose some settings gathered from the database. But I am facing a problem. When I access the object from a view, it works correctly, e.g., {{=gsettings.setting_name}} produces the correct text in my html. But if I try to access that value in my con

Re: [web2py] Filling the page as data is being processed

2012-05-16 Thread Fabiano Faver
But because of the group by clause it are too slow and I curious to know if I can query each company separately do what i must with the data and show the result on page as soon as they are ready 2012/5/16 Fabiano Faver > I'm trying to display a table with the name of some companies with the > b

Re: [web2py] Filling the page as data is being processed

2012-05-16 Thread Fabiano Faver
I'm trying to display a table with the name of some companies with the background color of each TD or DIV dependent of the last day the printers company were checked this it what I have now: def exibicao_empresas(): #get companies empr = db(auth.accessible_query('read', db.empresa, au

Re: [web2py] Filling the page as data is being processed

2012-05-16 Thread Richard Vézina
Show code, very difficult to follow you... Richard On Wed, May 16, 2012 at 2:44 PM, Fabiano Faver wrote: > I have a page that have a slow query using group by but it are slowing > down the query so I thought to load each item separately and showing them > as they are done. Web2py have any tool

[web2py] Filling the page as data is being processed

2012-05-16 Thread Fabiano Faver
I have a page that have a slow query using group by but it are slowing down the query so I thought to load each item separately and showing them as they are done. Web2py have any tool that can help me with this or I need to use another approach?

[web2py] Re: RFC: web2py-based workflow engine

2012-05-16 Thread Ross Peoples
The data model I already have does things a bit differently, but I think it accomplishes the same thing. I am in the process of writing all of the support methods. This is my current data model: # workflow table db.define_table('workflow', Field('name', length=50), Field('is_template',

[web2py] Re: web2py uWSGI cherokee -- I give up

2012-05-16 Thread pbreit
As has been suggested, you might reconsider Apache or Nginx (my preference). I haven't tried this in awhile but this worked at one point: https://bitbucket.org/pbreit/web2py-automation/src/bc2ac095b592/setup-ubuntu-cherokee.sh Also, for Nginx: https://bitbucket.org/pbreit/web2py-automation/src/bc

Re: [web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Bassem Bouguerra
Actually I think the installation path is /usr/local/lib/ But where do I have to manually set it, in web2py? On Wed, May 16, 2012 at 10:42 AM, Bassem Bouguerra wrote: > Also, I installed opencv using homebew and I can find OpenCV folder > in /usr/local/share/ where there is OpenCVConfig-version

Re: [web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Bassem Bouguerra
Also, I installed opencv using homebew and I can find OpenCV folder in /usr/local/share/ where there is OpenCVConfig-version.cmake haarcascades OpenCVConfig.cmake lbpcascades doc That means OpenCV's installation path is /usr/local/share/, right? On Wed, May 16, 2012 at 10:33 AM, Bassem Bouguerra

[web2py] Re: Automatically reload custom modules?

2012-05-16 Thread howesc
i'm on a mac using GAE, but i have a script that calls dev_appserver (rather than using their gui launcher). and my keystrokes memorized to alt+tab to terminal, ctrl+c, up arrow, enter, alt+tab to FFperhaps not quite as efficient as auto-reload of modules but it keeps me happy enough. cfh

[web2py] Re: SNI or dedicated IP.

2012-05-16 Thread Anthony
On Wednesday, May 16, 2012 1:08:20 PM UTC-4, Ross Peoples wrote: > > I wouldn't know the first thing about setting up SNI, so I would tell > WebFaction that if they will do it for me and it works, then sure, I'll use > SNI, otherwise stick with what you know. > I think in this case, "what you kn

Re: [web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Bassem Bouguerra
Thanks Willis Do I add that into the web2py.py ? On Wed, May 16, 2012 at 8:17 AM, Wikus van de Merwe < dupakrop...@googlemail.com> wrote: > Where is the opencv installed in your system? When you check python > interpreters in PyDev options is that path on the list? > > If you still struggling w

[web2py] Re: RFC: web2py-based workflow engine

2012-05-16 Thread Cliff
Ross, I like the workflow monitor table, though I think it should be tied to the template rather than individual workflows. Since each stage knows the id of its parent workflow and the workflow knows the id of its template, it would be a simple matter to get the monitors and ping them when the

[web2py] Re: SNI or dedicated IP.

2012-05-16 Thread Ross Peoples
I wouldn't know the first thing about setting up SNI, so I would tell WebFaction that if they will do it for me and it works, then sure, I'll use SNI, otherwise stick with what you know. On Wednesday, May 16, 2012 12:14:42 PM UTC-4, Anthony wrote: > > I'd never heard of SNI before, but looking a

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-16 Thread JungHyun Kim
Thank you Andrew! I connected mysql successfully (I guess, cause the error message disappeared). But I still have some problems. ( https://groups.google.com/forum/#!topic/web2py/wMDDCsisic4) If I can see your project settings, it will be really helpful! 2012년 5월 16일 수요일 오전 3시 15분 28초 UTC+9,

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread JungHyun Kim
The server is Redhat Openshift (cloud PAAS). It uses Python 2.6 on RHEL 6. 2012년 5월 17일 목요일 오전 12시 34분 54초 UTC+9, Massimo Di Pierro 님의 말: > > what python version and os version do you have? > > On Tuesday, 15 May 2012 22:20:00 UTC-5, JungHyun Kim wrote: >> >> Hi. >> >> I got a error "Attribute

[web2py] Re: require login on submit

2012-05-16 Thread Anthony
What user workflow are you trying to achieve? Is it possible to simply not present the form unless the user is logged in (i.e., require login to get to the page with the form)? Otherwise, I suppose you could handle it via Javascript and Ajax -- when submit is clicked, check for login, and if not

[web2py] Re: https for login

2012-05-16 Thread Lewis
Well, thats easy! Does anyone do it with RedirectMatch? Should I really switch to nginx? Thanks, (I hate config.)

[web2py] Re: change the size of a text field in a form

2012-05-16 Thread Anthony
You can do it via CSS: textarea {width: 400px;} Anthony On Wednesday, May 16, 2012 11:59:14 AM UTC-4, Marco Prosperi wrote: > > > hello, how can I change the default size of a 'text' field in a form? (at > first appearance, not dragging the corner) > > thanks > > Marco >

[web2py] Re: SNI or dedicated IP.

2012-05-16 Thread Anthony
> > I'd never heard of SNI before, but looking at the Wikipedia page for it: > http://en.wikipedia.org/wiki/Server_Name_Indication > > This will NOT work. The main reason being that Python 2 (which web2py runs > on) does not support SNI. Python 3.2 does, however. So until there is a > web3py, S

Re: [web2py] Re: GAE datastore: how to unindex a field?

2012-05-16 Thread Christian Foster Howes
actually the question at hand here i think is whether or not web2py can support indexed=False in the property constructor when defining GAE models: https://developers.google.com/appengine/docs/python/datastore/propertyclass class Property(verbose_name=None, name=None, default=None, required=Fa

[web2py] change the size of a text field in a form

2012-05-16 Thread Marco Prosperi
hello, how can I change the default size of a 'text' field in a form? (at first appearance, not dragging the corner) thanks Marco

[web2py] Re: modules

2012-05-16 Thread Aurigadl
I did Thank you for entering Issue 800 El miércoles, 16 de mayo de 2012 10:43:36 UTC-5, Massimo Di Pierro escribió: > > Please open a ticket in googlecode and give more details about your web2py > version, python version and os version. >

[web2py] require login on submit

2012-05-16 Thread Marco Prosperi
hi all, what could be a clean way to require login (if not already logged in) when a user clicks on the submit button of a form? thanks in advance for advice Marco

[web2py] Re: SNI or dedicated IP.

2012-05-16 Thread Annet
Hi Ross, Thanks for the reply. I'll stick to the dedicated IP address solution. Kind regards, Annet

[web2py] Re: How to use web2py DAL with sybase? Please point me to the sybase adapter

2012-05-16 Thread dlypka
I do not see any reference to "sybase" in 1.99.7 dal.py. Please point me to the sybase adapter. There are 2 of us developers here at work who can test it for you on a large corporate sybase database. Thanks. On Wednesday, May 16, 2012 10:42:05 AM UTC-5, Massimo Di Pierro wrote: > > web2py inc

[web2py] Re: modules

2012-05-16 Thread Massimo Di Pierro
Please open a ticket in googlecode and give more details about your web2py version, python version and os version. On Wednesday, 16 May 2012 10:40:54 UTC-5, Aurigadl wrote: > > if you have: > > /applications/examples/modules/prueba.py > > $python web2py.py -S examples > > >>import prueba > > this

[web2py] Re: How to use web2py DAL with sybase?

2012-05-16 Thread Massimo Di Pierro
web2py includes an adapter but nobody has tested it. If you can help us test it we can help you debug any problem that may arise. Compatibility with sybase and other SQL DB engines is a priority. On Wednesday, 16 May 2012 07:47:59 UTC-5, dlypka wrote: > > I see this posting which has some syba

[web2py] Re: modules

2012-05-16 Thread Aurigadl
if you have: /applications/examples/modules/prueba.py $python web2py.py -S examples >>import prueba this does not work But if you used: >>from applications.examples.modules import prueba this work very well. way?? I have all whit the __init__py for import modules. El miércoles, 16 de mayo

[web2py] Re: GAE datastore: how to unindex a field?

2012-05-16 Thread Wikus van de Merwe
This is really a GAE question, not related to web2py. By default the indexes are set automatically when you run your app in dev environment depending on what queries you use. But you can do it manually to by editing the index.yaml (above the #AUTOGENERATED line). On the next deploy the indexes

Re: [web2py] Re: Two LEFT JOINs and left=

2012-05-16 Thread Annet
Johann and Marin, Thanks for your replies. Also, can you try: > > row=db().select(db.Organization.name , > db.Hub.name ,\ > left=[db.Organization.on(db.Node.id == > db.Organization.nodeID),db.Hub.on(db.Node.id

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread Massimo Di Pierro
what python version and os version do you have? On Tuesday, 15 May 2012 22:20:00 UTC-5, JungHyun Kim wrote: > > Hi. > > I got a error "AttributeError: 'thread._local' object has no attribute > 'request'" when trying to run web2py with wsgi. > > The application was "welcome" which is sample appli

[web2py] Re: modules

2012-05-16 Thread Anthony
Are you importing from within the "examples" application? In that case you can just do: import test Anthony On Wednesday, May 16, 2012 11:13:16 AM UTC-4, Aurigadl wrote: > > I always work with modules. In the latest versions of web2py not work. > doing the following to import: > > from applica

Re: [web2py] Re: Book Update - Chapter 9 - Pyjamas and jsonrpc

2012-05-16 Thread Massimo Di Pierro
I promise. Tonight. On Tuesday, 15 May 2012 09:19:41 UTC-5, Anthony wrote: > > On Tuesday, May 15, 2012 10:12:32 AM UTC-4, Massimo Di Pierro wrote: >> >> Agreed. >> > > Nevertheless, we need the book to be editable again so we can fix > all the other errors that have been reported and start docum

[web2py] Re: Why the web2py shell returns different results?

2012-05-16 Thread sesenmaister
1.-both editor and shell use different type of encofing: sure 2.-both editor and shell throw the same answer: yes >>> import sys >>> sys.stdin.encoding ‘cp850' 3.-both editor and shell throw the same answer: yes >>>import sys >>>sys.getdefaultencoding() 'ascii' 4.-due to my lack of knowledge, I

[web2py] Re: RFC: web2py-based workflow engine

2012-05-16 Thread Ross Peoples
Cliff, Thanks for putting this into a spec. My current code follows most of what is in there. I still haven't finished writing (or testing it), but I do have some thoughts on implementation for one or two of the items listed at the end: I imagine a "workflow_monitor" table that has the fields:

[web2py] Re: External lib import issue ( opencv )

2012-05-16 Thread Wikus van de Merwe
Where is the opencv installed in your system? When you check python interpreters in PyDev options is that path on the list? If you still struggling with it, a workaround could be to add the installation folder to the system path by hand: import sys sys.path.append("opencv")

Re: [web2py] modules

2012-05-16 Thread Bruno Rocha
For that to work you need a bare __init__.py file in all directories and subdirectories. /applications/__init__.py, /applications/yourapp/__init__.py, .../modules/__init__.py On Wed, May 16, 2012 at 12:13 PM, Aurigadl wrote: > I always work with modules. In the latest versions of web2py not work

[web2py] modules

2012-05-16 Thread Aurigadl
I always work with modules. In the latest versions of web2py not work. doing the following to import: from applications.examples.modules import test Restricting the application name.The modules are placed in the / app / modules/. As this problem solved.

[web2py] Re: quotes & invoices app

2012-05-16 Thread Gour
On Wed, 16 May 2012 05:32:06 -0700 (PDT) Alan Etkin wrote: > Check out this projects: > > *GestionLibre* > *FacturaLibre* Thank you...Let me check it out... Sincerely, Gour -- Before

[web2py] Re: RFC: web2py-based workflow engine

2012-05-16 Thread Cliff
I have collected my thoughts into a specification, available at this link . Comments invited and welcome. Thank you. On Tuesday, May 1, 2012 12:00:42 PM UTC-4, Ross Peoples wrote: > > In reference to: >

[web2py] Re: update not updating

2012-05-16 Thread Anthony
> > db.lecture_items.fileetag.writable = True > upload = db(db.lecture_items.id==uidi).select().first() > upload.update(fileetag='%s' % request.vars.etag) > db.commit() > First, the writable attribute only determines whether the field will be displayed and editable in SQLFORMs --

Re: [web2py] update not updating

2012-05-16 Thread Richard Vézina
I think that this is wrong : upload = db(db.lecture_items.id==uidi). select().first() try not use upload var at first, do this instead : db(db.lecture_items.id==uidi).update(fileetag='%s' % request.vars.etag) If still not working, you should investigate if "uidi" is really the id of the record y

[web2py] Re: https for login

2012-05-16 Thread Anthony
I'm tempted to say we should just go back to the old book app for the time being so we can do editing as well as have working reference links, an index, and a working TOC for the Deployment chapter (all of which are broken in the current book app). Anthony On Wednesday, May 16, 2012 10:01:14 A

[web2py] Re: https for login

2012-05-16 Thread Anthony
On Wednesday, May 16, 2012 9:52:34 AM UTC-4, Ross Peoples wrote: > > I only know about it because I submitted it :) We really need to open the > book up for editing so that we can add these kinds of things. > +1

[web2py] Re: https for login

2012-05-16 Thread Ross Peoples
I only know about it because I submitted it :) We really need to open the book up for editing so that we can add these kinds of things. On Wednesday, May 16, 2012 9:22:28 AM UTC-4, Anthony wrote: > >request.requires_https() >> > > Yet another secret feature. :-) >

[web2py] update not updating

2012-05-16 Thread lucas
hello one and all, trying to update, but not updating. here is my code: db.lecture_items.fileetag.writable = True upload = db(db.lecture_items.id==uidi).select().first() upload.update(fileetag='%s' % request.vars.etag) db.commit() i even threw in the commit and i have verified t

[web2py] Re: https for login

2012-05-16 Thread Anthony
> >request.requires_https() > Yet another secret feature. :-)

Re: [web2py] Re: Error facebook login

2012-05-16 Thread www.diazluis.com
greetings. I repeat this properly configured facebook I have no write permission on / etc / hosts I have write permission only for: / apache2 / htdocs / web2py not my domain provider allows me to create PTR type DNS not as you would with CNAME thanks for your time and help .. I'm still here wa

[web2py] How to use web2py DAL with sybase?

2012-05-16 Thread dlypka
I see this posting which has some sybase adapter code: https://groups.google.com/forum/?fromgroups#!searchin/web2py/sybase/web2py/LXdEdc1th3M/8ZIOxE8tJQgJ Is there anything else? I have a need to use web2y + sybase at work. Thanks.

[web2py] Re: https for login

2012-05-16 Thread Ross Peoples
By the way, in case you are wondering, I stopped using Apache once I tried Nginx. Configuration is much easier (in my humble opinion) and it's way faster. So I've been using Nginx for all of my stuff for over 6 months now and haven't looked back. However, I still try to write my applications to

  1   2   >