Re: [web2py] login form registration problem with encoding

2013-05-08 Thread Yebach
The problem occurs when after filling the register form user clicks register button. this is the basic problem of error (dp1 S'output' p2 S" 'ascii' codec can't decode byte 0xc5 in position 2: ordinal not in range(128)" p3 sS'layer' p4 S'/usr/local/web2py/applications/iurnik/controllers/user.py

Re: [web2py] Re: password encrypt during insert

2013-05-08 Thread vikas gupta
i had forgotten to add [0], didnt help though. still got the same error login_bare worked though i could pass login and password and it validated the user for me... Does login_bare do anything with respect to the session or does it just validate the fact that the user exists and pass

[web2py] Re: What would be the best way to optimize/resize images after upload

2013-05-08 Thread weheh
There are numerous ways to resize uploaded images. Some are done via the web server. Others are done within the app. For a couple of my apps I use the python PIL package to resize uploaded images to thumbnails and the like. Here's a code fragment that shows how to do it: def resize_image(table,

[web2py] Re: Manual Form Submission

2013-05-08 Thread Massimo Di Pierro
Second! On Wednesday, 8 May 2013 15:14:09 UTC-5, Doug Girard wrote: > > Anthony, you deserve some recognition, you are awesome!! > > On Wednesday, May 8, 2013 1:28:59 PM UTC-6, Anthony wrote: >> >> You didn't specify a form method, so I think it defaults to GET, which >> means the values will end

Re: [web2py] Regarding global variable

2013-05-08 Thread Vinicius Assef
To use in a session, simply assign as a session member: if not session.temp_list: session.temp_list = greylist Then, refer to session.temp_list everywhere you should do to temp_list. I think an example from the book will help you: http://web2py.com/books/default/chapter/29/03#Let's-count

Re: [web2py] Re: _after_delete callback - how to access info of deleted Set?

2013-05-08 Thread Jurgis Pralgauskis
Thanks, hm, ok, my usecase is more problematic, db.define_table('Product', Field('name',), Field('price', 'decimal(10,2)'), Field('quantity', 'integer'), Field('*quantity_sold*', 'integer'), # this could be virtual - but then it does not play with queries... ) I want to refresh

[web2py] Regarding global variable

2013-05-08 Thread Nam Soo In
Hi, I wonder how to use global variable Let me show my code def emps_greylist(): import urllib2 from lepl.apps.rfc3696 import HttpUrl from urlparse import urlparse diff_list=[] temp_list=[] top_level_url = "https://xxx/greylist.txt"; greylist = urllib2.url

[web2py] Re: _after_delete callback - how to access info of deleted Set?

2013-05-08 Thread Anthony
If the query only has that one condition, then you can do: s.query.second A Set object has a "query" attribute, which is a Query object, and a Query object has "op", "first", and "second" attributes. So, s.query gets the Query object of the Set, and s.query.second gets the second operand of the

Re: [web2py] Re: wget and basic authentication

2013-05-08 Thread Ian MacKinnon
Indeed you did: https://github.com/web2py/web2py/pull/63 (linked for other people hitting this issue) Thanks for this, I've put more time into finding a fix for this than I care to admit. Ian On Wednesday, 8 May 2013 06:32:30 UTC-7, Michele Comitini wrote: > > No one opened a ticket so I fixed

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-08 Thread Omi Chiba
Thank you for the additional explanation. I just want to highlight the home by defaut only first time user access the page. It should be removed when user click menu1 or menu2. The home will be highlighted again when user click home. By default. -- Home highlihgted Menu1

[web2py] _after_delete callback - how to access info of deleted Set?

2013-05-08 Thread Jurgis Pralgauskis
Hi, I look at example: http://www.web2py.com/book/default/chapter/06#before-and-after-callbacks how can I find out what is the value of person.id from the set without select? (,) as I tried: s.select(..)[0] # it worked for update but got Traceback (most recent call last): File "/home/nij

[web2py] What would be the best way to optimize/resize images after upload

2013-05-08 Thread Dragan Matic
Is there a way to automatically optimize and convert images after users upload it on my web app? I am pretty sure lots of users will upload uncompressed .bmp pictures or extra large pictures directly from camera. I think it would be best if I could resize and compress them immediately after upl

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-08 Thread Niphlod
ps: if you are on the case where you need to have home highlighted by default no matter what, use this javascript snippet (pretty straightforward) Added also a filter() to exclude the registration/login/etc links from being highlighted jQuery(function() { var path = location.pathname.substring

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-08 Thread Niphlod
uhm. nope. you have to remove the _class="highlighted" alltogether from the Home. Unless you need to highlight "Home" while you're in an hypotetical "menu3". Is that the case ? On Wednesday, May 8, 2013 11:07:52 PM UTC+2, Omi Chiba wrote: > > > > It's almost there!! Your code works perfect but

[web2py] Re: Manual Form Submission

2013-05-08 Thread Anthony
:-) On Wednesday, May 8, 2013 4:14:09 PM UTC-4, Doug Girard wrote: > > Anthony, you deserve some recognition, you are awesome!! > > On Wednesday, May 8, 2013 1:28:59 PM UTC-6, Anthony wrote: >> >> You didn't specify a form method, so I think it defaults to GET, which >> means the values will end

[web2py] Re: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2013-05-08 Thread Jurgis Pralgauskis
By the way, I found http://www.web2py.com/book/default/chapter/06#before-and-after-callbacks which can help in some cases, where I thought to use virtual fields as with callbacks you can update needed info from foreign tables (or computed fields might also be enough in some cases) 2012 m. gr

[web2py] Re: Markmin components

2013-05-08 Thread villas
Thanks On Wednesday, May 8, 2013 4:23:24 PM UTC+1, Massimo Di Pierro wrote: > > There is an "official" syntax for this. > > @{component:controller/function/args} > > To enable this and enable OEMBED I do: > > def markmin(body): > from gluon.contrib.autolinks import expand_one > def co

[web2py] Re: Manual Form Submission

2013-05-08 Thread Doug Girard
Anthony, you deserve some recognition, you are awesome!! On Wednesday, May 8, 2013 1:28:59 PM UTC-6, Anthony wrote: > > You didn't specify a form method, so I think it defaults to GET, which > means the values will end up in request.get_vars. If you fail to explicitly > specify the "request_vars

[web2py] Re: How to add class to the TABLE in SQLFORM.grid

2013-05-08 Thread Niphlod
with javascript is the easiest way. You can go on the http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing method but please do mind that the grid representation may change a bit in the future (it's not yet fixed in stone). Choose carefully your selectors. On Wednesday, May

[web2py] How to add class to the TABLE in SQLFORM.grid

2013-05-08 Thread Tito Garrido
Hi Folks, I could see that all style related variables of SQLFORM.grid applies to the outside div. How can I style the table element of the SQLFORM.grid? THanks! Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ -- --- You received this

Re: [web2py] Re: what does "please restart itx" mean?

2013-05-08 Thread Jim Kellas
Doh! I should have figured that outŠ From: Massimo Di Pierro Reply-To: Date: Wednesday, May 8, 2013 12:57 PM To: Subject: [web2py] Re: what does "please restart itx" mean? LOL. I think it is "please restart it" followed by the x to close the window. somehow there i no space between the m

[web2py] Re: what does "please restart itx" mean?

2013-05-08 Thread Massimo Di Pierro
LOL. I think it is "please restart it" followed by the x to close the window. somehow there i no space between the message and the x. On Wednesday, 8 May 2013 12:56:18 UTC-5, JimK wrote: > > After upgrading web2py to 2.4.6, the admin tool stated that web2py was > upgraded and to "please restart

[web2py] Re: Web Frameworks Performance

2013-05-08 Thread Massimo Di Pierro
Just some comments about 4. Web2py was not meat as a teacher tool. Web2py was meant to enforce good practice and this made it a good teaching tool. Not quite the same. In fact web2py is based on WSGI and it does run on Heroku. There is a session in the manual about that. I never tried Iron.io o

[web2py] Re: Manual Form Submission

2013-05-08 Thread Anthony
You didn't specify a form method, so I think it defaults to GET, which means the values will end up in request.get_vars. If you fail to explicitly specify the "request_vars" argument of SQLFORM.process(), it will automatically use request.post_vars, but not request.get_vars. So, you should eith

[web2py] Manual Form Submission

2013-05-08 Thread Doug Girard
I wanted to try and create my own view of a form and still have it submit the data to my table... I've got what seems to be a working form etc, but when i submit, it appears to do nothing... Model: # WORK ORDERS TABLE db.define_table('work_order', Field('work_date', 'datetime'), Field('

[web2py] Re: model not updated in scheduled task

2013-05-08 Thread Niphlod
no, tasks are not executed in a normal request/response cycle, so ther's no user, session, etc. You can pass the current user as an argument and adjust your models/modules to take that in consideration e.g. queue_task(that_task, [auth.user_id]) PS: check out the lazy_tables argument, it's usua

[web2py] Re: model not updated in scheduled task

2013-05-08 Thread DeanK
I just sort of figured it out. And yes i'm sorry i didn't give enough to go on. The key seemed to be in the method get_user_allowed_projects. It is in a module that is imported into the a model file. It uses current.auth.user_groups and some database tables to check project table permissio

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-08 Thread Niphlod
it's working as intended!!! Menu2 is what it becomes when you access the menu2 link. You just need to play with the css now... By default the "home" link is constructed with a SPAN('Home', _class='highlighted') that is inside the A link. if you don't want to play with the css you should build

[web2py] Re: model not updated in scheduled task

2013-05-08 Thread Niphlod
the task definitely runs in a fresh environment, but as it stands your explanation doesn't give me enough details to build a proof of concept. if you have some - even weird - code that basically looks up the "projects" table to build definitions of tables, then if that piece of code is executed

[web2py] Re: Why contenttype(".png") is not "image/png" ?

2013-05-08 Thread Niphlod
it's fixed in trunk. if you need it, just copy over the gluon/contenttype.py file, it won't harm your installation. On Wednesday, May 8, 2013 4:36:53 PM UTC+2, Txema Vicente wrote: > > Hello. > > When loading static png, Chrome throws a lot of warnings like: > > Resource interpreted as Image but

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Now it's perfectly working! A simple "if" in the main index :) and a redirect... the most simple solution, like always... Thank you so much for your time and for let me understand (a little more) this awesome tool On Wednesday, May 8, 2013 8:12:54 PM UTC+2, José Manuel López wrote: > > Yes!, tha

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Yes!, that's the problem!, both controllers needs login. Each controller has a index and each index needs to be logged, one for super users and the other for normal user. When a normal user logs out, then the superuser index is called and then this index needs to be logged, but when the normal

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread Anthony
Does the URL you are initially redirecting to after logout require login? If so, then when you attempt to go to that URL after having logged out, it will immediately redirect again to the login page. Anthony On Wednesday, May 8, 2013 1:42:19 PM UTC-4, José Manuel López wrote: > > For a moment I

[web2py] what does "please restart itx" mean?

2013-05-08 Thread JimK
After upgrading web2py to 2.4.6, the admin tool stated that web2py was upgraded and to "please restart itx". I restarted the webserver and everything seems to be working fine. Can someone please refer me to the magic decoder ring that can decipher this message? Jim -- --- You received thi

[web2py] Eclipse error but fine at runtime

2013-05-08 Thread Carl
In a module I have the following line: current.response.headers["Content-Type"] = "application/json" Eclipse underlines headers and flags an error "Undefined variable from import:headers" Is there an alternative expression to access .headers so that I can be error free? -- --- You received

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
For a moment I can see the "logout" that you mention, but then I'm redirect to login?_next=/urroomserver/hoteluser/index, I'll change the next to my URL. Thank you for your time Anthony!, it's very appreciated. On Wednesday, May 8, 2013 6:53:51 PM UTC+2, Anthony wrote: > > OK, my mistake -- the

Re: [web2py] rad2py

2013-05-08 Thread António Ramos
Also Boa constructor is forgotten in time 2013/5/8 Derek > Man, I love pythoncard. Too bad it hasn't been updated since 2006. > > > On Tuesday, May 7, 2013 1:02:03 AM UTC-7, Mariano Reingart wrote: > >> rad2py is in stand-by, I plan to finish it as my master thesis (maybe >> the next semest

Re: [web2py] rad2py

2013-05-08 Thread Derek
Man, I love pythoncard. Too bad it hasn't been updated since 2006. On Tuesday, May 7, 2013 1:02:03 AM UTC-7, Mariano Reingart wrote: > > rad2py is in stand-by, I plan to finish it as my master thesis (maybe > the next semester). > It should be usable (including the debugger), but not for beggine

[web2py] Re: The Great Web Framework Shootout

2013-05-08 Thread Derek
It would be nice if you could post your code to github, so we could make pull requests to fix the issues. On Sunday, April 21, 2013 1:05:44 PM UTC-7, OJ wrote: > > The application was copied from > https://github.com/seedifferently/the-great-web-framework-shootout/issues/14 > ... > Please poin

[web2py] Re: Web Frameworks Performance

2013-05-08 Thread Derek
Well, if you look at the benchmarks, several things stand out. 1. All the WSGI servers are pre-loaded. That means the code is already pre-compiled and loaded in ram, ready to run. Web2py doesn't quite work that way, because each request loads the database, does migrations if necessary, and inse

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread Anthony
OK, my mistake -- the _next variable points to auth.settings.logout_next -- so just change that setting to whatever URL you want. Also, are you sure the Logout URL is pointing to /default/user/login and not /default/user/logout? Anthony On Wednesday, May 8, 2013 12:40:57 PM UTC-4, José Manuel

[web2py] Why contenttype(".png") is not "image/png" ?

2013-05-08 Thread Txema Vicente
Hello. When loading static png, Chrome throws a lot of warnings like: Resource interpreted as Image but transferred with MIME type image/x-apple-ios-png: "http://127.0.0.1:8000/nabla/static/js/dojo/dijit/themes/claro/form/images/buttonArrows.png";. I don't want to modify gluon.contenttype, so I

[web2py] Re: Coping with new behavior of _referenced_by

2013-05-08 Thread pjcow
This isn't exactly the solution you're looking for, in that it may not work for 1.99 (I no longer have that version running), but I have the same problem. As far as I can tell (broken apps), this code created buttons at the bottom of a form to access child records. example: original coding for

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Now I think I know what you are asking me: auth = Auth(db) # all we need is login auth.settings.actions_disabled=['change_password','request_reset_password','retrieve_username','profile'] if request.controller != 'appadmin': auth.settings.actions_disabled +=['register'] ## configure auth pol

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread Anthony
If you don't know where it is, then I suppose you probably haven't changed it from the default scaffolding code -- but it would be in db.py by default. Can you create a basic application that replicates this problem, pack it, and attach it here? Anthony On Wednesday, May 8, 2013 12:30:49 PM UT

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Sorry my ignorance but am newbie ... where can I find it? On Wednesday, May 8, 2013 6:27:15 PM UTC+2, Anthony wrote: > > What does your Auth setup code look like? > > On Wednesday, May 8, 2013 12:01:48 PM UTC-4, José Manuel López wrote: >> >> Hi Anthony, >> This is the code regarding the Navbar i

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread Anthony
What does your Auth setup code look like? On Wednesday, May 8, 2013 12:01:48 PM UTC-4, José Manuel López wrote: > > Hi Anthony, > This is the code regarding the Navbar in myApp/views/layout.html : > > > > {{=response.flash or ''}} > > > > data-toggle="colla

[web2py] model not updated in scheduled task

2013-05-08 Thread DeanK
So one of my model files is somewhat unique (and possibly a bad idea) and causing me problems...I'll try to describe things the best I can. My application creates tables dynamically based on user input. To stop web2py from defining all the tables on every request (which can be a lot in the who

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Hi Anthony, This is the code regarding the Navbar in myApp/views/layout.html : {{=response.flash or ''}} http://www.web2py.com/";>web2py™  {{='auth' in globals() and auth.navbar(mode="dropdown") or

[web2py] Re: Web Frameworks Performance

2013-05-08 Thread Niphlod
Benchmarks! Time to get some popcorn and sit back... > +1. Don't expect web2py to be the fastest framework. It simply can't, and for a lot of (good) reasons. Nonetheless, it can be improved (as every program out there). > -- --- You received this message because you are subscribed to

[web2py] Re: Contribute in book translation - translations sync with original file?

2013-05-08 Thread Niphlod
and there is diffbook to help with that.http://niphlod.github.io/diffbook/ Il giorno mercoledì 8 maggio 2013 17:14:15 UTC+2, Massimo Di Pierro ha scritto: > > It is hard to keep them in sync but you can diff a specific revision/date > and see what has changed in the official edition. > > On Wedn

[web2py] Re: Nasty redirect in Ajax call. 'web2py-redirect-location' header breaks website.

2013-05-08 Thread Aris Green
Thanks a lot, that seem to work. I had to do that in several places. It looks like you have client_side = auth.settings.client_side in trunk. Is there any knowledge of when the next release is? -- --- You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread Anthony
Can you show the code used to create the navbar? Is it just auth.navbar(mode="dropdown")? The logout link on the navbar should point to /appname/default/user/logout?_next=[URL of the current page] -- it should not point to /default/user/login at all. Anthony On Wednesday, May 8, 2013 10:16:51

[web2py] Re: Markmin components

2013-05-08 Thread Massimo Di Pierro
There is an "official" syntax for this. @{component:controller/function/args} To enable this and enable OEMBED I do: def markmin(body): from gluon.contrib.autolinks import expand_one def component(text): items = text.split('/') controller, function, args = items[0],

[web2py] Re: Contribute in book translation - translations sync with original file?

2013-05-08 Thread Massimo Di Pierro
It is hard to keep them in sync but you can diff a specific revision/date and see what has changed in the official edition. On Wednesday, 8 May 2013 04:32:42 UTC-5, Loïc wrote: > > Hi All > > I would like to contribute in book translation. > I found an existing translation in github *web2py-book

Re: [web2py] Re: How can I run multiple applications with multiple domains on nginx?

2013-05-08 Thread Tito Garrido
Hi Peter! It helps a lot! I didn't know that we could have another routes.py inside the application folder, is it described anywhere in the book? Thanks! Tito On Sat, Mar 23, 2013 at 7:01 AM, peter wrote: > Sorry about replying late Tito. I struggled with your problem for quite a > while, and

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Hi Anthony, Thank you for your answer. I've attached a screenshot, I mean the button in the bar over the user interface: When click over "Fin de se

[web2py] Re: Markmin components

2013-05-08 Thread villas
For anyone interested in my monologue... Function to my previous ideas, a function as follows could handle both internal and external URLs. I also included a simple check for allowed domains: def __component(text): if text and text.lower().strip().startswith('http'): from urlparse

[web2py] Re: Simple Select Query Question

2013-05-08 Thread Anthony
> In my application, we are tracking the techs, but they do not have > permission to use the app, so they are not in the the auth table. If that's the case, then this line doesn't make any sense: rows=db(db.work_order.tech==auth.user.id).select() That selects the work orders whose "tech

[web2py] Re: IS IN DB

2013-05-08 Thread Domagoj Kovač
OK, i will try. Thanks! On Wednesday, May 8, 2013 4:02:47 PM UTC+2, Anthony wrote: > > OK, looks like you can't do a join. Instead, you can just use recursive > selects (though this will do a separate select for each item in the list): > > requires=IS_IN_DB(db, "report_attribute.id", lambda row:

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread Anthony
What do you mean by "close the session"? On Wednesday, May 8, 2013 9:58:13 AM UTC-4, José Manuel López wrote: > > Hi!, > I'm a lost with this problem, maybe anyone can help me. > Let's say I'm logged in this route: /AppName/*normalController*/*index*, > and then close the session. > Why when I c

[web2py] Re: IS IN DB

2013-05-08 Thread Anthony
OK, looks like you can't do a join. Instead, you can just use recursive selects (though this will do a separate select for each item in the list): requires=IS_IN_DB(db, "report_attribute.id", lambda row: row. entry_attribute_id.name, zero=T("-- Odaberite --")) row.entry_attribu

[web2py] Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Hi!, I'm a lost with this problem, maybe anyone can help me. Let's say I'm logged in this route: /AppName/*normalController*/*index*, and then close the session. Why when I close the session web2py redirects me to this URL? ->> AppName/* default/user/login*?_next=/AppName/*default/index* , I was

[web2py] Re: Simple Select Query Question

2013-05-08 Thread Doug Girard
Thank you, worked like a charm! In my application, we are tracking the techs, but they do not have permission to use the app, so they are not in the the auth table. I will keep all of your input in mind as I continue to work in web2py, this is great info especially for a beginner like me!! On

[web2py] Re: response.menu URLs

2013-05-08 Thread Monte Milanuk
Dang... I'd looked at that section of the manual, and I'd compared my code with the example from the text I'm working out of and I would have sworn that it was identical and correct. Heck, it took me a few passes to pick up what was missing even in your example. Guess that happens when you kee

Re: [web2py] Re: wget and basic authentication

2013-05-08 Thread Michele Comitini
No one opened a ticket so I fixed it a few months ago On a recent you can use auth.basic auth.basic(basic_auth_realm="") BONUS: *the realm string can be changed runtime to allow the user to be logged out i.e. the browser will ask authentication credentials again* 2013/5/8 Ian MacKinnon >

Re: [web2py] Re: Web Frameworks Performance

2013-05-08 Thread Alfonso de la Guarda
Hi I am not pessimistic but rather seek to define a goal that can get that many heads can develop a procedure / mechanism or technology to carry web2py to another level. The benchmarks are inevitable when it comes to designing a strategy to scale a solution Saludos,

[web2py] Re: Web Frameworks Performance

2013-05-08 Thread LightDot
Benchmarks! Time to get some popcorn and sit back... Btw, don't be so pessimistic, web2py isn't even included yet... :) Regards, Ales On Wednesday, May 8, 2013 2:31:19 PM UTC+2, Alfonso de la Guarda Reyes wrote: > > Hi, > > How we can improve web2py to match the fastest python web frameworks >

[web2py] Re: IS IN DB

2013-05-08 Thread Domagoj Kovač
This gives: 'Row' object has no attribute 'entry_attribute' On Wednesday, May 8, 2013 2:37:54 PM UTC+2, Anthony wrote: > > > requires=IS_IN_DB(db(db.report_attribute.entry_attribute_id == db. >> entry_attribute.id), "report_attribute.id", '%(entry_attribute.name)s',zero >> =T("-- Odaberite --"))

[web2py] Re: IS IN DB

2013-05-08 Thread Anthony
> requires=IS_IN_DB(db(db.report_attribute.entry_attribute_id == db. > entry_attribute.id), "report_attribute.id", '%(entry_attribute.name)s',zero > =T("-- Odaberite --")) > > How about: requires=IS_IN_DB(db(db.report_attribute.entry_attribute_id == db. entry_attribute.id), "report_attribute.id"

Re: [web2py] IS IN DB

2013-05-08 Thread Domagoj Kovač
db.define_table("entry_attribute", Field('name', 'string', required=True, requires=[IS_NOT_EMPTY(), IS_ALPHANUMERIC()], label=LABEL(T("Naziv"), _for="entry_attribute_type")),

Re: [web2py] IS IN DB

2013-05-08 Thread Vinicius Assef
Show us your db.define_table() to these tables. On Wed, May 8, 2013 at 8:47 AM, Domagoj Kovač wrote: > 'Table' object has no attribute > 'entry_attribute.name' > > > This is the error. > > On Wednesday, May 8, 2013 1:39:55 PM UTC+2, viniciusban wrote: >> >> Why doen't it work? >> >> What it sho

[web2py] Web Frameworks Performance

2013-05-08 Thread Alfonso de la Guarda
Hi, How we can improve web2py to match the fastest python web frameworks performance? http://www.techempower.com/benchmarks/#section=intro Surely, with many brains we can offer some method to improve that! Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes

[web2py] Re: IS IN DB

2013-05-08 Thread Domagoj Kovač
This also gives the same error. requires=IS_IN_DB(db(db.report_attribute.entry_attribute_id == db. entry_attribute.id).select(db.report_attribute.ALL, db.entry_attribute.ALL), "report_attribute.id", '%(entry_attribute.name)s', zero=T("-- Odaberite --" )), -- --- You received this message bec

Re: [web2py] IS IN DB

2013-05-08 Thread Domagoj Kovač
'Table' object has no attribute 'entry_attribute.name' This is the error. On Wednesday, May 8, 2013 1:39:55 PM UTC+2, viniciusban wrote: > > Why doen't it work? > > What it shows? What should be shown? What error does it report? > > -- > Vinicius Assef > > > > On Wed, May 8, 2013 at 5:20 AM

Re: [web2py] IS IN DB

2013-05-08 Thread Vinicius Assef
Why doen't it work? What it shows? What should be shown? What error does it report? -- Vinicius Assef On Wed, May 8, 2013 at 5:20 AM, Domagoj Kovač wrote: > Hi, > > i have three tables > entry_attribute > idint > name varchar > description longte

Re: [web2py] login form registration problem with encoding

2013-05-08 Thread Ricardo Pedroso
On Wed, May 8, 2013 at 7:24 AM, Yebach wrote: > Hello > > So I am using web2py server on Linux. I also have a postgreSQL server on > linux and when a user tries to login via login form and uses letters in name > and surname such as š ž č ć the following error appears 'ascii' codec can't > decode

[web2py] URL route when closed session

2013-05-08 Thread José Manuel López
Hi, Let's say I'm in this route: /AppName/*normalController*/*index*, logged and then I close the session. Why when I close the session web2py redirects me to this URL? AppName/*default/user/login*?_next=/AppName/*default/index*, I was expecting something like: AppName/*default/user/login*?_ne

Re: [web2py] In openshift: Need help on why my web2py website is being constantly accessed by openshift itself

2013-05-08 Thread Ricardo Pedroso
On Wed, May 8, 2013 at 11:10 AM, smogzer wrote: > Hi folks, > > So in openshift in a python 2.6 cartridge + haproxy i'm having lots of > accesses from openshift ip itself, like one every 3 seconds. I do not have > any cron jobs. Is there a way to figure where these access are coming from : > wsgi,

[web2py] Re: Scheduler - calling functions outside a model?

2013-05-08 Thread Niphlod
never never never never run a chdir in web2py environment ... ^_^ Il giorno mercoledì 8 maggio 2013 10:26:49 UTC+2, Simon Ashley ha scritto: > > > Thanks Simone, > > Turned out to be the following: > > path = os.path.join(request.folder, 'data\\') > - os.chdir(path) > - for files in os.l

[web2py] In openshift: Need help on why my web2py website is being constantly accessed by openshift itself

2013-05-08 Thread smogzer
Hi folks, So in openshift in a python 2.6 cartridge + haproxy i'm having lots of accesses from openshift ip itself, like one every 3 seconds. I do not have any cron jobs. Is there a way to figure where these access are coming from : wsgi, web2py, openshift ? -- --- You received this message be

[web2py] Contribute in book translation - translations sync with original file?

2013-05-08 Thread Loïc
Hi All I would like to contribute in book translation. I found an existing translation in github *web2py-book / sources / 38-web2py-french-translation-in-progress *but I have 2 questions : 1. To contribute, I fork the source repo, do my translation, commit, and then send a pull request,

[web2py] Re: Scheduler - calling functions outside a model?

2013-05-08 Thread Simon Ashley
Thanks Simone, Turned out to be the following: path = os.path.join(request.folder, 'data\\') - os.chdir(path) - for files in os.listdir('*.*'): + for files in os.listdir(path): -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubs

[web2py] IS IN DB

2013-05-08 Thread Domagoj Kovač
Hi, i have three tables entry_attribute idint name varchar description longtext field_typevarchar field_sizeint report_attribute idint report_id int entry_attribute_idint sorting