Re: [web2py] Re: Adding icons to navbar (response.menu)?

2012-08-01 Thread apps in tables
Hi, I have two questions ( I think they are related to the topic ): 1- How can the application define the background ( image ) of a text field? the user should only be able to write text . 2- How to do the copy/paste including the background? normal copy/paste will not include the background

[web2py] Re: Welcome App - Blue navbar options are back in IE7

2012-08-01 Thread Andrew
Paolo and/or Alec Taylor fixed it last time. I'm not that good at css so I'd prefer someone else had a go. I can certainly test it! On Thursday, August 2, 2012 3:14:46 PM UTC+12, Massimo Di Pierro wrote: > > Can you help us fix it? I do not have IE7. > > On Wednesday, 1 August 2012 18:29:22 UTC

[web2py] Re: grid search behaviour with foreign keys

2012-08-01 Thread Massimo Di Pierro
Would be nice to have a patch for this, although the issue is performance. On Wednesday, 1 August 2012 22:55:49 UTC-5, Cliff Kachinske wrote: > > This situation caused me to create an alternative to grid, which I will be > publishing soon. > > Having thought through the problem, I may look at sub

[web2py] Re: response menu styling

2012-08-01 Thread Annet
> I cant get a space between the menu items. > What do you mean? .navbar .nav > li > a {padding: 10px 12px;} > I cant get this arrow removed which indicates that there is a dropdown > menu. > .caret {display: None;} Kind regards, Annet --

Re: [web2py] Re: Generating web2py views for use in PhoneGap?

2012-08-01 Thread Alec Taylor
Bruno: I've been playing around with Tiggzi, but haven't been able to get it to work. Would you have a sample project I could take a look at? Thanks On Wed, Aug 1, 2012 at 12:25 PM, Bruno Rocha wrote: > In my point of view mobile projects with PhoneGap have to be RESTful, you > need to create

Re: [web2py] Re: unable to parse csv file (1062, u"Duplicate entry 'n...@domain.com' for key 'email'")

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 9:24 PM, Cliff Kachinske wrote: > Is email really a key? > > What happens if you delete line 36? > > If it still fails, what happens if you delete lines 1 thru 36? Yes, it's a key, marked unique. The problem was a bug in the way the csv importer was trying to synchronize id f

[web2py] Re: unable to parse csv file (1062, u"Duplicate entry 'n...@domain.com' for key 'email'")

2012-08-01 Thread Cliff Kachinske
Jonathan, Is email really a key? What happens if you delete line 36? If it still fails, what happens if you delete lines 1 thru 36? On Monday, July 30, 2012 8:52:18 PM UTC-4, Jonathan Lundell wrote: > > I'm running into an odd csv-import problem. > > I've exported a table via SQLFORM.grid's ex

Re: [web2py] Re: Chrome:LOAD and ajax problem

2012-08-01 Thread tomasz bandura
Hello, It does not load at all.. During some test i found the case when it works: I create a new application ( version.: 1.99.7) and then create the same action 'show' , 'show.view' for two controllers: default.py and advert.py and when i put: {{=LOAD('advert','show.load',ajax=True)}} | {{=LOAD

[web2py] Re: grid search behaviour with foreign keys

2012-08-01 Thread Cliff Kachinske
This situation caused me to create an alternative to grid, which I will be publishing soon. Having thought through the problem, I may look at submitting a patch to incorporate my approach. On Wednesday, August 1, 2012 4:14:48 PM UTC-4, Mike wrote: > > I'm also trying to get around this issue -

Re: [web2py] uWSGI and routes.py

2012-08-01 Thread Massimo Di Pierro
Any news about this issue? Did you turn on logging? On Sunday, 22 July 2012 09:04:51 UTC-5, Alec Taylor wrote: > > When I start the uwsgi server and have the routes.py in place, I get > the problems. > > However, when I start the uwsgi server, then add in the routes.py, > then go to admin and c

[web2py] Re: Welcome App - Blue navbar options are back in IE7

2012-08-01 Thread Massimo Di Pierro
Can you help us fix it? I do not have IE7. On Wednesday, 1 August 2012 18:29:22 UTC-5, Andrew wrote: > > P.S. It broke at "welcome css pathc, issue 896, thanks Angelo" > > While talking about IE7, the text editor has been broken for quite a while > - a script is on one long line. > It first cha

[web2py] Re: ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread Massimo Di Pierro
I think you want: if request.env.http_origin: response.headers['Access-Control-Allow-Origin'] = request.env.http_origin response.headers['Access-Control-Allow-Credentials'] = 'true' response.headers['Access-Control-Max-Age'] = 86400 if request.env.request_method == 'OPTIONS': if r

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread lyn2py
That worked! Thanks Anthony! bfdy4 On Thursday, August 2, 2012 4:20:39 AM UTC+8, Anthony wrote: > > You have to remove the entire "requires" attribute. Try defining the > health table after the types and tabs tables: > > db.define_table('types', > Field('name','string',length=255,requires=IS_

[web2py] Re: Welcome App - Blue navbar options are back in IE7

2012-08-01 Thread Andrew
P.S. It broke at "welcome css pathc, issue 896, thanks Angelo" While talking about IE7, the text editor has been broken for quite a while - a script is on one long line. It first changed in "added ace editor support to admin app" (didn't work actually), and then turned into a single line in "

[web2py] Re: ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread simon
I am making the call using jquery. You are correct that the X-Requested header is not included automatically and without it the request shows in chrome as a GET with response 303 redirect. If I explicitly add the X-Requested header then it shows as an "OPTIONS" request and instead of the heade

[web2py] Welcome App - Blue navbar options are back in IE7

2012-08-01 Thread Andrew
Just to let you know, In IE7 the navbar options have changed to blue, which we had a few weeks ago. The Header margin is still not working correctly. This was mentioned in an earlier post. --

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 01:19 PM, Niphlod wrote: > The consideration behind that is that if your function doesn't return > anything, you don't need the results. Backward compatibility is quite > broken in that sense (but scheduler is still marked as experimental). > If the function returns something, the sch

[web2py] Re: ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread Anthony
Yes, you can make Ajax calls to web2py and get a response back -- and that is independent of whether request.ajax is True. Here's the code used to set request.ajax: x_req_with = str(request.env.http_x_requested_with).lower() request.ajax = x_req_with == 'xmlhttpre

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Cliff Kachinske
I auditioned a lot of web frameworks in various languages. Web2py was the only one that allowed me to be instantly productive when it came to porting my PHP apps. On Wednesday, August 1, 2012 11:46:48 AM UTC-4, Alec Taylor wrote: > > Tonight I'm going to present my little social-network to a us

Re: [web2py] ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread Richard Vézina
Are you using web2py ajax or jQuery.ajax, I don't see why it shouldn't works with the later, but with the former I think it's not possible since it is a web2py subset of jQueyr ajax functions intent to work in a certain context within web2py. http://web2py.com/books/default/chapter/29/11 Richard

[web2py] ajax call from a page on a non-web2py server is not seen as ajax?

2012-08-01 Thread simon
I have a page served by a php application where a button makes an ajax call to a web2py controller. However when it arrives the request.ajax field is false and it then tries to redirect to the login page. Is it possible to make an ajax call to a web2py server from a non-web2py page and send the

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread Anthony
You have to remove the entire "requires" attribute. Try defining the health table after the types and tabs tables: db.define_table('types', Field('name','string',length=255,requires=IS_NOT_EMPTY()), Field('description','text',requires=IS_NOT_EMPTY()), format='%(name)s (%(description)s

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Niphlod
The consideration behind that is that if your function doesn't return anything, you don't need the results. Backward compatibility is quite broken in that sense (but scheduler is still marked as experimental). If the function returns something, the scheduler_run record is preserved (unless the d

[web2py] Re: grid search behaviour with foreign keys

2012-08-01 Thread Mike
I'm also trying to get around this issue - anyone have any recommendations? On Monday, July 2, 2012 12:08:46 PM UTC-4, simon wrote: > > When you have a grid with a reference field then the search functionality > does not work as expected. > > For example grid shows: > >Owner Dog >

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 12:49 PM, Niphlod wrote: > Happy to see someone noticing actual improvements :P > If you need any further explanations / tips&tricks, just ask. > > PS: another italian added to web2py-users ;) Thanks :) just some considerations though. I noticed that now in scheduler_run all the C

[web2py] response menu styling

2012-08-01 Thread BlueShadow
I like to use the response menu. But I got major problems getting it styled right. I cant get a space between the menu items. I cant get this arrow removed which indicates that there is a drobdown menu. --

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Niphlod
Happy to see someone noticing actual improvements :P If you need any further explanations / tips&tricks, just ask. PS: another italian added to web2py-users ;) --

[web2py] Re: JSONRPC, XMLRPC or REST?

2012-08-01 Thread pbreit
I believe most JavaScript frameworks expect REST/JSON. --

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Rob_McC
Massimo . Once again, *many* thanks. *It worked 100%* ~ Rob . I have summarized what you taught me here: What file does: ** * http://somesocialwebsite/~jsmith * will redirect to: *http://somesocialwebsite/default/user/profile* FileName: *routes.py* *File Loc

Re: [web2py] Re: possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 11:52 AM, Niphlod wrote: > you're using the "old" scheduler. the new one operates on a totally > different logic and it was coded with scalability in mind. > you can find the relevant code in trunk, the gluon/scheduler.py file is > what are you looking for. Updated to trunk and work

[web2py] Re: possible scheduler bug

2012-08-01 Thread Niphlod
you're using the "old" scheduler. the new one operates on a totally different logic and it was coded with scalability in mind. you can find the relevant code in trunk, the gluon/scheduler.py file is what are you looking for. PS: there is an app to show off the new scheduler behaviour (and shortc

Re: [web2py] passing javascript variables to python code in web2py view

2012-08-01 Thread Niphlod
I usually do the following: controller.py def function(): jhelper = dict(myvar='1', myothervar='2') return dict(whatever=whatever, jhelper=XML(json(jhelper))) in view controller/myfunction.html . So

Re: [web2py] passing javascript variables to python code in web2py view

2012-08-01 Thread Vincenzo Ampolo
On 08/01/2012 11:31 AM, Vincenzo Ampolo wrote: > > $.getScript({{=URL('gen_javascript')}}/my_js_variable1/my_js_variable2) sorry. It shoudl be $.getScript("{{=URL('gen_javascript')}}"+"/"+my_js_variable1+"/"my_js_variable2) not tested though. so other problem may appear. but I hope I've given

Re: [web2py] passing javascript variables to python code in web2py view

2012-08-01 Thread Vincenzo Ampolo
On 07/30/2012 10:55 AM, Curiouslearn wrote: > The above does not work. Is there a way that above can be made to > work? If so, can above work for cases in which the javascript variable > is an array or a json object. Make an ajax call using $.getScript() encoding the variables you want in the requ

[web2py] possible scheduler bug

2012-08-01 Thread Vincenzo Ampolo
Hi, I'm writing an application that uses the scheduler heavily. I create new task using this simple function (there is a commit() because it's in an external script): def schedule_movie(*args, **kwargs): db_scheduler.scheduler_task.insert( status='QUEUED', application_name='mi

Re: [web2py] Re: passing javascript variables to python code in web2py view

2012-08-01 Thread howesc
in these cases i do all the python on the server side and format the resulting JSON in a way that i can handle easily in javascript. we don't yet have web browsers that run python. :( On Monday, July 30, 2012 1:58:22 PM UTC-7, curiouslearn wrote: > > Anthony, thanks for your response. Please se

[web2py] Re: JSONRPC authentication without disabling normal authentication?

2012-08-01 Thread howesc
for Starmaker's API we are now using the @restful decorator chained with a decorator we wrote that checks OAuth. all requests made by the client are OAuth signed requests. i'm sure you can use a similar method to use basic auth for the API calls, while leaving the regular auth decorators for t

[web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread AbrahamLinksys
Wow, I certainly did something silly at some point -- in my source (gluon/html.py), url_encode is set to false: I checked out a new version, and the build times match 100%, so it HAS to be my silliness (Version 1.99.7 (2012-03-04 22:12:08) stable). Apologies for the wild goose chase -- I seem

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Thanks Jonathan, I will try this later today. Regards, Daniel On Wednesday, August 1, 2012 6:44:24 PM UTC+2, Jonathan Lundell wrote: > > On 1 Aug 2012, at 9:30 AM, Daniel Gonzalez wrote: > > On Wednesday, August 1, 2012 5:56:37 PM UTC+2, Jonathan Lundell wrote: > > On 1 Aug 2012, at 8:52 AM,

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-01 Thread Alan Etkin
> > > I have got through 5 issues on your instructions so far: > > > 'force-reload' not recognised so removed from uwsgi > > Didn't test that command, it came with the example uwsgi startup script, but I think there's no need of it 'tar's had '-zxvf' as options, changed to 'zxvf' > tar man page

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 10:11 AM, AbrahamLinksys wrote: > Hmm, I tried again with a simpler example in an app built from the welcome > app. > > I got the same error, but I noticed this: > > (a=None, c=None, f=None, r= 0..._vars': , 'post_vars': }>, args=[], vars={'a': > 2}, anchor='', extension=None

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Massimo Di Pierro
I really have nothing to add but some history. I was a Django programmer (although never a Django contributor) and I have developed web sites for the United Nations in Django. I have taught Django here at DePaul University. I started web2py as a teaching because I found the learning curve with

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread lyn2py
I'm trying to understand... Do you mean that if I leave out the validator, i.e. make it requires=IS_IN_DB(db,'sometable.id') or do you mean to remove the whole "requires" attribute? Yes, they are exactly the same (the format attributes in table and in the reference), and I don't wish to repeat

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread AbrahamLinksys
Hmm, I tried again with a simpler example in an app built from the welcome app. I got the same error, but I noticed this: (a=None, c=None, f=None, r=, 'post_vars': }>, args=[], vars={'a': 2}, anchor='', extension=None, env=, hmac_key=None, hash_vars=True, salt=None, user_signature=None, scheme

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 10:02 AM, Massimo Di Pierro wrote: > yes but by converting the object to string we can see what it is in the > generated url. I cannot reproduce the problem. My point, though, is that if it's not *already* a string (and url-encoded to boot), it's an error, and if it happens t

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Massimo Di Pierro
Try Field('City', 'list:reference City', label='Miestas'), On Wednesday, 1 August 2012 11:05:02 UTC-5, Aurelijus Useckas wrote: > > tried it, still the same error :( thnx anyway > > On Wednesday, August 1, 2012 6:31:52 PM UTC+3, Massimo Di Pierro wrote: >> >> Yes. this is wrong: >> >> Field('City

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Massimo Di Pierro
yes but by converting the object to string we can see what it is in the generated url. I cannot reproduce the problem. On Wednesday, 1 August 2012 10:54:10 UTC-5, Jonathan Lundell wrote: > > On 1 Aug 2012, at 8:42 AM, Massimo Di Pierro > wrote: > > in trunk. please check it. > > > Per my earlie

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Massimo Di Pierro
I believe Marin is already working on improving the appliances site. On Wednesday, 1 August 2012 10:52:28 UTC-5, Anthony wrote: > > On Wednesday, August 1, 2012 11:37:03 AM UTC-4, Massimo Di Pierro wrote: >> >> We could make that distinction (additional flag) and have two tabs. >> > > We could, th

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Anthony
If it's a Django-friendly crowd, it might also be helpful to be prepared to handle the inevitable criticisms that will come. The big issues that tend to arise are (a) global objects/lack of imports/lack of explicitness/too much magic, (b) use of exec, and (c) pure Python in views. The links belo

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Luther Goh Lu Feng
Backward compatibilty is a strong plus for me especially for very old sites that you leave idle for a long time and then want to upgrade to the latest web2py version On Thursday, August 2, 2012 12:22:57 AM UTC+8, Anthony wrote: > > http://www.quora.com/What-are-the-advantages-of-web2py-over-

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 9:30 AM, Daniel Gonzalez wrote: > On Wednesday, August 1, 2012 5:56:37 PM UTC+2, Jonathan Lundell wrote: > On 1 Aug 2012, at 8:52 AM, Daniel Gonzalez wrote: >> Quoting from the link you posted: >> >> "The purpose of such Python virtual environments is to allow one to create >>

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Thanks Jonathan, On Wednesday, August 1, 2012 5:56:37 PM UTC+2, Jonathan Lundell wrote: > > On 1 Aug 2012, at 8:52 AM, Daniel Gonzalez wrote: > > Quoting from the link you posted: > > "The purpose of such Python virtual environments is to allow one to create > multiple distinct Python environmen

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-01 Thread Anthony
http://www.quora.com/What-are-the-advantages-of-web2py-over-Django On Wednesday, August 1, 2012 11:46:48 AM UTC-4, Alec Taylor wrote: > > Tonight I'm going to present my little social-network to a user-group. > > I'm going to show them my code, some slides, the website, the mobile apps > and tell

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread Anthony
> > Do you mean like: > > requires=IS_IN_DB(db,'sometable.id','%(name)s (%(description)s)') > > If so, yes I have them there. The purpose is to create the drop down > menu... unless I'm doing it wrong? Or is there another way about it so that > the references will appear per the manual? > Yes,

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Michele Comitini
http://www.web2py.com/examples/static/web2py_vs_others.pdf 2012/8/1 Michele Comitini > Less boilerplate code. > Sane defaults. > > mic > > > 2012/8/1 vinicius...@gmail.com > > We2bpy strengths over Django: >> >> 1) Automatic migrations. It enforces baby steps design just >> out-of-the-box. Sou

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Bruno Rocha
web2py has a more flexible template engine, you can use Python there and does not need to create a tons of template filters to get simple things done. Also in Django the template language sucks a lot because of the limitations. Let me give an example: To build a map using google maps API you have

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Michele Comitini
Less boilerplate code. Sane defaults. mic 2012/8/1 vinicius...@gmail.com > We2bpy strengths over Django: > > 1) Automatic migrations. It enforces baby steps design just > out-of-the-box. South migrations is a powerful tool, but Django doesn't > have it natively yet. > 2) Web2py shows a generic

Re: [web2py] Re: existing tables in plugin_wiki

2012-08-01 Thread Larry G. Wapnitsky
what about search? i specify one field to show, and it shows me all search fields? On 8/1/2012 11:38 AM, Larry G. Wapnitsky wrote: got it. thanks. On 8/1/2012 11:38 AM, Massimo Di Pierro wrote: This is a bug in plugin_wiki but the bug is triggered by record_id: id id should be a number.

[web2py] Can I ignore ssl with apache for windows?

2012-08-01 Thread joe
Hello This is my first time doing this, and* *I am not at all sure about what I am doing. I am using a dedicated windows server, the my application is going to be running on my company's secure intranet. When I have to work with the database's code, I'll be doing so by remotely connecting to

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
tried it, still the same error :( thnx anyway On Wednesday, August 1, 2012 6:31:52 PM UTC+3, Massimo Di Pierro wrote: > > Yes. this is wrong: > > Field('City', db.city, 'list:reference city', label='Miestas'), > > should be > > Field('City', 'list:reference city', label='Miestas'), > > On Wednesda

Re: [web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread vinicius...@gmail.com
We2bpy strengths over Django: 1) Automatic migrations. It enforces baby steps design just out-of-the-box. South migrations is a powerful tool, but Django doesn't have it natively yet. 2) Web2py shows a generic template when you don't have one created. Yet, baby steps guaranteed. I see these

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:52 AM, Daniel Gonzalez wrote: > Quoting from the link you posted: > > "The purpose of such Python virtual environments is to allow one to create > multiple distinct Python environments for the same version of Python, but > with different sets of Python modules and packages i

Re: [web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:42 AM, Massimo Di Pierro wrote: > in trunk. please check it. Per my earlier message, this should not be necessary. There must be something else wrong, and str() unfortunately just papers over whatever the real problem is. > > On Wednesday, 1 August 2012 10:23:11 UTC-5, Abr

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Quoting from the link you posted: "The purpose of such Python virtual environments is to allow one to create multiple distinct Python environments for the same version of Python, but with different sets of Python modules and packages installed into the Python 'site-packages' directory." This d

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Anthony
On Wednesday, August 1, 2012 11:37:03 AM UTC-4, Massimo Di Pierro wrote: > > We could make that distinction (additional flag) and have two tabs. > We could, though see my other reply. Not all derivatives/distributions have a running demo site, so it's probably best to include those kinds of proj

Re: [web2py] Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:23 AM, AbrahamLinksys wrote: > I have an appilcation that has been running for a while, and suddenly today > it gave an error on this line in my view: > > > [show all > attachements] > > This worked fine, but then I think I upgraded from 1.99.4 to 1.99.7, and it > thro

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Luther Goh Lu Feng
I think the drupal site really presents their case studies and distributions very well, each with tagging and blog posts. Web2py probably can learn from it... Probably post this on a separate thread On Wednesday, August 1, 2012 11:40:15 PM UTC+8, Anthony wrote: > > Please refer to what Drupal

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Michele Comitini
Would be nice that each "appliance" should have at least a github or whatever to have a live project and not a dead one that no one is going to pickup or contribute to. mic 2012/8/1 Anthony > Please refer to what Drupal has done: >> >> - For sites that have been built with Drupal: >> http://dr

[web2py] Giving a talk promoting web2py over Django

2012-08-01 Thread Alec Taylor
Tonight I'm going to present my little social-network to a user-group. I'm going to show them my code, some slides, the website, the mobile apps and tell them when Django isn't as good as web2py. Are there any particular features of web2py you would recommend I highlight? - Also, are there any ma

[web2py] Re: Vars dictionary -- legal to have 'int'?

2012-08-01 Thread Massimo Di Pierro
in trunk. please check it. On Wednesday, 1 August 2012 10:23:11 UTC-5, AbrahamLinksys wrote: > > Hi, > > I have an appilcation that has been running for a while, and suddenly > today it gave an error on this line in my view: > > > [show > all attachements] > > This worked fine, but then I t

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Anthony
> > Please refer to what Drupal has done: > > - For sites that have been built with Drupal: > http://drupal.org/case-studies > http://web2py.com/poweredby is intended to serve this purpose. > - For distributions of Drupal with site features and functions for a > specific type of site as a si

Re: [web2py] Re: existing tables in plugin_wiki

2012-08-01 Thread Larry G. Wapnitsky
got it. thanks. On 8/1/2012 11:38 AM, Massimo Di Pierro wrote: This is a bug in plugin_wiki but the bug is triggered by record_id: id id should be a number. On Wednesday, 1 August 2012 10:07:17 UTC-5, Larry Wapnitsky wrote: I'm attempting to access database tables created in my db.py fil

[web2py] Re: existing tables in plugin_wiki

2012-08-01 Thread Massimo Di Pierro
This is a bug in plugin_wiki but the bug is triggered by record_id: id id should be a number. On Wednesday, 1 August 2012 10:07:17 UTC-5, Larry Wapnitsky wrote: > > I'm attempting to access database tables created in my db.py file using > different aspects of plugin_wiki. Whenever I enter the

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Massimo Di Pierro
We could make that distinction (additional flag) and have two tabs. On Wednesday, 1 August 2012 09:40:20 UTC-5, Anthony wrote: > > On Wednesday, August 1, 2012 9:50:07 AM UTC-4, Massimo Di Pierro wrote: >> >> So perhaps poweredby apps should have a flag and flagged apps should >> always be on top

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread lyn2py
Do you mean like: requires=IS_IN_DB(db,'sometable.id','%(name)s (%(description)s)') If so, yes I have them there. The purpose is to create the drop down menu... unless I'm doing it wrong? Or is there another way about it so that the references will appear per the manual? Thanks Anthony! On We

[web2py] Re: session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Anthony
I think the main issue is with the lists, which are mutable -- if all the variables refer to the same list and you mutate the list, all the variables will still refer to that changed list. If you want to be able to change one of the lists without affecting the others, then you need the separate

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Massimo Di Pierro
Yes. this is wrong: Field('City', db.city, 'list:reference city', label='Miestas'), should be Field('City', 'list:reference city', label='Miestas'), On Wednesday, 1 August 2012 09:15:07 UTC-5, Aurelijus Useckas wrote: > > Thank you Massimo, but the 1005/150 mysql problem seems to be smth wring

Re: [web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Jonathan Lundell
On 1 Aug 2012, at 8:13 AM, Daniel Gonzalez wrote: > I am deploying a web2py application, and I will be serving it with Apache via > mod_wsgi. I have the following WSGI directives in my virtual host > configuration: > > WSGIDaemonProcess web2py user=www-data group=www-data \ > display-name=%{GRO

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Luther Goh Lu Feng
On Wednesday, August 1, 2012 10:40:20 PM UTC+8, Anthony wrote: > > On Wednesday, August 1, 2012 9:50:07 AM UTC-4, Massimo Di Pierro wrote: >> >> So perhaps poweredby apps should have a flag and flagged apps should >> always be on top. >> > > That is already the case, though we don't make a dist

[web2py] Vars dictionary -- legal to have 'int'?

2012-08-01 Thread AbrahamLinksys
Hi, I have an appilcation that has been running for a while, and suddenly today it gave an error on this line in my view: [show all attachements] This worked fine, but then I think I upgraded from 1.99.4 to 1.99.7, and it throws an error complaining that it cannot concatenate string and

[web2py] Re: session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Annet
Hi Anthony, This might help: > http://inst.eecs.berkeley.edu/~selfpace/cs9honline/Q2/mutation.html. That was helpful. As you know I am working on a network application, which is node i.e nodeID driven. When nodeID's change I need a way to reset all variable's stored in session, to use them i

[web2py] Re: format attribute in Record Representation

2012-08-01 Thread Anthony
Have you explicitly set any validators for the field (e.g., IS_IN_DB)? I believe you only get the default represent attribute when you don't explicitly set a validator (perhaps that should be changed). Anthony On Wednesday, August 1, 2012 11:17:24 AM UTC-4, lyn2py wrote: > > I refer to http://w

[web2py] format attribute in Record Representation

2012-08-01 Thread lyn2py
I refer to http://web2py.com/books/default/chapter/29/6 under Record representation > The format attribute will be used for two purposes: > >- To represent referenced records in select/option drop-downs. > > >- To set the db.othertable.person.represent attribute for all fields >

[web2py] Web2py in apache mod_wsgi with virtualenv

2012-08-01 Thread Daniel Gonzalez
Hi, I am deploying a web2py application, and I will be serving it with Apache via mod_wsgi. I have the following WSGI directives in my virtual host configuration: WSGIDaemonProcess web2py user=www-data group=www-data \ display-name=%{GROUP} WSGIProcessGroup web2py WSGIScriptAlias / /var/www/web

[web2py] existing tables in plugin_wiki

2012-08-01 Thread Larry Wapnitsky
I'm attempting to access database tables created in my db.py file using different aspects of plugin_wiki. Whenever I enter the table name, I get the following as my results on my "page": Traceback (most recent call last): File "/home/lwapnitsky/web2py/applications/EARS_web2py/models/plugin_w

[web2py] Re: Ticket Issued: Unrecoverable

2012-08-01 Thread AbrahamLinksys
Are 100% sure it's not permissions (e.g. you've run chmod recursively on the root of your app)? If so, I've also seen this error when mod_wsgi is misconfigured. In my case, I was able to visit one application (which was the default_app set in routers.BASE) but visiting the other resulted in the

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Anthony
On Wednesday, August 1, 2012 9:50:07 AM UTC-4, Massimo Di Pierro wrote: > > So perhaps poweredby apps should have a flag and flagged apps should > always be on top. > That is already the case, though we don't make a distinction between "examples" and "derivative projects" for that purpose. An

[web2py] Re: Django vs. Web2py

2012-08-01 Thread yamandu
Wow, we could have a presentation like that http://www.silverstripe.org/ Em segunda-feira, 30 de julho de 2012 09h02min56s UTC-3, Gour escreveu: > > On Mon, 30 Jul 2012 21:45:15 +1000 > Alec Taylor > wrote: > > > If I wasn't working on a separate sizable web2py project (a > > social-network)

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Michele Comitini
Massimo, Why not put open source or commercial (products that are on sale) software programs in a different section? "built on web2py" is different from "made with web2py" IMHO. This of course could be not the best way to present things, marketing/communication is not my field. The important thi

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-01 Thread peter
The instructions I gave at the top had been tested on a bare centos 5 machine and worked. I have got through 5 issues on your instructions so far: 'force-reload' not recognised so removed from uwsgi 'tar's had '-zxvf' as options, changed to 'zxvf' 'cp -R ./$version/* /opt/uwsgi-python

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Aurelijus Useckas
Thank you Massimo, but the 1005/150 mysql problem seems to be smth wring with foreign key (merging of tables). Are there any flaws in my DAL syntax? This line seems to be the trigger: Field('City', db.city, 'list:reference city', label='Miestas'), it references: db.define_table('city', Fie

[web2py] Web2py site/app with several deily accesses

2012-08-01 Thread vinicius...@gmail.com
This question has been asked here from time to time, but always things get up to date. So, do you have some case using web2py to serve several (hundreds of thousands, or millions) page hits a day? What is your app architecture? Model based? Modelless? What database do you use? Tell us someth

Re: [web2py] Ticket Issued: Unrecoverable

2012-08-01 Thread Massimo Di Pierro
chown www-data:www-data -R web2py/applications/ On Wednesday, 1 August 2012 08:47:23 UTC-5, Richard wrote: > > I am pretty sure that some of your app files permissions are not correctly > setted. > > chown www-data.www-data -R web2py/applications/yourapp > > Richard > > On Wed, Aug 1, 2012 at 4

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Massimo Di Pierro
If you want to sue this URL: http://127.0.0.1:8000/ProfilePublic/~jsmith routes should be like this: # begin routes_in = [ ('/ProfilePublic/~$anything','/ProfilePublic/default/userinfo/$anything' ), ] #end routes_out = [ ('/ProfilePublic/default/userinfo/$anything','/ProfilePublic/~$anythin

Re: [web2py] Re: web2py hangs while creating the mysql tables

2012-08-01 Thread Massimo Di Pierro
db = DAL('mysql://', check_reserved=['common','mysql']) Anyway, I am not sure your problem is that you are using a reserved keyword. Perhaps the table exists already. I am also surprised you are getting a pymysql InternalError and not an OperationalError. On Wednesday, 1 August 2012 07:45:

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-08-01 Thread Massimo Di Pierro
So perhaps poweredby apps should have a flag and flagged apps should always be on top. On Tuesday, 31 July 2012 21:00:39 UTC-5, Luther Goh Lu Feng wrote: > > Hi Massimo: > > Looking at http://web2py.com/poweredby it seems that there are both > examples and derivative projects listed. > > A deri

Re: [web2py] Ticket Issued: Unrecoverable

2012-08-01 Thread Richard Vézina
I am pretty sure that some of your app files permissions are not correctly setted. chown www-data.www-data -R web2py/applications/yourapp Richard On Wed, Aug 1, 2012 at 4:36 AM, r13race wrote: > Hello, > > I made an application using Apache+Web2py+WSGI framework. > It was running fine and all

[web2py] Re: session.cmsadmin_menu=session.create_dropdown=session.retrieve_dropdown=[] unexpected behaviour

2012-08-01 Thread Anthony
Yes, all those variables are pointing to the same object in memory (the list). If you just mutate the list, they're all still pointing to that same list. If you completely re-assign one of the variables to a different object, then that won't affect the other variables (which will still refer to

[web2py] Re: Possible scheduler bug, stable version

2012-08-01 Thread Tim Richardson
On Wednesday, 1 August 2012 01:36:51 UTC+10, Niphlod wrote: > > uhm. try the trunk version remains a valid point. > Anyway, are you aware that results are json encoded (so to read back them > into python dictionary you have to do simplejson.loads(results)) ? > Wasn't. Thanks. And will try the

Re: [web2py] Re: Chrome:LOAD and ajax problem

2012-08-01 Thread Anthony
> > Chrome: > > 1 > 2 > 3 > > > > > > > During page reload there are a message 'loading...' for ~1second, and > then div is still empty. > Also there aren't any logs in console. > Are you saying the div does load pro

  1   2   >