Re: [web2py] Re: wrapping long text lengths in grid/smartgrid

2011-10-02 Thread Johann Spies
On 1 October 2011 05:28, Bruno Rocha wrote: > grid should have a truncate parameter. It seems that there is none at the moment. I got TypeError: grid() got an unexpected keyword argument 'truncate' when trying form = SQLFORM.grid(query, columns = columns,deletable = False,

[web2py] Re: Multiple tables, one form with image upload

2011-10-02 Thread TheSweetlink
Hello pbreit, I cannot find the post on this group where I found it but I'm pretty sure form.vars.filename_newfilename is what you're looking for. This is not to be confused with request.vars.filename.filename which will contain your original filename. form.vars.filename_filename will contain th

Re: [web2py] any pt_BR mailing list?

2011-10-02 Thread Bruno Rocha
YES! Estamos em: http://groups.google.com/group/web2py-users-brazil Mais aqui: http://web2py.com/examples/default/usergroups On Sun, Oct 2, 2011 at 8:28 PM, Leonardo Cezar wrote: > Hay all, > > Is there any portuguese web2py mailing lists? > > Best regards, > > -Leo > -- > Leonardo Cezar > htt

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread MidGe
> > Thank you for your interest and quick reply. > > > > Ah! Yes, I could do that, But I also am able to log in and edit when using apache as a server. Yes, something like that is the cause. Fine I can duplicate an re-duplicate here. I can insert any code to debug/test and am quite p

[web2py] Interesting Thread on the web2py vs the usual suspect

2011-10-02 Thread Julio Schwarzbeck
Well, decided to leave a comment regarding misconceptions (what else is new) on web2py when I was blasted back with all the "facts" on why web2py -=sucks=-, I've responded to them but there could be good points on his side too (I am almost never confrontative unless they play the condescending card

[web2py] Re: MongoDB and Web2py

2011-10-02 Thread Massimo Di Pierro
I am confused. Did you use db = DAL('mongodb://') db.define_table() db.mytable.insert() or just the mongodb api? On Oct 2, 5:53 pm, Bruno Rocha wrote: > I used that for some samples and talks, also for a small project. as I I am > not doing advanced operations I cant say if it works

[web2py] any pt_BR mailing list?

2011-10-02 Thread Leonardo Cezar
Hay all, Is there any portuguese web2py mailing lists? Best regards, -Leo -- Leonardo Cezar http://postgreslogia.wordpress.com

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Roberto De Ioris
> Hi there, > > If I disable the https requirement for the admin, I will not be able > to get into the admin area either. I was meaning disabling it in: applications/welcome/controllers/appadmin.py > > The strange thing is that I can log in. The system recognizes my > password as valid (when i

Re: [web2py] Re: help: different auth page

2011-10-02 Thread Anthony
Note, you can do a conditional {{include 'somefile.html'}}, and I believe that will be able to compile (as long as the include doesn't include a variable). The compiled view will include all the code from both included views, though only one will be executed, depending on the condition. Anthony

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Bruno Rocha
try to change for the uswgi user. can you see which user it is using? may be www-data or even www or apache On Sun, Oct 2, 2011 at 10:20 PM, MidGe wrote: > Hi there, > > If I disable the https requirement for the admin, I will not be able > to get into the admin area either. > > The strange thi

Re: [web2py] Re: help: different auth page

2011-10-02 Thread Anthony
On Sunday, October 2, 2011 8:37:17 PM UTC-4, rochacbruno wrote: > > > > On Sun, Oct 2, 2011 at 9:29 PM, Anthony wrote: > >> I don't think you can do a conditional {{extend}}, can you? > > > Yes it works, do not works only if you compile the app. > Are you sure? Doesn't seem to work when I try it?

[web2py] Re: BR in default.py

2011-10-02 Thread lucas
yes anthony, both of those worked in the way you prescribed. thank you so much and have a nice day. lucas

[web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread MidGe
Hi there, If I disable the https requirement for the admin, I will not be able to get into the admin area either. The strange thing is that I can log in. The system recognizes my password as valid (when it is, and not when it is not) but it does get me back to the login screen, in an endless loo

[web2py] Announcing another web2py-gae application

2011-10-02 Thread Joseph Jude
Thanks to forum members (Anthony & Cliff), I was able to develop an application which I hope to serve as a repository of checklists. It is hosted at http://123-check.appspot.com/. This is just a first version and I'm still learning. Your comments / suggestions are appreciated. Joseph Jude http

[web2py] Re: Subdomain based on blog users in routes.py

2011-10-02 Thread Anthony
Have you read through http://web2py.com/book/default/chapter/04#Pattern-Based-System? Not sure if this will work, but maybe something like: routes_in = (('http://$sub\.mysite\.com', '/myapp/pages/blog?user=$sub')) On Sunday, October 2, 2011 8:14:32 PM UTC-4, Farsheed Ashouri wrote: > > So, Any

Re: [web2py] Re: help: different auth page

2011-10-02 Thread Bruno Rocha
On Sun, Oct 2, 2011 at 9:29 PM, Anthony wrote: > I don't think you can do a conditional {{extend}}, can you? Yes it works, do not works only if you compile the app.

Re: [web2py] images (uploaded files) not showing correctly after update?

2011-10-02 Thread Carlos
done: http://code.google.com/p/web2py/issues/detail?id=455

[web2py] Re: help: different auth page

2011-10-02 Thread Anthony
I don't think you can do a conditional {{extend}}, can you? Anthony On Sunday, October 2, 2011 3:41:46 PM UTC-4, Julie Bouillon wrote: > > I've hacked something based on request.env.query_string because it's > not working > with the session if the first page visited is a protected one. > > Unf

[web2py] Re: BR in default.py

2011-10-02 Thread Anthony
Try CAT('dude man', BR()) Note, CAT() is new and only recently added to the book (previously, you would have done TAG['']('dude man', BR())). XML('dude man') should also work. Anthony On Sunday, October 2, 2011 5:03:25 PM UTC-4, lucas wrote: > > ok, i must be missing something, because that is

Re: [web2py] images (uploaded files) not showing correctly after update?

2011-10-02 Thread Anthony
Maybe post an issue about this on Google code: http://code.google.com/p/web2py/issues/list On Sunday, October 2, 2011 6:42:39 PM UTC-4, Carlos wrote: > > Hi, > > I solved this in my case (without a redirect) as follows: > > + wrap each upload widget html into a 'wrapper' div. > > + after the form

[web2py] Re: Subdomain based on blog users in routes.py

2011-10-02 Thread Farsheed Ashouri
So, Any reliable setting? Any alternative ways? probably with Apache settings?

Re: [web2py] Re: MongoDB and Web2py

2011-10-02 Thread Bruno Rocha
I used that for some samples and talks, also for a small project. as I I am not doing advanced operations I cant say if it works or not. But for my sample needs worked very well. On Sun, Oct 2, 2011 at 7:39 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > At this time my priority is t

Re: [web2py] images (uploaded files) not showing correctly after update?

2011-10-02 Thread Carlos
Hi, I solved this in my case (without a redirect) as follows: + wrap each upload widget html into a 'wrapper' div. + after the form accepts/process, find each of those wrapper elements and replace their contents (old value) with a new call to the upload widget using the new value. The above w

[web2py] Re: MongoDB and Web2py

2011-10-02 Thread Massimo Di Pierro
At this time my priority is to finish document the rest of undocumented web2py features. I will work on this as soon as I finish that. Anyway, in dal.py there is a mongodb adapter. It can only do insert. Has anybody tried that? massimo On Oct 2, 4:52 pm, Francisco Costa wrote: > I don't want to

[web2py] Re: Change MENU LI tags

2011-10-02 Thread Massimo Di Pierro
Check the source code for MENU http://code.google.com/p/web2py/source/browse/gluon/html.py#2029 You can also define your own helper if not flexible enough. On Oct 2, 4:18 pm, António Ramos wrote: > Hello, i´m working withhttp://www.jeasyui.comtree view for a test app > > i want to use the respon

[web2py] Re: BR in default.py

2011-10-02 Thread Massimo Di Pierro
What do you mean by "not working". What is in the view? What do you see? On Oct 2, 4:03 pm, lucas wrote: > ok, i must be missing something, because that is not working.  i am > running web2py v1.98.2 on apache 2.2.15 on centos 6.0.  lucas

[web2py] Re: Google Checkout Plugin Error

2011-10-02 Thread Massimo Di Pierro
What's in "/var/web2py/applications/Sample_Google_Checkout/views/ default/index.html" ? On Oct 2, 1:26 pm, zukunftschauer wrote: > I am trying to evaluate the Google Checkout Plugin, but keep running > in the same error.  I followed the instructions listed in the Model in > the plugin.  I am n

[web2py] MongoDB and Web2py

2011-10-02 Thread Francisco Costa
I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py community http://web2py.uservoice.com/forums/42577-general are there any plans or schedule for this supp

[web2py] Change MENU LI tags

2011-10-02 Thread António Ramos
Hello, i´m working with http://www.jeasyui.com tree view for a test app i want to use the response.menu variable from web2py with this treeview from easy ui but i noticed that it needs a tag how do i change the behaviour of the MENU(response.menu) ? i want to add menuitem for every tags in res

[web2py] Re: BR in default.py

2011-10-02 Thread lucas
ok, i must be missing something, because that is not working. i am running web2py v1.98.2 on apache 2.2.15 on centos 6.0. lucas

[web2py] Re: PGP Mail Confusion

2011-10-02 Thread horridohobbyist
Well, I tried something goofy... I downloaded and ran pygpgme-0.8.1.win32.exe against a Python 2.7 installation on my PC. Then I *moved* the resultant folder ('pyme') over to the site-packages folder of web2py. Now I can successfully import. However, it won't work as per the sample code in the web

Re: [web2py] Re: PGP Mail Confusion

2011-10-02 Thread Martin Weissenboeck
I have followed the link and got the "setuptools-0.6c11" for Windows (32 bit). I have several versions of Python on my PC. The setuptools find the installed version of Python 2.5, but it seems that it does not allow to install to web2py. And if somebody does not have Python 2.5 installed? I think

Re: [web2py] Re: PGP Mail Confusion

2011-10-02 Thread Michele Comitini
No you cannot install python modules from within web2py. Not yet at least. You have to install using easy_install. http://packages.python.org/distribute/easy_install.html#installing-easy-install mic Il giorno 02/ott/2011 21:11, "horridohobbyist" ha scritto: > Okay, now I'm *really* confused.

[web2py] Re: help: different auth page

2011-10-02 Thread Julie Bouillon
I've hacked something based on request.env.query_string because it's not working with the session if the first page visited is a protected one. Unfortunately, I think I might have found a bug. Here's an excerpt of the user.html file I use: {{if "/appname/contname" in request.env.query_string:}} {

[web2py] Re: PGP Mail Confusion

2011-10-02 Thread horridohobbyist
Okay, now I'm *really* confused. web2py has nothing to do with any python installation on my Windows PC. So the question is, how do you install python-pyme from within web2py? Does the web2py book talk about this?? Richard On Oct 2, 2:50 pm, horridohobbyist wrote: > Like I said, I'm new to pytho

[web2py] Re: PGP Mail Confusion

2011-10-02 Thread horridohobbyist
Like I said, I'm new to python and web2py. I'm just starting to get into it with the official web2py book. My preliminary search reveals that I may have to build the python-pyme stuff. I'm using web2py under Windows 7. I'm not sure how to proceed. (Things like SWIG puzzle me.) Is there a quick wa

[web2py] Google Checkout Plugin Error

2011-10-02 Thread zukunftschauer
I am trying to evaluate the Google Checkout Plugin, but keep running in the same error. I followed the instructions listed in the Model in the plugin. I am new to web2py, and so far love it, but it you need more information than I have provided, please let me know. I am just not experienced enou

[web2py] Re: roles

2011-10-02 Thread Anthony
'role' is the third argument of the function, so if you're only going to submit one argument, you have to name it: auth.has_membership(role='reg') Your version is interpreting 'reg' as the group_id, which is the first argument. Anthony On Sunday, October 2, 2011 11:26:40 AM UTC-4, Web2Py Frea

[web2py] Re: PGP Mail Confusion

2011-10-02 Thread szimszon
You don't have to import anything it's done automatically by the framework. But you need to install python-pyme. (If I remember well the package python-pyme depends on libgpgme11). So install python-pyme and spicify sign_passphrase and other. And have a gnupg settings for web2py user. That is y

[web2py] Re: BR in default.py

2011-10-02 Thread Massimo Di Pierro
body = XML('dude man',BR()) return dict(body=body) On Oct 2, 11:43 am, lucas wrote: > hello one and all, > > i am trying to insert the html tag under default.py in index(), > something like: > > def index(): >   body = 'dude man'+BR() >   return dict(body=body) > > which blows and gives an Inter

[web2py] Re: roles

2011-10-02 Thread Massimo Di Pierro
{{ if auth.has_membership(role='reg') content for reg . {{pass}} On Oct 2, 10:26 am, Web2Py Freak wrote: > i have a role called "reg" > > i tryed : > {{ if auth.has_membership('reg') > > content for reg . > > {{pass}} > > but it didnt work

[web2py] Re: Try Flask "in a browser"

2011-10-02 Thread Massimo Di Pierro
Should be this video. It is old but ok: http://www.vimeo.com/13485916 On Oct 2, 9:56 am, "Cameron" wrote: > Cube2py looks very interesting - but the vimeo video link on the page comes > up with a vimeo error that it was deleted on July 20, FYI . . . > > > > > > > > -Original Message- > F

[web2py] Re: help: different auth page

2011-10-02 Thread Massimo Di Pierro
As a quick solution, store the last visited page in session and check check in user is not request.function == 'user': session.last_action = request.function controller A @auth.requires_login() --> send to a view user.html specific for controller A def myfunctionA(): return dict() co

[web2py] BR in default.py

2011-10-02 Thread lucas
hello one and all, i am trying to insert the html tag under default.py in index(), something like: def index(): body = 'dude man'+BR() return dict(body=body) which blows and gives an Internal error, TypeError: cannot concatenate 'str' and 'BR' objects or even simpler like, def index():

[web2py] Re: All errors "timeout: timed out"

2011-10-02 Thread Massimo Di Pierro
Can you tell us more? On Oct 2, 2:54 am, pbreit wrote: > I'm on 1.99.3 and most or all of my errors are listed as "timeout: timed out" > which doesn't seem right. Is anyone else seeing this?

[web2py] setting default values in dropdown and optimal method to select db with variables

2011-10-02 Thread Will
Here is my goal. I have multiple drop down forms populated with the unique values available per field. I want to add a default ALL value to them. I then want to be able to take those values from the form and do a selection based off those variables. I can't seem to be able to select all values p

[web2py] Re: roles

2011-10-02 Thread Web2Py Freak
i have a role called "reg" i tryed : {{ if auth.has_membership('reg') content for reg . {{pass}} but it didnt work

[web2py] Re: roles

2011-10-02 Thread Anthony
auth.has_membership(group_id, user_id, role) * * You can specify either group_id or role. The current logged in user is assumed if user_id is not specified. See http://web2py.com/book/default/chapter/08#Authorization. Anthony On Sunday, October 2, 2011 10:56:43 AM UTC-4, Web2Py Freak wrote: >

[web2py] roles

2011-10-02 Thread Web2Py Freak
hey guys , i want to use somthing like this in my page but with ROLES: {{if auth.is_logged_in():}} {{pass}}

RE: [web2py] Re: Try Flask "in a browser"

2011-10-02 Thread Cameron
Cube2py looks very interesting - but the vimeo video link on the page comes up with a vimeo error that it was deleted on July 20, FYI . . . -Original Message- From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: Saturday, October 01, 2011 10:

Re: [web2py] Re: Problem with private mode of fluxflex

2011-10-02 Thread Martin Weissenboeck
I have not got any answer from fluxflex. Martin 2011/10/2 jotbe > I got a similar issue just right now and contacted the fluxflex > service. Was your problem resolved meanwhile? > > Regards, > Jan > > On 14 Sep., 07:20, Martin Weissenboeck wrote: > > Hi, > > > > has somebody tried the private m

Re: [web2py] Subdomain based on blog users in routes.py

2011-10-02 Thread Jonathan Lundell
On Oct 2, 2011, at 7:23 AM, Anthony wrote: > I'm not sure about reading URLs (incoming or outgoing), but for re-writing > them, there is an example in > http://web2py.com/book/default/chapter/04#Pattern-Based-System showing a > re-write involving the query string: > > '/test/default/index?vars

Re: [web2py] Subdomain based on blog users in routes.py

2011-10-02 Thread Anthony
I'm not sure about reading URLs (incoming or outgoing), but for re-writing them, there is an example in http://web2py.com/book/default/chapter/04#Pattern-Based-System showing a re-write involving the query string: '/test/default/index?vars=\g' Presumably if could be a match of the subdomain,

[web2py] Re: Disabling validation/part of form

2011-10-02 Thread Jan Rozhon
Thank you Anthony, it worked, dumb me didnt noticed that validator. Thanks again, Jan On 30 zář, 19:39, Anthony wrote: > Have you tried IS_EMPTY_OR(IS_IN_SET(...))? > > Seehttp://web2py.com/book/default/chapter/07#Validators > > Anthony > > > > On Friday, September 30, 2011 1:13:32 PM UTC-4, Ja

Re: [web2py] Re: help: different auth page

2011-10-02 Thread Julie Bouillon
On 10/02/2011 06:53 AM, Massimo Di Pierro wrote: How do you know if a user that has not yet logged is special or not? Can you provide an example? On Oct 1, 1:22 pm, "julie.bouil...@yedia.com" wrote: Hi, Is it possible to define different auth page for the same application ? I mean having an

Re: [web2py] webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Roberto De Ioris
Il giorno 02/ott/2011, alle ore 10:17, MidGe ha scritto: > I suspect the problem must be with uwsgi. > > The reason I say that, is that if I use the apache as per install script, it > works. > > If I stop apache and setup uwsgi, everything exactly the same, I have the > problem. I can access

[web2py] Multiple tables, one form with image upload

2011-10-02 Thread pbreit
I can't seem to figure out how to do multiple tables in one form where an image upload is involved. I've tried various combinations of this. Unfortunately I'm not getting meaningful error messages right now, everything is listed as "timed out". db.define_table('post', Field('title'), Fi

Re: [web2py] webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread MidGe
I suspect the problem must be with uwsgi. The reason I say that, is that if I use the apache as per install script, it works. If I stop apache and setup uwsgi, everything exactly the same, I have the problem. I can access the site. login even, but I get in a loop showing me back to the login

[web2py] All errors "timeout: timed out"

2011-10-02 Thread pbreit
I'm on 1.99.3 and most or all of my errors are listed as "timeout: timed out" which doesn't seem right. Is anyone else seeing this?