Re: [web2py] Re: odd belongs behaviour

2012-06-24 Thread Vincenzo Ampolo
On 06/23/2012 11:15 PM, Niphlod wrote: > http://web2py.com/books/default/chapter/29/6#belongs > > belongs take a set or a _select() - mind the _ in front of the select - > : you're using it in the wrong way :D > > db(db.movies.id.belongs( > db(db.ratings.id>0)._select(db.ratings.imovie) > )

[web2py] Web2py and pythonpath

2012-06-24 Thread Daniel Gonzalez
Hello, I have some modules which I need to include in my web2py application. They are scattered around the filesystem (I am still in the development phase and I have not properly packaged anything). The PYTHONPATH is properly configured to access all my modules: python can find my modules when

[web2py] Language in outgoing URLs

2012-06-24 Thread Ivan Nikiforov
I am creating a multilingual application and use this recipe to put language in URLs. routers = dict( BASE = dict(default_application='myapp'), myapp = dict(languages=['en', 'it', 'jp'], default_language='en'), ) It works fine for incoming URLs but the URL function does not add language t

[web2py] problem with unicode string in couchdb

2012-06-24 Thread Amir M. Mahmoudi
Hi, i'm trying to use couchDB in web2py, first of all i should say use dal in trunk version. but i have a problem for handling unicode characters. and also i noticed web2py add extra `'` to string after insert. look at my result: first of all i whant to know to handle the utf-8 strings and then h

[web2py] URl function and languages

2012-06-24 Thread Ivan Nikiforov
routers = dict( BASE = dict(default_application='myapp'), myapp = dict(languages=['en', 'it', 'jp'], default_language='en'), ) Enter code here... I am creating a multilingual application and use the above recipe to put language into URL. This works fine for incoming URLs but the URL functi

[web2py] Re: How to effectively use the select_datewidget instead of the popup datepicker calendar !! ???

2012-06-24 Thread Anthony
> > Thank you Anthony ... I renamed the calendar.js and indeed ... the popup > does not show up anymore ( good ! ) .. however ... the select_datewidget > does not work - what am I doing wrong ??? what am I missing ?? .. Any > suggestions ??? how do I make the select_datewidget be used by d

Re: [web2py] Language in outgoing URLs

2012-06-24 Thread Jonathan Lundell
On Jun 24, 2012, at 2:41 AM, Ivan Nikiforov wrote: > I am creating a multilingual application and use this recipe to put language > in URLs. > > routers = dict( > BASE = dict(default_application='myapp'), > myapp = dict(languages=['en', 'it', 'jp'], default_language='en'), > ) > > It works

[web2py] Re: Web2py and pythonpath

2012-06-24 Thread Anthony
> > def index(): > open('/tmp/xxx', 'w').write("PYTHONPATH=%s" % > (os.environ['PYTHONPATH'])) > redirect(URL('static','output/Portal.html')) > > (I have done this because I do not know how to use simple "print" > statements in web2py. I guess the rendering engine gives a special meaning

Re: [web2py] Re: How to remove 'default' from all URLs?

2012-06-24 Thread Jonathan Lundell
On Jun 23, 2012, at 10:33 PM, Alec Taylor wrote: > On Sun, Jun 24, 2012 at 3:19 PM, Annet wrote: >> >>> Thanks Annet, but that also didn't work for me. >> >> >> No offence but, in which folder is your routes.py file? I first put >> routes.py in init's root folder, however, I had to put it in we

[web2py] Re: Web2py and pythonpath

2012-06-24 Thread Niphlod
try also to print: import sys print sys.path --

[web2py] comparing two strings in two functions in other function in controller.

2012-06-24 Thread praveen krishna
Hi, I have two functions which generates two string lists ,I want to extract the list of strings by comparing the two lists,the basic code is there I just want to call the two functions in other where I compare the two lists .How can I do in a controller. --

[web2py] Re: comparing two strings in two functions in other function in controller.

2012-06-24 Thread Anthony
Where are the two functions defined? If they are in a model file, you can call them from any controller. Otherwise, you can put them in a module and import them. Anthony On Sunday, June 24, 2012 11:24:23 AM UTC-4, praveen krishna wrote: > > Hi, >I have two functions which generates two stri

Re: [web2py] Re: comparing two strings in two functions in other function in controller.

2012-06-24 Thread praveen krishna
The two functions are defined in controller, you mean I have to put the two functions in applications/yourapp/modules and import them in controller. On Sun, Jun 24, 2012 at 5:35 PM, Anthony wrote: > Where are the two functions defined? If they are in a model file, you can > call them from any co

Re: [web2py] Re: How to remove 'default' from all URLs?

2012-06-24 Thread Alec Taylor
To be as clear as possible, here is a gist containing all the files I changed (for a test-case) since creating this "simple new project": https://gist.github.com/61a6b9f8e71f706e4255 --

Re: [web2py] Re: comparing two strings in two functions in other function in controller.

2012-06-24 Thread Anthony
Are they in the same controller where you need to call them? Then just call them. Maybe it would help if you show some code -- it's not quite clear what you are trying to do. On Sunday, June 24, 2012 12:00:05 PM UTC-4, praveen krishna wrote: > > The two functions are defined in controller, you m

[web2py] Re: Web2py and pythonpath

2012-06-24 Thread Daniel Gonzalez
The modules are now found on the PYTHONPATH. I am not sure what the problem was. I have been uploading the changes to my test server. Maybe web2py needs some time to recognize new modules on the PYTHONPATH? --

[web2py] Tasks accumulate on the web2py "dispatch queue"

2012-06-24 Thread Daniel Gonzalez
(I am not sure what the term is for the web2py "dispatch queue") Every 10 seconds my webpage is performing a JSNORPC request. Inspecting the network with ngrep shows exactly that: one request every 10 seconds. This is the service being requested (in applications/portlet/controllers/default.py)

[web2py] Re: The state of web2py + bootstrap 2

2012-06-24 Thread cyan
Hi Anthony, I was looking at Carousel JS plugin. For example, I've seen a recent thread (https://groups.google.com/forum/?fromgroups#!searchin/web2py/carousel/web2py/LZqq06VAUZs/zyQIOgqZKnQJ) where people encounter conflicts between web2py.css and bootstrap.min.css, when using Carousel plugin

[web2py] Re: The state of web2py + bootstrap 2

2012-06-24 Thread Anthony
I see. Note, web2py.css is designed primarily to work with the "welcome" app. You don't have to use web2py.css or the "welcome" app at all, though. You can instead create the entire front end with pure Bootstrap, and that should work fine with web2py (if you're using the web2py grid, you might

Re: [web2py] Re: How to remove 'default' from all URLs?

2012-06-24 Thread Jonathan Lundell
On Jun 24, 2012, at 9:30 AM, Alec Taylor wrote: > > To be as clear as possible, here is a gist containing all the files I > changed (for a test-case) since creating this "simple new project": > > https://gist.github.com/61a6b9f8e71f706e4255 And the only use of URL that we care about is URL(f='pr

Re: [web2py] Tasks accumulate on the web2py "dispatch queue"

2012-06-24 Thread Jonathan Lundell
On Jun 24, 2012, at 10:47 AM, Daniel Gonzalez wrote: > (I am not sure what the term is for the web2py "dispatch queue") > > Every 10 seconds my webpage is performing a JSNORPC request. Inspecting the > network with ngrep shows exactly that: one request every 10 seconds. > > This is the service b

[web2py] Trunk trouble with routed subfolder

2012-06-24 Thread Larry Weinberg
I am working on a centos 5.5 server using apache and mod_wsgi. I have a subdomain set up which has web2py 1.99 installed at the root of the domain. This works great. I have been trying to set up a subfolder to host the trunk version of web2py independently so I can try it. I added to the apache

[web2py] Re: Trunk trouble with routed subfolder

2012-06-24 Thread Larry Weinberg
some more info: If I try to pack up a newly created app on the subfolder version, it fails with a ticket. Internal errorTicket issued: unknown If I click on the ticket link, it's linked to unknown in the main web2py install instead of th

Re: [web2py] How to remove 'default' from all URLs?

2012-06-24 Thread Jonathan Lundell
On Jun 24, 2012, at 9:30 AM, Alec Taylor wrote: > > To be as clear as possible, here is a gist containing all the files I > changed (for a test-case) since creating this "simple new project": > > https://gist.github.com/61a6b9f8e71f706e4255 I installed that app under 1.99.7 (I had to disable sig

[web2py] Re: Trunk trouble with routed subfolder

2012-06-24 Thread Larry Weinberg
Um, I may have solved my own problem. In the https (443) section of the apache conf file I had a mistake: I had AliasMatch ^/trunk([^/]+)/static/(.*) /opt/web-apps/w2p_trunk/web2py/applications/$1/static/$2 instead of AliasMatch ^/trunk/([^/]+)/static/(.*) /opt/web-apps/w2p_trunk/web2py/appli

Re: [web2py] How to remove 'default' from all URLs?

2012-06-24 Thread Jonathan Lundell
On Jun 24, 2012, at 1:38 PM, Jonathan Lundell wrote: > > On Jun 24, 2012, at 9:30 AM, Alec Taylor wrote: >> >> To be as clear as possible, here is a gist containing all the files I >> changed (for a test-case) since creating this "simple new project": >> >> https://gist.github.com/61a6b9f8e71f70

Re: [web2py] How to remove 'default' from all URLs?

2012-06-24 Thread Jonathan Lundell
On Jun 24, 2012, at 2:02 PM, Jonathan Lundell wrote: > > On Jun 24, 2012, at 1:38 PM, Jonathan Lundell wrote: >> >> On Jun 24, 2012, at 9:30 AM, Alec Taylor wrote: >>> >>> To be as clear as possible, here is a gist containing all the files I >>> changed (for a test-case) since creating this "sim

[web2py] Re: The state of web2py + bootstrap 2

2012-06-24 Thread cyan
> I see. Note, web2py.css is designed primarily to work with the "welcome" > app. You don't have to use web2py.css or the "welcome" app at all, though. > You can instead create the entire front end with pure Bootstrap, and that > should work fine with web2py (if you're using the web2py grid, y

Re: [web2py] Tasks accumulate on the web2py "dispatch queue"

2012-06-24 Thread Daniel Gonzalez
On Sunday, June 24, 2012 9:51:52 PM UTC+2, Jonathan Lundell wrote: > > > I love this kind of bug, one where you'd be hard-pressed to get the result > by deliberate programming, but the bug seems to manage it with no effort > whatsoever. > > Suggestion for narrowing the scope of the problem: add

[web2py] Plugin_wiki URLs

2012-06-24 Thread villas
Hi All, I'd like to rename plugin-wiki URLs. Instead of: app/plugin_wiki/page/my-page, I would prefer: app/prettyurl/my-page I can do this in routes.py routes-in: ('/$a/prettyurl/$something', '/$a/prettyurl/page/$something') and reverse in routes-out But then it doesn't work; the p

[web2py] Re: bootstrap carousel web2py Nightly build

2012-06-24 Thread Paolo Caruccio
LightDot, thank you. Il giorno sabato 23 giugno 2012 04:38:47 UTC+2, LightDot ha scritto: > > Hi Paolo, > > you're quite right about the amount of work needed to spot and properly > resolve such css collisions. There are quite a few left too... I'm working > on several projects using Bootstrap a

[web2py] Re: Jeditable and SQLTables

2012-06-24 Thread Simon Ashley
OK, a little bit more infor if anyone can help: Have a requirement for get jeditable working with a grid/ table (sqlform.grid or slqtable). Current issue is that using the jeditable.js, return parameters seems incorrect i.e. editable td value is the indicator parameter rather than what should

[web2py] Re: The state of web2py + bootstrap 2

2012-06-24 Thread Anthony
> > I see. Note, web2py.css is designed primarily to work with the "welcome" >> app. You don't have to use web2py.css or the "welcome" app at all, though. >> You can instead create the entire front end with pure Bootstrap, and that >> should work fine with web2py (if you're using the web2py gri

Re: [web2py] How to remove 'default' from all URLs?

2012-06-24 Thread Alec Taylor
Hmm, I'm not sure. I'm running the latest trunk from github: https://github.com/web2py/web2py - If that makes a difference. Yes, the /profile/ URL is the one giving me trouble. It could be something on the facebook side, though I'm not sure. On Mon, Jun 25, 2012 at 7:04 AM, Jonathan Lundell wro