[web2py] can grid export represented values rather than raw db values?

2013-10-30 Thread weheh
My grid has a bunch of its data created with .represent. I want to export this in CSV format. The export class dumps raw underlying data without the represent values shown by the grid. Is there a way to get export to put out the represented format used by grid? Or do I have to write a custom ex

[web2py] Web2py install script doesn't work on the latest ubuntu

2013-10-30 Thread Jason (spot) Brower
Sorry to say. Installed in on amazon and it acts like everything worked but doesn't. I think it has to do with the python versions in the installation. This was Ubuntu 13.10 as an amazon instance. BR, Jason Brower -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Thanks for reply. Well, this issue that I am observing is not specific to my system only, I tried it on two other systems in IE8 and all of them were having the same issue. Anyways, I was able to get the exact width in IE, if I added a width of 400px to TD element containing the SELECT. So,

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread Scott Hunter
I was passing the contents of a list:reference field On Wednesday, October 30, 2013 9:59:29 PM UTC-4, Massimo Di Pierro wrote: > > Belongs on GAE has always been supported. The cited code in version 2.7.4 > is > > def BELONGS(self,first,second=None): > if not isinstance(second,(list, tupl

[web2py] Re: IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

2013-10-30 Thread Massimo Di Pierro
This should be easy, please open a ticket. Thanks. On Wednesday, 30 October 2013 05:13:49 UTC-5, Baptiste.T wrote: > > Hello, > > As an information, I was performing some tries with IE11 and web2py > applications, and a "funny" fact was appearing while using * > gluon.contrib.user_agent_parser *t

[web2py] Re: SQLFORM with multiple buttons how to differentiate

2013-10-30 Thread Massimo Di Pierro
This should be considered a bug. I will open a ticket. On Wednesday, 30 October 2013 19:30:53 UTC-5, John Felps wrote: > > I have an sqlform that populates from a db and has several submit buttons > named test with different _values (and appear with different names on the > screen). In PHP, the

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread weheh
Yes, sir! -- 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.

[web2py] Re: Ticket ID __init__() got an unexpected keyword argument 'default'

2013-10-30 Thread Massimo Di Pierro
This is not the problem. The problem is that web2py calls json.dumps(..., default=) This API is supported by both json and by simplejson (which ships with web2py). The problem is that you have another version of simplejson installed. An older version that does not support this API. You shou

[web2py] Re: Testing redirection with py.test

2013-10-30 Thread Massimo Di Pierro
Can you please make a web2py slice about this? On Monday, 28 October 2013 18:13:22 UTC-5, viniciusban wrote: > > I created this gist to help people testing controllers that makes > redirection: > https://gist.github.com/viniciusban/7206413 > > Hope it helps someone. > -- Resources: - http://

[web2py] SQLFORM with multiple buttons how to differentiate

2013-10-30 Thread John Felps
I have an sqlform that populates from a db and has several submit buttons named test with different _values (and appear with different names on the screen). In PHP, the post['test'] would be equal to the button value, however, request.vars includes test, but it is always "Working..." on submiss

[web2py] IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

2013-10-30 Thread Baptiste GAZUI
Hello, As an information, I was performing some tries with IE11 and web2py applications, and a "funny" fact was appearing while using * gluon.contrib.user_agent_parser *to detect the browser. I'm used to use Chrome so here are the results of a *request.user_agent()* depending on the browser us

[web2py] Why is button value always set to "working..." in request.args

2013-10-30 Thread John Felps
I have an SQLFORM that populates from a database and that has buttons set to buttons = [TAG.button('1', _name='test'), TAG.button('2', _name='test'), TAG.button('3', _name='test'), TAG.button('4', _name='test')] and when I look at the form.va

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread Massimo Di Pierro
No but please open a ticket. There should be a way to do it, I have had the same problem. On Wednesday, 30 October 2013 20:27:26 UTC-5, weheh wrote: > > I think I located the source of the problem, but not its solution. The > web2py http://127.0.0.1:8000/admin/default/myapp page scans the static

Re: [web2py] embed image from variable

2013-10-30 Thread Massimo Di Pierro
Not sure I understand. You have every piece you need. def index(): form = SQLFORM.factory(Field('x')).process() return locals() and in index.html() {{=form}} {{if form.accepted:}} {{pass}} On Wednesday, 30 October 2013 14:55:50 UTC-5, Josh Myers wrote: > > I have all this working the s

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread Massimo Di Pierro
Belongs on GAE has always been supported. The cited code in version 2.7.4 is def BELONGS(self,first,second=None): if not isinstance(second,(list, tuple)): raise SyntaxError("Not supported") ... So perhaps you are passing something to belongs which is not a list or tup

[web2py] Re: web2py 'way' for windows NET USE?

2013-10-30 Thread Massimo Di Pierro
You can try this: http://code.activestate.com/lists/python-list/44825/ not web2py specific but win32 ships with web2py for windows On Wednesday, 30 October 2013 10:10:22 UTC-5, Willoughby wrote: > > I'm looking at executing 'NET USE' using the @contextmanager code found > here: > > http://stack

[web2py] Re: Best way to learn web2py

2013-10-30 Thread Dave S
On Monday, October 28, 2013 2:11:05 PM UTC-7, Andreas Wienes wrote: > > I published http://learn-web2py.com a few minutes ago. It's far away from > being perfect, but it's an first attempt. I'm neither an expert in web2py > nor a native speaker. So all your feedback is appreciated! > It's a nice

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread weheh
I think I located the source of the problem, but not its solution. The web2py http://127.0.0.1:8000/admin/default/myapp page scans the static folder. I keep a huge directory of uploads there, potentially terabytes of data stored using the scheme uploadfolder=os.path.join(request.folder, 'static

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread weheh
This is still an issue issue. Clicking the Edit button for myapp at the web2py admin interface (http://127.0.0.1:8000/admin/default/myapp) brings up the interface after a very long wait. This is reproducible. Smaller apps, like the web2py welcome and examples app, load quickly when I click the

[web2py] Re: Many to many

2013-10-30 Thread Anthony
> {{for company_image in company_images.select():}} > You've already done a select, so don't call .select() again. > {{for company_image in company_images:}} > {{=A(IMG(_src=URL('download', > args=company_image.image_file_s)), _href=URL('download', > arg

[web2py] Re: web2py resources

2013-10-30 Thread Dave S
On Tuesday, October 29, 2013 6:35:27 AM UTC-7, Andreas Wienes wrote: > > This could help for the very first orientation http://learn-web2py.com/. > I like it! You might want to take a look at to choose a tutorial for Hg. I believe the red-bean

[web2py] Re: Virtual hosting with web2py

2013-10-30 Thread Gour
On Wed, 30 Oct 2013 12:10:10 -0700 (PDT) Annet wrote: > www.mydomain.com to point to my init application > admin.mydomain.com to web2py's admin application > cms.mydomain.com to my cms application > static.mydomain.com to my dbModel application I was helped here when asked similar/same question

[web2py] Re: Invalid literal for long () with base 10: 'ie' - using BEAUTIFY

2013-10-30 Thread Niphlod
has the cat_id field been a "string" before being a reference in a sqlite database? If yes, you need to delete the column data and re-fill it. http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Gotchas On Wednesday, October 30, 2013 4:55:50 PM UTC+1, Gael Princivalle wr

[web2py] Re: W2p in aVPS: Rocket wsgi or behind lighttpd+fcgi

2013-10-30 Thread Niphlod
I wouldn't know. Assuming you're fine with rocket's performances, it should have a lower impact on ram usage. BTW, the default setup with nginx+uwsgi is not heavy at all. On Wednesday, October 30, 2013 8:52:46 PM UTC+1, Jesus Alvaro wrote: > > I've already found some answers in: > > http://www.we

Re: [web2py] Re: Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
I not given any precise advice here, just let know what exist... App design requires rely good analysis of the requirements and we don't really have it here. I think we were more in the how RBAC works, how to use it and how to applied it to your case... ... About your specific case that is diff

Re: [web2py] embed image from variable

2013-10-30 Thread Josh Myers
I have all this working the same way as Massimo suggested with matplotlib, no problems. But, I can't for the life of me figure out how to pass a variable into the controller plot function from the view. This would be so I can, for example, ask the user to choose a variable through a form and t

[web2py] Re: W2p in aVPS: Rocket wsgi or behind lighttpd+fcgi

2013-10-30 Thread Jesus Alvaro
I've already found some answers in: http://www.web2pyslices.com/slice/show/1384/low-memory-fooprint-using-lighttpd in which option B is recomended El miércoles, 30 de octubre de 2013 19:04:27 UTC+1, Jesus Alvaro escribió: > > Hello > > When deploying web2py in a VPS as the only service, what i

Re: [web2py] Re: Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Ari Lion BR Sp
Hi Richard, if this last comment is to me, are you telling me that I could manage 'multi-tenant like' with Group (auth-group, i guess) ? If so, how? I was not intending to develop nothing out the default in this level. regards, Em quarta-feira, 30 de outubro de 2013 16h42min33s UTC-2, Richard

[web2py] Virtual hosting with web2py

2013-10-30 Thread Annet
I read Martin Mulone's blog post on virtual hosting: http://blog.martinmulone.com.ar/post/997-setup-virtual-hosting-with-web2py-and-apache2-mod-wsgi-on-ubuntu-server-1110 I wonder what part of it is relevant in webfaction's shared hosting environment, their install script does some parts of the

Re: [web2py] Re: Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
It may apply or not, I don't know, it just option you have... You can also, manage everything with group or even create your own access management system... Richard On Wed, Oct 30, 2013 at 2:38 PM, Ari Lion BR Sp wrote: > Hi To all, > > I have a very similar matter here. > > I was thinking in

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=tenant#Common-fields-and-multi-tenancy On Wed, Oct 30, 2013 at 2:01 PM, Dave S wrote: > > > On Wednesday, October 30, 2013 6:48:51 AM UTC-7, Richard wrote: >> >> If you have two diffrents companie you may cons

[web2py] Re: Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Ari Lion BR Sp
Hi To all, I have a very similar matter here. I was thinking in merge the two concepts, and work with multi-tenant based on the company which have launched this record. Would it be a way to work? Because member of company A should not be able to see records launched from company B. Multi-ten

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread Scott Hunter
This doesn't sound very "backwards compatible" to me; I couldn't find any documentation that says belongs DOESN'T work in GAE, and it clearly used to (if imperfectly). So is the bug that it USED to work, or that it doesn't work now? On Wednesday, October 30, 2013 11:53:04 AM UTC-4, David Manns

[web2py] W2p in aVPS: Rocket wsgi or behind lighttpd+fcgi

2013-10-30 Thread Jesus Alvaro
Hello When deploying web2py in a VPS as the only service, what is a better minimal option in terms of efficiency/speed?: A- Use of Rocket (default) server as a daemon (with option -n threads ...) B- Lighttp+ fcgi (unix socket to a single w2p instance Let's consider an estimated peak load of 3

[web2py] Re: [web2py-dev] having trouble with data-xxx when they are not a simple option

2013-10-30 Thread Massimo DiPierro
yes. It is the same. You can send me a patch of a pull request. On Oct 30, 2013, at 12:37 PM, DenesL wrote: > > I meant the web2py online book or is this the same somehow?. > > > On Tuesday, October 29, 2013 8:03:36 PM UTC-4, Niphlod wrote: > free and available here github.com/mdipierro/

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Diogo Munaro
Hi Vinicius! The query with a lot of natural joins really don't work, but join with WHERE worked. I don't know what happend, but web2py become crazy when I set more natural joins 2013/10/30 Vinicius Assef > Maybe I missed something, but why the simple query (with few joins) > worked and the co

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Dave S
On Wednesday, October 30, 2013 6:48:51 AM UTC-7, Richard wrote: > > If you have two diffrents companie you may consider multi-tenant site. > What's your recommended readling list for this? /dps > > Richard > > > On Wed, Oct 30, 2013 at 9:47 AM, Richard Vézina > > > wrote: > >> It depends

[web2py] Internal Error - Ticket unknown - only over HTTPS?!

2013-10-30 Thread AbrahamLinksys
Hi all, I'm running a little older version of web2py in production (1.99.7). I have two apps configured to different subdomains -- app1.domain.edu -> app1 app2.domain.edu -> app2 This works fine. Great in fact -- I'm using routers to make the apps default based on the domain, so appnames aren'

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Vinicius Assef
Maybe I missed something, but why the simple query (with few joins) worked and the complex one (with many joins) didn't? On Wed, Oct 30, 2013 at 2:31 PM, Diogo Munaro wrote: > Hi Michele, I'm looking here the results... > > If I get where and natural join is different. > > The explain is like tha

[web2py] Re: having trouble with data-xxx when they are not a simple option

2013-10-30 Thread DenesL
I meant the web2py online book or is this the same somehow?. On Tuesday, October 29, 2013 8:03:36 PM UTC-4, Niphlod wrote: > > free and available here github.com/mdipierro/web2py-book > > On Tuesday, October 29, 2013 10:13:28 PM UTC+1, DenesL wrote: >> >> >> Is th

Re: [web2py] change web2py application directory

2013-10-30 Thread Loïc ESPERN
Good idea I will make a try when upgrading my web2py repo... Thank you Le 30 oct. 2013 16:01, "Richard Vézina" a écrit : > Loïc, just a thought... How will you manage the upgrade of web2py version? > If you have only a single repo, you will make symlink in new version of > web2py applications fo

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Paolo Caruccio
Unfortunately I can't repeat your issue. In my enviroment all works fine (see attached images).

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Diogo Munaro
Hi Michele, I'm looking here the results... If I get where and natural join is different. The explain is like that: http://stackoverflow.com/questions/15996226/natural-join-vs-where-in-clauses Here is massimo suggested code: mysql> explain SELECT groups.name, city.name, auth_user.id, auth_user

[web2py] Invalid literal for long () with base 10: 'ie' - using BEAUTIFY

2013-10-30 Thread Gael Princivalle
Hi. I've got a strange error. My db: db.define_table('models', Field('code', unique=True), Field('category'), Field('cat_id', 'reference categories'), Field('description_en'), Field('description_it'), Field('pdf_path')) db.define_table('imag

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread David Manns
'Belongs' was the problem. Older versions of web2py supported a limited implementation of belongs (up to 30 items in the set) on GAE datastore. Current version does not support 'belongs' on GAE datastore. I have worked around this and now have my application working again. Thanks Scott and Mass

[web2py] web2py 'way' for windows NET USE?

2013-10-30 Thread Willoughby
I'm looking at executing 'NET USE' using the @contextmanager code found here: http://stackoverflow.com/questions/2625877/copy-files-to-nework-path-or-drive-using-python But was wondering if there's a more 'web2py' like way to do it? Searched the forums, searched the docs and didn't see anything..

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Michele Comitini
implicit inner join vs explicit should be same in speed terms, but... http://stackoverflow.com/questions/5273942/mysql-inner-join-vs-where 2013/10/30 Diogo Munaro > I really need these joins to filter tables instead of join all and then > make a filter with WHERE (spend a long time). > > I o

Re: [web2py] change web2py application directory

2013-10-30 Thread Richard Vézina
Loïc, just a thought... How will you manage the upgrade of web2py version? If you have only a single repo, you will make symlink in new version of web2py applications folder, but then you may face issue with the new version that force you to stick with previous version... If you have commit change

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Sorry, I didn;t noticed that the pictures were not visible, I have uploaded them again. I have tried cleaning the cache of IE and reloaded the page, but I am getting the same results. Do I need to try something else? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Internet Explorer (8.0) Firefox -- Resources: - http://web2py.com - http://web2py.com/book (

Re: [web2py] change web2py application directory

2013-10-30 Thread Richard Vézina
Great! :) Richard On Wed, Oct 30, 2013 at 10:11 AM, Loïc wrote: > I have found the problem. Thank you Richard! > > For Windows users who want to move the applications subfolders out of > web2py directory, the correct syntax is : > mklink /J TheLinkName ThePath > > mklink /J created a director

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Paolo Caruccio
I followed your istructions but the width of the select control is the same in both the browsers IE8 and FF (300px according to line 32 of web2py.css in car_sales/static/css folder) Please try to change the value in the above mentioned css rule, clean the browsers cache, reload the page and see

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Diogo Munaro
I really need these joins to filter tables instead of join all and then make a filter with WHERE (spend a long time). I only need these 2 fields. My query works great with db.executesql but I'm not working with dal optimizations, like table record versioning, and need to do some where statment by

[web2py] Re: Many to many

2013-10-30 Thread Gael Princivalle
Hi Anthony. This is discussed here: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Many-to-many I've read it before posting. Result was the same as with the code you've post: 'Rows' object has no attribute 'select' Now I've update my db as you've suggest: db.d

Re: [web2py] change web2py application directory

2013-10-30 Thread Loïc
I have found the problem. Thank you Richard! For Windows users who want to move the applications subfolders out of web2py directory, the correct syntax is : mklink /J TheLinkName ThePath mklink /J created a directory junction Previously, I used mklink /D (which creates a symlink for a folder) b

[web2py] FPDF, from web-page to service.

2013-10-30 Thread hiro
I have created a few apps that help users to generate pdf-documents. I create some templates and let users enter some forms, the data is submitted, inserted and a PDF is returned. As this feature became popular I now have a generic function in a web2py model where I pass the function list with

Re: [web2py] Re: Using a javascript variable in python in views

2013-10-30 Thread Richard Vézina
View not enough, post the controller... Paste code here don't link file, it easier... Richard On Wed, Oct 30, 2013 at 8:57 AM, Anthony wrote: > Please show your code. > > > On Wednesday, October 30, 2013 7:41:50 AM UTC-4, saurabh kathpalia wrote: >> >> I did that but now I am facing another pr

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Massimo Di Pierro
What fields do you need to select. We can optimize this. On Wednesday, 30 October 2013 05:17:09 UTC-5, Diogo Munaro wrote: > > I'ts working, but it's results a WHERE JOIN and takes much more time than > JOIN sintax :( > > > 2013/10/29 Massimo Di Pierro > > >> Try this: >> >> rows = db(db.groups.i

Re: [web2py] change web2py application directory

2013-10-30 Thread Richard Vézina
http://en.wikipedia.org/wiki/Hard_link On Wed, Oct 30, 2013 at 9:52 AM, Richard Vézina wrote: > Hmmm... I pretty sure in linux a symlink would work, but in win it is > different... If I remember there is a difference in hardlink and softlink > that need to be consider... > > Richard > > > On We

Re: [web2py] change web2py application directory

2013-10-30 Thread Richard Vézina
Hmmm... I pretty sure in linux a symlink would work, but in win it is different... If I remember there is a difference in hardlink and softlink that need to be consider... Richard On Wed, Oct 30, 2013 at 4:06 AM, Loïc wrote: > Some weeks ago, I tried to create a symlink inside /applications fo

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
If you have two diffrents companie you may consider multi-tenant site. Richard On Wed, Oct 30, 2013 at 9:47 AM, Richard Vézina wrote: > It depends of what you do with the groups... You have to write your own > logic around them... For instance you have driver group, so in your code > you let d

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
It depends of what you do with the groups... You have to write your own logic around them... For instance you have driver group, so in your code you let driver group access only page/controller fucntion and form they are allow and in those controller you control the flow of what they can do the way

Re: [web2py] Re: Auth User Table Modifications

2013-10-30 Thread Richard Vézina
In this case use Oauth or CAS?? Richard On Tue, Oct 29, 2013 at 6:04 PM, wrote: > It seems there are enough times where people either put in fake e-mails or > rather not put in e-mails. I personally believe this should be optional in > most cases. Sometimes the account isn't important enough t

[web2py] Re: Using a javascript variable in python in views

2013-10-30 Thread Anthony
Please show your code. On Wednesday, October 30, 2013 7:41:50 AM UTC-4, saurabh kathpalia wrote: > > I did that but now I am facing another problem i.e. I has successfully > returned the value to the div tag but I want to store that returned value > in a python variable. > How to do that?? > > >

[web2py] Re: Many to many

2013-10-30 Thread Anthony
Also, you might consider shortening the name of db.int_table_galleries_images to just db.galleries_images? You already know it's a table, so no need for "table" in the name, and "galleries_images" already implies it's a many-to-many intermediate table. Anthony On Wednesday, October 30, 2013 8:

[web2py] Re: Many to many

2013-10-30 Thread Anthony
This is discussed here: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Many-to-many db((db.images.id == db.int_table_galleries_images.image) & (db.galleries.id == db.int_table_galleries_images.gallery) & (db.galleries.id == 1)).select() Anthony On Wednesday,

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-30 Thread Andreas Wienes
I finally found a solution. It's like Jonathan Lundell explained in this thread https://groups.google.com/forum/#!topic/web2py/LUCVm9pKX28: The normal call, form=auth(), is dynamic (see Auth.__call__), and returns > the form that's appropriate to the request URL. Auth.register() does a > redire

[web2py] Re: Bing appliance

2013-10-30 Thread dirman
I installed the bingsearch app from https://github.com/mdipierro/web2py-appliances/tree/master/BingApi. I then changed the APPID to my account key but i get the error " Parameter has invalid value." Please what is wrong? On Thursday, February 16, 2012 5:02:16 AM UTC, Massimo Di Pierro wrote: >

[web2py] Re: Many to many

2013-10-30 Thread Gael Princivalle
Thanks Andreas. Sorry I've made a mistake. "Now in the company page, I want to show only images from the "1" gallery." With "images = db(db.int_table_galleries_images.gallery.id==1).select()" I'm still having all images, also from gallery.id==2. I've also tried with "images = db(db.int_table_g

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-30 Thread Andreas Wienes
Still in trouble with this issue. :-( -- 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 G

[web2py] Re: Using a javascript variable in python in views

2013-10-30 Thread saurabh kathpalia
On Wednesday, October 30, 2013 5:11:50 PM UTC+5:30, saurabh kathpalia wrote: > > I did that but now I am facing another problem i.e. It has successfully > returned the value to the div tag but I want to store that returned value > in a python variable. > How to do that?? > > > On Tuesday, Octob

[web2py] Re: Many to many

2013-10-30 Thread Andreas Wienes
I'm not sure if I understand you right. What do you mean with "category"? Maybe you could try this to get all images with a specific gallery-id: images = db(db.int_table_galleries_images.gallery.id==1).select() return dict(images=images) - Andreas Am Mittwoch, 30. Oktober 2013 11:51:19 UTC+1 s

[web2py] Re: Using a javascript variable in python in views

2013-10-30 Thread saurabh kathpalia
I did that but now I am facing another problem i.e. I has successfully returned the value to the div tag but I want to store that returned value in a python variable. How to do that?? On Tuesday, October 29, 2013 11:53:26 PM UTC+5:30, saurabh kathpalia wrote: > > I have a javascript variable wh

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread David Manns
Scott is probably right - I will do some experiments to check. Earlier versions of web2py supported 'belongs' on GAE so long as the set contained 30 or fewer members (by experiment, not documented). I can see how this limited support may have been dropped in a DAL rewrite! On Tuesday, October 2

[web2py] SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Hi, You can use the car appliance available in web2py appliances (github) to show this issue (https://github.com/mdipierro/web2py-appliances/tree/master/CarSales). *In Controller, add a function as :-* def testform(): form = SQLFORM.factory( Field('TestField', requires=IS_IN_SET(['Test

[web2py] Many to many

2013-10-30 Thread Gael Princivalle
Hi. I'm still making a website where I'm gone have to manage a lot of little image galleries. An image could be shown inside more galleries, galleries have many images, so my relation is "many to many". Here is my db: db.define_table('images', Field('title_en'), Field('titl

Re: [web2py] Re: Join might work? Table limits?

2013-10-30 Thread Diogo Munaro
I'ts working, but it's results a WHERE JOIN and takes much more time than JOIN sintax :( 2013/10/29 Massimo Di Pierro > Try this: > > rows = db(db.groups.id == db.lab.group_id)(db.lab.id == > db.researcher_lab_permission.l**ab_id)(db.researcher.id == > db.researcher_lab_permission.r**esearcher_

Re: [web2py] change web2py application directory

2013-10-30 Thread Loïc
Some weeks ago, I tried to create a symlink inside /applications folder, but I got an error in modules. I was using mklink command on Win7, and my app works fine when located inside /applications folder without symlink... Below is the ticket I got. Maybe you have an idea? Ticket ID 127.0.0.1.2