Re: [web2py] XMPP chat client

2011-08-17 Thread Massimiliano
Take a look if that can help you. http://thp.io/2007/python-jabberbot/ On Tue, Aug 16, 2011 at 9:52 PM, Fernando Macedo wrote: > Hello all, > > I'm trying to figure out how to implement a xmpp chat bot to run some > intranet queries and return those data. Like add the bot as friend on Google >

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Noel Villamor
I tried inserting crud.settings.formstyle = 'divs' but it only changed to divs the layout(?) but not the widget. DEFAULT FORM STYLE ... FORM STYLE SET TO "divs" ... As mentioned in my original post, I wanted to be . Any other suggestion? Thanks again.

[web2py] No spaces... now that would be nice...

2011-08-17 Thread Jason Brower
There a quite a few templating features that are nice in django, {% spaceless %} Foo {% endspaceless %} This is particular is vital for many sites where spaces are important. For example in a menu there are spaces that push items around and you can't do anything but remove the spaces. Would/

[web2py] Postgresql 9.0 problem.

2011-08-17 Thread annet
Today I upgraded to Postgresql 9.0 and web2py 1.98.2 (on Mac OS X Snow Leopard). To test the environment I created a Login Role and Database in pgAdmin III and entered the following connection string in db.py: db = DAL('postgres://myusername:mypassword@localhost:5432/mydatabase') Now, when I star

[web2py] No spaces... now that would be nice...

2011-08-17 Thread pbreit
Seems like a bad idea so I would vote "no".

[web2py] Re: Postgresql 9.0 problem.

2011-08-17 Thread David Marko
I use following URI: db = DAL('postgres://username:password@localhost/web2py_twister', pool_size=10)

[web2py] Re: Postgresql 9.0 problem.

2011-08-17 Thread David Marko
Do you have PostgreSQL python adapter installed? Is the adapter listed in web2py startup log?

[web2py] Re: Postgresql 9.0 problem.

2011-08-17 Thread pbreit
It seems to me I tried specifying the port once and it didn't work. Should it?

[web2py] Calender / datetime picker - localization

2011-08-17 Thread Martin Weissenboeck
Who knows where to find details about the localization (and other customization) of the built-in calender? In calendar.js I have found the link http://www.dynarch.com/projects/calendar, but I could only find there something about a (new) version JSCal2 Regards, Martin

[web2py] memcache increment - bugfix

2011-08-17 Thread Marin Pranjić
I tried to create an issue on code.google.com/p/web2py but it crashed and are currently not working. I'm not sure if issue is created or not. Here is c/p: What steps will reproduce the problem? 1. import memcache client: from gluon.contrib.memcache import MemcacheClient memcache_servers = ['127

Re: [web2py] memcache increment - bugfix

2011-08-17 Thread Marin Pranjic
On Wed, Aug 17, 2011 at 11:54 AM, Marin Pranjić wrote: > I tried to create an issue on code.google.com/p/web2py but it crashed > and are currently not working. I'm not sure if issue is created or > not. > > Here is c/p: > > > What steps will reproduce the problem? > 1. import memcache client: > >

[web2py] The use of dashes in helpers arguments.

2011-08-17 Thread Bruno Rocha
I need to create this: using helpers this should be: DIV(_data-role='controlgroup', _data-type='horizontal') but the code above raises a Python error: SyntaxError: keyword can't be an expression what shoud I use in the place of dashes? thanks.

[web2py] Re: Postgresql 9.0 problem.

2011-08-17 Thread annet
@David, > Do you have PostgreSQL python adapter installed? Is the adapter listed in > web2py startup log? Yes I have. @pbreit > It seems to me I tried specifying the port once and it didn't work. Should it? I did work in 8.4. I think for now I just re-install version 8.4, it may not be a web2

[web2py] jqgrid-module import problem

2011-08-17 Thread Johann Spies
Strange: I have the app working on my laptop. After packing it using the admin interface and installing it on the server I get this error on the server: ImportError: No module named jqgrid.modules.jqgrid The line in the controller which is referred to: JqGrid = local_import('jqgrid', app='jqgri

Re: [web2py] jqgrid-module import problem

2011-08-17 Thread Bruno Rocha
try changing this: JqGrid = local_import('jqgrid', app='jqgrid', reload=True).JqGrid to this: from jqgrid import JqGrid On Wed, Aug 17, 2011 at 7:44 AM, Johann Spies wrote: > Strange: I have the app working on my laptop. After packing it using the > admin interface and installing it on

[web2py] Google datastore concepts - denormalising and list:reference fields

2011-08-17 Thread fishwebby
Hi, I'm currently learning web2py for deployment on Google App Engine, and I've got a couple of questions about how the datastore works. Let's say I've got a relational database with students, courses and enrolments. Enrolments is the join table that allows a many to many relationship between stud

Re: [web2py] jqgrid-module import problem

2011-08-17 Thread Johann Spies
On 17 August 2011 12:55, Bruno Rocha wrote: > try changing this: > > JqGrid = local_import('jqgrid', app='jqgrid', reload=True).JqGrid > > > to this: > > > from jqgrid import JqGrid > > Thanks. That solved the problem but not the mystery (because my lack of understanding). When is it better to

Re: [web2py] jqgrid-module import problem

2011-08-17 Thread Bruno Rocha
No more need to use lical_import it is deprecated. Newest web2py has a custom importer which works much better. http://zerp.ly/rochacbruno Em 17/08/2011 08:20, "Johann Spies" escreveu: > On 17 August 2011 12:55, Bruno Rocha wrote: > >> try changing this: >> >> JqGrid = local_import('jqgrid', app

[web2py] Re: The use of dashes in helpers arguments.

2011-08-17 Thread Massimo Di Pierro
DIV(**{'_data-rol':'controlgroup', '_data-typ':'horizontal'}) On Aug 17, 5:29 am, Bruno Rocha wrote: > I need to create this: > > > > using helpers this should be: > > DIV(_data-role='controlgroup', _data-type='horizontal') > > but the code above raises a Python error: > > SyntaxError: keyword c

[web2py] Re: Google datastore concepts - denormalising and list:reference fields

2011-08-17 Thread fishwebby
(posting Massimo's reply) > e.g. 1, "Physics 101", 4|5|6 > Is that how data has to be modelled using the GAE datastore? No. On GAE 'list:reference' maps into a ListProperty of integers > If so, is > it possible to do the following: > > - paginate the denormalised data, for example show a paginat

[web2py] Re: Google datastore concepts - denormalising and list:reference fields

2011-08-17 Thread fishwebby
So it sounds like it's possible to do what I want, although if I do want to do many to many perhaps GAE isn't the best fit. I'm going to persevere and see if I can get it working, as GAE is very attractive as a hosting option where I don't have to worry at all about scaling, server maintenance or a

[web2py] Re: No spaces... now that would be nice...

2011-08-17 Thread Ross Peoples
I've only run in to this issue once where I had a toolbar that would break if I put each button on its own line. So I just put everything on one line. There are only 3 or 4 buttons, so it's not that big of a deal, but I could see where this could be an issue in some cases. However, I'm not sure

[web2py] Use of SSL in web2py fails in firefox (missing intermediary cert)

2011-08-17 Thread Markus Schmitz
Hi everybody, this might be an implicit rocket problem, but because the SSL parameters are passed on the command line of web2py, I thought to address this here: I am running a website based on web2py and installed SSL certificates today to enable https. The corresponding files are passed with the

[web2py] Re: Google datastore concepts - denormalising and list:reference fields

2011-08-17 Thread fishwebby
> > - paginate the denormalised data, for example show a paginated list of > > students on a course? > > You cannot. ListProperty does not allow this. How about something like this? limitby = (0, 10) students = db(db.student.id.belongs(course.students)).select(limitby = limitby) (where course.st

Re: [web2py] jqgrid-module import problem

2011-08-17 Thread Johann Spies
On 17 August 2011 13:28, Bruno Rocha wrote: > No more need to use lical_import it is deprecated. Newest web2py has a > custom importer which works much better. > Thanks Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine po

Re: [web2py] Re: Postgresql 9.0 problem.

2011-08-17 Thread Richard Vézina
Did you set your pg_hba.conf and postgresql.conf... These lines at least : pg_hba.conf : hostall all *127.0.0.1*/24 md5 postgresql.conf : listen_addresses = '***' # Don't remember original value... ssl =* true or false * Richard On Wed, Aug 17, 2011 at 6:40 A

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Anthony
I think you might need a custom widget (see http://web2py.com/book/default/chapter/07#Widgets). For reference, here's the current radio widget: http://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#287. Anthony On Wednesday, August 17, 2011 3:57:48 AM UTC-4, Noel Villamor wrote: > I

[web2py] select by query in the link

2011-08-17 Thread cyber
How can I select rows from db using the link: http://localhost:8000/init/default/select/db?query=db.autos.num.contains(...some...value...) In the controller I have to describe current db, table and parse value from the link. So I need something like it is into appadmin but a little bit short

[web2py] Re: Calender / datetime picker - localization

2011-08-17 Thread Anthony
If you want to localize the date format in particular, in /views/web2py_ajax.html, you'll notice variables w2p_ajax_date_format and w2p_ajax_datetime_format. Both of those are translated via the web2py translation system, so you can simply add translations for those two formats to your language

Re: [web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Martín Mulone
Anthony is right is showing a complete solution, but what do you want to achieve?, perhaps you are looking to customize the style and a less complicate solution can be for example To customize this: some in css: div.list {} div.list input {} or #tag_tags {} And this: table.list {} table.

[web2py] No generic.json support anymore ?

2011-08-17 Thread Joseph.Piron
Hi guys, quite a weirdo right here :) I was on web2py 1.95.2 and everything was fine with my applications in production. To stay put, I have deciced to uppgrade to the last one 1.98.2 and validate everything works.. and ... it doesn't .. :'( I have a controller serving db information through a si

[web2py] Re: No generic.json support anymore ?

2011-08-17 Thread Ross Peoples
There have been a lot of people asking this question lately, it seems. They were disabled for security reasons. Please see the book for more information and how to enable them again: http://web2py.com/book/default/chapter/09#Generic-Views

[web2py] Re: No generic.json support anymore ?

2011-08-17 Thread Anthony
There is a security risk with generic views (they expose all variables returned in the dict by the controller action, including all fields in any returned database selects, and sometimes developers unintentionally/unknowingly return more than they want to explicitly expose). You can enable some

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Noel Villamor
Thanks for the link Anthony, it is what I need. Now, what is the proper way implement the custom widget? Should I simply copy the code, make the necessary alterations to it, and insert it in my app's controller?

[web2py] Re: No generic.json support anymore ?

2011-08-17 Thread Joseph.Piron
Ok.. works :) I didn't see it in the changelog sorry. On Aug 17, 3:54 pm, Anthony wrote: > There is a security risk with generic views (they expose all variables > returned in the dict by the controller action, including all fields in any > returned database selects, and sometimes developers > un

Re: [web2py] Re: custom form trouble

2011-08-17 Thread Bruno de Oliva Bemfica
Thanks for you answer, Anthony! Changed the code as you said and it worked! :D 2011/8/17 Anthony > On Tuesday, August 16, 2011 11:35:40 PM UTC-4, Bruno Codeman wrote: >> >> Thanks for answering, Denes. I included manually the tags >> because it wasn't been generated by web2py. I thought it very

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Anthony
On Wednesday, August 17, 2011 10:05:51 AM UTC-4, Noel Villamor wrote: > > > Thanks for the link Anthony, it is what I need. Now, what is the > proper way implement the custom widget? Should I simply copy the code, > make the necessary alterations to it, and insert it in my app's > controller? >

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Noel Villamor
Thanks for the tip(s). Have a nice day!

Re: [web2py] Re: Calender / datetime picker - localization

2011-08-17 Thread Martin Weissenboeck
Thx. But how can I translate the names of the months and the days and how can I make the calendar start at Monday (and not at Sunday)? By the way: I wanted to get a timepicker and I have tried to use "... _class='time'...". The datepicker works (_class='date') and also _class='datetime', but not '

Re: [web2py] Re: The use of dashes in helpers arguments.

2011-08-17 Thread Bruno Rocha
Thank you Massimo, this works very well. For the record, this is needed by JqueryMobile and Sencha Touch. On Wed, Aug 17, 2011 at 8:28 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > DIV(**{'_data-rol':'controlgroup', '_data-typ':'horizontal'}) > > On Aug 17, 5:29 am, Bruno Rocha wr

[web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-17 Thread Carlos
Hi Massimo (or others), This is one of the many errors I can get by executing concurrent web requests from different browsers ... web2py™ Version 1.98.2 (2011-08-16 12:27:18) Python Python 2.6.4: C:\Python26\python.exe Traceback Traceback (most recent call last): File "C:\web2py\gluon\restric

Re: [web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-17 Thread Bruno Rocha
BTW: where are you defining 'db' ? in db.py on the root of /models ? On Wed, Aug 17, 2011 at 11:56 AM, Carlos wrote: > Hi Massimo (or others), > > This is one of the many errors I can get by executing concurrent web > requests from different browsers ... > > web2py™ Version 1.98.2 (2011-08-16 12

Re: [web2py] Re: Calender / datetime picker - localization

2011-08-17 Thread Anthony
Here's the documentation on the JS widget: http://www.dynarch.com/static/jscalendar-1.0/doc/html/reference.html. Note, attaching the Calendar widget to date and datetime fields is handled in the web2py_ajax_init function of /static/js/web2py_ajax.js ( http://code.google.com/p/web2py/source/brow

Re: [web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-17 Thread Carlos
Hi Bruno, The 'db' is pretty much the first model to be defined, and never ever reset, and all of them in root. And note that 'db' is just one specific example of the many other errors I could get during concurrency. For reference, objects instantiated in the first model suddenly are NOT reco

[web2py] belongs and orderby not working on gae?

2011-08-17 Thread fishwebby
Hi, I've got the following query to select auth_users from a list of IDs, then ordered by name: users = db(db.auth_user.id.belongs((1,2,3))).select(orderby = db.auth_user.first_name) which works fine in sqlite, but when deployed to gae the orderby doesn't work. Do belongs and orderby not work tog

[web2py] Re: DAL query - GAE & local

2011-08-17 Thread howesc
note that standalone web2py defaults to sqlite storage, GAE development environment uses a GAE emulation of big-table, so data added when running standalone will not be available in GAE dev env and vice versa. cfh

[web2py] is the web2py autocomplete widget the best solution atm?

2011-08-17 Thread Daniel Aguayo
Hi List, I remember that book used to say that for autocomplete was better going for the jquery plugin for same purposes (altought i cannot find that in the book, now). If I would have a large amount of fields to search (say, thousands or, i hope not, millions) is the web2py autocomplete best sol

[web2py] question about RBAC and ajax functions

2011-08-17 Thread angleto
Hello, in my application I'm using both the embedded Auth module and ajax calls. Everything works fine with synchronous functions, but I have problems with ajax calls. Seems that each ajax call initialize a new session and despite the fact that I'm logged in the ajax functions still require me to l

[web2py] Re: is the web2py autocomplete widget the best solution atm?

2011-08-17 Thread Anthony
On Wednesday, August 17, 2011 12:10:44 PM UTC-4, Daniel Aguayo wrote: > > Hi List, > > I remember that book used to say that for autocomplete was better > going for the jquery plugin for same purposes (altought i cannot find > that in the book, now). > I don't recall that in the book. There is a

[web2py] Re: is the web2py autocomplete widget the best solution atm?

2011-08-17 Thread Daniel Aguayo
Thanks for your reply Anthony, was very useful.

[web2py] Re: is the web2py autocomplete widget the best solution atm?

2011-08-17 Thread Anthony
On Wednesday, August 17, 2011 12:34:40 PM UTC-4, Anthony wrote: > > The jQuery widget probably offers my client-side options, though > > Meant "more client-side options".

[web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread Carlos
Hi, What would be the best way to extend (add methods, not subclass) web2py classes?. For reference if I want to add the method 'test' to db (DAL class)?. I was doing something automated, but basically the following as a specific example: def test(self): return 'test from DAL' import gl

[web2py] Re: DAL query - GAE & local

2011-08-17 Thread ram
Thanks for clarifying On Aug 17, 8:56 pm, howesc wrote: > note that standalone web2py defaults to sqlite storage, GAE development > environment uses a GAE emulation of big-table, so data added when running > standalone will not be available in GAE dev env and vice versa. > > cfh

Re: [web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread Jonathan Lundell
On Aug 17, 2011, at 10:14 AM, Carlos wrote: > What would be the best way to extend (add methods, not subclass) web2py > classes?. > > For reference if I want to add the method 'test' to db (DAL class)?. > > I was doing something automated, but basically the following as a specific > example: >

Re: [web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread Carlos
Hi Jonathan, I can't subclass because I'm adding methods to lots of web2py classes, including: And I believe web2py can't support subclasses for all of the above (plus more) because of the direct instantiations web2py does?. For reference see Massimo's post: https://groups.google

[web2py] Re: weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-17 Thread Massimo Di Pierro
Can you email me the controller, privately? I am puzzled by this. On Aug 17, 9:56 am, Carlos wrote: > Hi Massimo (or others), > > This is one of the many errors I can get by executing concurrent web > requests from different browsers ... > > web2py™ Version 1.98.2 (2011-08-16 12:27:18) > Python P

[web2py] Re: belongs and orderby not working on gae?

2011-08-17 Thread Massimo Di Pierro
On Aug 17, 10:52 am, fishwebby wrote: > Hi, I've got the following query to select auth_users from a list of > IDs, then ordered by name: > > users = db(db.auth_user.id.belongs((1,2,3))).select(orderby = > db.auth_user.first_name) This should work. Could be that you need a index? > > which wor

[web2py] Re: question about RBAC and ajax functions

2011-08-17 Thread Massimo Di Pierro
This may be a browser issue, the ajax call is not padding cookies. Which browser? On Aug 17, 11:15 am, angleto wrote: > Hello, in my application I'm using both the embedded Auth module and > ajax calls. Everything works fine with synchronous functions, but I > have problems with ajax calls. Seems

[web2py] CAS Auth redirect loop

2011-08-17 Thread Bruno de Oliva Bemfica
Hi again, everyone. Does anyone know why a CAS auth could be entering a loop redirect? -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net

[web2py] Bug (in gluon.contrib.populate) TRUNK

2011-08-17 Thread Marin Pranjić
Hi, i have a code that works on latest stable, but raises an exception in trunk version. File "/srv/web2py/gluon/contrib/populate.py", line 97, in populate record[fieldname] = options[random.randint(0,len(options)-1)][0] File "/usr/lib/python2.7/random.py", line 241, in randint return

[web2py] Re: Bug (in gluon.contrib.populate) TRUNK

2011-08-17 Thread Massimo Di Pierro
The reason for the change was to avoid records populated with the zero option (''). I think I fixed the problem, please check it. On Aug 17, 1:44 pm, Marin Pranjić wrote: > Hi, > > i have a code that works on latest stable, but raises an exception in > trunk version. > >   File "/srv/web2py/gluon

[web2py] Re: question about RBAC and ajax functions

2011-08-17 Thread angleto
On Aug 17, 8:11 pm, Massimo Di Pierro wrote: > This may be a browser issue, the ajax call is not padding cookies. > Which browser? I can reproduce the problem with: - Chrome 14.0.835.94 beta - Firefox 5.0.1 - Safari 5.1 (7534.48.3) Do you think that using CAS could solve the problem ? thanks >

[web2py] MSSQL DAL multiple cascade paths not allowed

2011-08-17 Thread Omi Chiba
I was fololwing the web2py book with mssql for my database. db.define_table('comment', Field('page_id', db.page), Field('body', 'text'), Field('created_on', 'datetime', default=request.now), Field('created_by', db.auth_user, default=auth.user_id)) will generate CREATE TABLE comme

Re: [web2py] Re: Bug (in gluon.contrib.populate) TRUNK

2011-08-17 Thread Marin Pranjic
Hi Massimo, It works now :-) Regards, Marin On Wed, Aug 17, 2011 at 8:50 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > The reason for the change was to avoid records populated with the zero > option (''). > I think I fixed the problem, please check it. > > On Aug 17, 1:44 pm, Ma

[web2py] Re: downloads

2011-08-17 Thread peter
Next time I need to hire a hacker, I will ask you. Seriously though it is very useful being informed of vulnerabilities like this. I am a very experienced programmer but new to web design, so this is all valuable to understand. Thanks Peter On Aug 16, 2:50 pm, Anthony wrote: > On Tuesday, August

[web2py] Re: CAS Auth redirect loop

2011-08-17 Thread Bruno de Oliva Bemfica
Anyone? The app is entering a redirecting loop everytime I try to authenticate... 2011/8/17 Bruno de Oliva Bemfica > Hi again, everyone. Does anyone know why a CAS auth could be entering a > loop redirect? > > -- > Bruno de Oliva Bemfica > *Engenheiro de Software* > MSN: brunocode...@live.com >

[web2py] Form radio buttons from db with image - how to select "checked"?

2011-08-17 Thread Eric Scott
I'm new to both Python and web2py and am having difficulty coding a web2py radio form where each input field displays a name and an image. One (and only one) of these images should be set as the user's default image. I'm having trouble figuring out how to do this in web2py. I was able to produce

[web2py] Re: proper usage of exclusive_domain = True ?

2011-08-17 Thread vapirix
OR can maybe somebody point me in a different direction to achieve the same thing without a hilariously complicated config process that I won't want to do every time? =) On Aug 16, 5:07 pm, vapirix wrote: > So I'm attempting to set up the usage scenario of: > > domain1.com -> load app 1 > domain2

[web2py] Re: CAS Auth redirect loop

2011-08-17 Thread Anthony
Can you show some minimal code that reproduces the problem? On Wednesday, August 17, 2011 3:56:32 PM UTC-4, Bruno Codeman wrote: > Anyone? The app is entering a redirecting loop everytime I try to > authenticate... > > 2011/8/17 Bruno de Oliva Bemfica > >> Hi again, everyone. Does anyone know w

[web2py] list:reference , reprensent not working : potential issue

2011-08-17 Thread Richard
Hello, I think I have a issue with list:reference with a self referenced table the representation not working in sqltable... It's work when I change my referenced table from the self referenced to a different table... Book says : While list:reference has a default validator and a default represen

[web2py] Re: downloads

2011-08-17 Thread peter
Setting " response.headers['Content-Disposition'] = 'attachment; filename=%s' % request.vars.filename # to force download as attachment " Did indeed get the 'Do you want to open or save' dialog to use request.vars.filename instead of request.args(0) And now for instance "harold's bossa.mp3" wor

[web2py] Re: XMPP chat client

2011-08-17 Thread Fernando Macedo
Thanks Massimiliano! Great reference! On Aug 17, 4:40 am, Massimiliano wrote: > Take a look if that can help you. > > http://thp.io/2007/python-jabberbot/ > > > > > > > > > > On Tue, Aug 16, 2011 at 9:52 PM, Fernando Macedo wrote: > > Hello all, > > > I'm trying to figure out how to implement a

Re: [web2py] Re: CAS Auth redirect loop

2011-08-17 Thread Bruno de Oliva Bemfica
Everytime I click the login button, I receive a message from firefox/chrome with a 310 error(too_many_redirects) telling me to delete the cookies or allow third-party cookies. I have an app called "login"(the CAS Server) and another one called "ControleDeAtivos"(which should use the other app as a

[web2py] Re: downloads

2011-08-17 Thread Anthony
No problem. Happy to help. Anthony

Re: [web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread pbreit
Is there a summary anywhere of how to extend/subclass gluon modules?

Re: [web2py] list:reference , reprensent not working : potential issue

2011-08-17 Thread Richard Vézina
Ok, forget notice, I think, I just should use something like this : db.table2.linked_self.requires=\ IS_EMPTY_OR(IS_IN_DB(db,'table2.id','%(field1t2)s',\ orderby=('field1t2'),multiple=True)) But, still the list representation not working in crud.select for self referenced field. Rich

[web2py] Possible new deployment option: FluxFlex

2011-08-17 Thread pbreit
https://www.fluxflex.com I have not tried it but it seems like this could be an easy way to deploy (once we figure out how to do it in the first place).

Re: [web2py] auth.accessible_query(...)

2011-08-17 Thread Marin Pranjic
Repeating the question :) On Tue, Aug 16, 2011 at 10:21 AM, Marin wrote: > Also, I noticed that accessible_query raises an exception if user is > not logged in. > It's because of a line 2805 (trunk) in gluon/tools.py: > user_id = self.user.id > > What is expected behavior if user is not logged

[web2py] Error running web2py shell with IPython 0.11

2011-08-17 Thread dkuhlman
The interface to the embedded shell in IPython has apparently changed. When I do: $ ./web2py -S myapp I get this message: WARNING:web2py:import IPython error; use default python shell Here is a patch. It seems to work, but I'll admit that I'm not too sure that it does everything that

Re: [web2py] Re: proper usage of exclusive_domain = True ?

2011-08-17 Thread Jonathan Lundell
Sounds like a bug in exclusive_domain. I'll look at it when I get home later. On Aug 17, 2011, at 12:57 PM, vapirix wrote: > OR can maybe somebody point me in a different direction to achieve the > same thing without a hilariously complicated config process that I > won't want to do every time?

[web2py] New release of pyForum

2011-08-17 Thread Julio Schwarzbeck
Folks, After a hiatus of almost 9 months I finally finished a brand new version of pyForum, it was a core component re-design, PEP-8 compliance issues, and many issues and bug fixes completed. The system supports Janrain and local accounts, please read the latest discussions there if you had a lo

[web2py] Re: question about RBAC and ajax functions

2011-08-17 Thread Massimo Di Pierro
I meant to say "his may be a browser issue, the ajax call is not passing cookies." On Aug 17, 1:11 pm, Massimo Di Pierro wrote: > This may be a browser issue, the ajax call is not padding cookies. > Which browser? > > On Aug 17, 11:15 am, angleto wrote: > > > > > > > > > Hello, in my application

[web2py] Re: question about RBAC and ajax functions

2011-08-17 Thread Massimo Di Pierro
Strange I never had this problem. I used those browsers without issue. Can anybody else reproduce this? On Aug 17, 2:00 pm, angleto wrote: > On Aug 17, 8:11 pm, Massimo Di Pierro > wrote: > > > This may be a browser issue, the ajax call is not padding cookies. > > Which browser? > > I can reprod

[web2py] Re: Form radio buttons from db with image - how to select "checked"?

2011-08-17 Thread Massimo Di Pierro
This {{if record.id == user.auth_user.default_card: print 'checked="checked''}} should be {{if record.id == auth.user.default_card:}} checked="checked" {{pass}} or {{if record.id == auth.user.default_card: response.write(' checked="checked"')}} On Aug 17, 2:57 pm, Eric Scott wrote: > I'm new

[web2py] Re: extend (add methods, not subclass) web2py classes

2011-08-17 Thread Massimo Di Pierro
No. At this time I cannot recommend doing this. On Aug 17, 3:42 pm, pbreit wrote: > Is there a summary anywhere of how to extend/subclass gluon modules?

[web2py] Re: auth.accessible_query(...)

2011-08-17 Thread Massimo Di Pierro
It is not intentional and I think I have a workaround in trunk (please check it). yet it makes no sense to get an accessible_query if user is not logged it. It would just generate a query that always evaluates to false. On Aug 17, 3:48 pm, Marin Pranjic wrote: > Repeating the question :) > > > >

[web2py] Re: Error running web2py shell with IPython 0.11

2011-08-17 Thread Massimo Di Pierro
In trunk. Thanks. On Aug 17, 3:38 pm, dkuhlman wrote: > The interface to the embedded shell in IPython has apparently > changed.  When I do: > >     $ ./web2py -S myapp > > I get this message: > >     WARNING:web2py:import IPython error; use default python shell > > Here is a patch.  It seems to

[web2py] Re: New release of pyForum

2011-08-17 Thread Massimo Di Pierro
:-) On Aug 17, 4:13 pm, Julio Schwarzbeck wrote: > Folks, > > After a hiatus of almost 9 months I finally finished a brand new > version of pyForum, it was a core component re-design, PEP-8 > compliance issues, and many issues and bug fixes completed. > > The system supports Janrain and local acc

[web2py] web2py on OSX - Uses CPU when idling

2011-08-17 Thread ecafracs
I install web2py on Windows and OSX and start it, enter the admin password and wait for a few moments to let web2py settle down to idle. Behaviour I'm seeing is: * On Windows web2py uses virtually no CPU cycles if it's doing nothing * On OSX it uses anywhere between 1-3% of CPU, when in theory it

[web2py] Re: web2py on OSX - Uses CPU when idling

2011-08-17 Thread Massimo Di Pierro
Can you start it with -N and see if you can reproduce the problem. It may be cron and the different ways the two OSes handle processes. On Aug 17, 4:29 pm, ecafracs wrote: > I install web2py on Windows and OSX and start it, enter the admin > password and wait for a few moments to let web2py settl

[web2py] Re: New release of pyForum

2011-08-17 Thread Anthony
Awesome. Thanks for the contribution. On Wednesday, August 17, 2011 5:13:51 PM UTC-4, Julio Schwarzbeck wrote: > Folks, > > After a hiatus of almost 9 months I finally finished a brand new > version of pyForum, it was a core component re-design, PEP-8 > compliance issues, and many issues and b

[web2py] Re: Form radio buttons from db with image - how to select "checked"?

2011-08-17 Thread Anthony
Also, auth.user always contains the db.auth_user record of the current logged in user (or None), and auth.user_id is the logged in user's id (see http://web2py.com/book/default/chapter/08#Authentication). So, you don't have to refer to session.auth.user or do a db query to pull the current user

Re: [web2py] Re: belongs and orderby not working on gae?

2011-08-17 Thread Dave Hollingworth
Ah, could be. I'm still new to the GAE datastore. I'll look into the indexes. Thanks Dave 2011/8/17 Massimo Di Pierro > > > On Aug 17, 10:52 am, fishwebby wrote: > > Hi, I've got the following query to select auth_users from a list of > > IDs, then ordered by name: > > > > users = db(db.auth_

[web2py] Re: web2py on OSX - Uses CPU when idling

2011-08-17 Thread ecafracs
Wow. Quick response! Thanks!! Can I pass -N into the OSX binary, i.e. web2py.app? Getting ImportError: No module named gluon.widget when trying to run python web2py.py in the /Applications/web2py.app/Contents/Resources directory. On Aug 18, 7:37 am, Massimo Di Pierro wrote: > Can you start it

Re: [web2py] Re: dowloading attachments with AJAX

2011-08-17 Thread Michele Comitini
Hi Mart! Copy sample code in my previous mail. to test quicly you cat put the view code somewhere in /welcome/views/default/index.html {{=A(T('be brave!'), _onclick="ajax('%s',[],':eval');" % URL('gen_pdf'), _class='button')}} copy the function gen_pdf() in /welcome/controllers/default.py def

[web2py] Re: proper usage of exclusive_domain = True ?

2011-08-17 Thread vapirix
That would be truly excellent. It would change the way I do a lot of stuff. Right now I am forced to use php for a lot of small little apps that I don't want to surrender an entire web2py install for. =D On Aug 17, 4:01 pm, Jonathan Lundell wrote: > Sounds like a bug in exclusive_domain. I'll lo

[web2py] Fragmented packets when accessing from amicrocontroller

2011-08-17 Thread Angelo Compagnucci
Hi list, I'm using web2py for a microcontroller project and I'm facing a really strange problem. This microcontroller (a modified arduino with an enc28j60) can accept only one tcp packet a time, because the packet fills the ram and so it freezes the micro. The pages it can process are to be small

[web2py] web2py app give "Application not responding" in MAC, when provide -a password

2011-08-17 Thread xzhang
Hello, I am using web2py mac version. Because I don't need my user know anything about the server and password, So I add "-a password" argument in web2py.py. This working fine if I start it from command line by: ./web2py But not working when start it from double click the app. Because the app do

[web2py] custom_import weirdness ?

2011-08-17 Thread Niphlod
Hi all, I have a problem deploying my app to a VPS. I created an app with linkedin support, using https://github.com/mrgaaron/LinkedIn-Client-Library . Just to avoid to install this module systemwide, I put it under myapp/ modules folder. myapp - modules - liclient - __init__.py (co

[web2py] Re: web2py on OSX - Uses CPU when idling

2011-08-17 Thread ecafracs
Looking around it would seem I should be running from source. I'll do that, give it a try & post an update. Thanks.

  1   2   >