[web2py] Pynes notify

2012-09-11 Thread Bruno Rocha
This plugin for Bootstrap looks very nice for response.flash http://pinesframework.org/pnotify/ --

[web2py] web2py 2.0.8 login_next, register_next ignored

2012-09-11 Thread Alexei Vinidiktov
Hello, I have auth.settings.login_next and auth.settings.register_next defined in db.py. Both appear to be ignored. I need the user to go to a specific page after he logs in or registers. In web2py 1.99.7 auth.settings.login_next defined in db.py was respected, auth.settings.register_next wasn'

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-11 Thread Andrew W
Perfect ! Thanks for the quick response. I saw your solution above, but assumed that you had added it to github. All's Good. One more question please (which I asked on web2py slices): How to use auth.wiki with movuca. There was a web2pyslices post in relation to plugin_wiki, and I was won

[web2py] Re: web2py default layout.html

2012-09-11 Thread Andrew W
missing some s for the first "span12"s ? On Wednesday, September 12, 2012 5:42:29 PM UTC+12, Annet wrote: > > Anthony is right, it's the span12 that's causing the problem. I had the > same problem, and solved it by following the bootstrap pattern more > strictly. > > > > > > >

[web2py] Somewhere between 1.97 and 2.0.8 I lost translations.

2012-09-11 Thread Jason Brower
It seems that our production system stoped serving translated versions of our website. Even when our browsers are on the correct settings it doesn't switch to our Finnish translations. Any way I could resolve this? Something you need to know? BR, Jason http://interestid.com --

[web2py] Re: web2py default layout.html

2012-09-11 Thread Annet
Anthony is right, it's the span12 that's causing the problem. I had the same problem, and solved it by following the bootstrap pattern more strictly. Furthermore I defined the css selectors .pad and .pad-vertical and .pad-ho

Re: [web2py] [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-11 Thread ian douglas
http://cdimage.ubuntu.com/daily-live/current/quantal-desktop-amd64.manifest I see lots of mentions to Python 2.7 in the manifest of the desktop edition of Ubuntu 12.10 (beta): libpython2.72.7.3-5ubuntu1 python 2.7.3-0ubuntu5 python2.7 2.7.3-5ubuntu1 python2.7-minimal 2.7.3-5ubunt

[web2py] IS_IN_DB Group by Top Level

2012-09-11 Thread A E
How can I display the top level category name and group the entries that are under it in my form that uses IS_IN_DB For example the category field is top level db.define_table('category', Field('userinfo',db.auth_user,default=auth.user_id, writable=False,readable=False), Field('name', lab

[web2py] Re: IS_IN_DB Group by Top Level

2012-09-11 Thread A E
I was not clear at all I realized: I have 3 tables Category Sub category and Listings Sub Category uses IS_IN_DB form the category table and listings uses IS_IN_DB from the Sub category table In the listings field I would like to display the Top Category then the sub category in the Multiple Se

[web2py] Re: web2py book now free in PDF

2012-09-11 Thread Pankaj Pathak
thanks sir. On Tuesday, June 12, 2012 9:17:46 AM UTC-4, Massimo Di Pierro wrote: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf > > Massimo > --

[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread Anthony
On Tuesday, September 11, 2012 3:59:45 PM UTC-4, martzi wrote: > > FYI : putting all the fields in one table will result to multiple columns > ... > I don't understand the objection -- that's the idea -- let the table have multiple columns instead of moving those columns to other tables. But I'

[web2py] Re: When/how is 'format' used?

2012-09-11 Thread Anthony
> > Three questions: > >1. What's the 'magic' going on that tells the display code for >meetTeams to use the 'format' expression (but not to use it when > displaying >'message')? Does it realize it's a row, and the row knows how to display >using the format? > > When you cr

Re: [web2py] Re: Error in appadmin

2012-09-11 Thread Martin Weissenboeck
Sorry, my mistake! Of course I have tried to find the wrong text in my code three times before asking, but apperently insufficient. Thank you for the hint with the "grep" coomand - it helped to find the error. 2012/9/11 Massimo Di Pierro > Not in web2py. Perhaps in the code you are running? > >

[web2py] Re: response.stream and web2py_component

2012-09-11 Thread Anthony
> > Can you show me how I could modify form_query() to embed JS (if I've > understood your second option correctly) in order to trigger the download? > You're not going to be able to have a single call to form_query both return HTML content and stream a file at the same time -- those are two s

Re: [web2py] Removing labels from forms

2012-09-11 Thread Anthony
> > The proper code I come up with : > > {{{ > for input_elem in form.elements("input[]"): > if input_elem.attributes['_type']=='text': > input_elem["_placeholder"] = YOURPLACEHOLDERTEXT > }}} > > Why not just form.elements('input[type=text]') or

[web2py] Re: Can I have 2 auth tables in a single application?

2012-09-11 Thread Pystar
client requirements not mine, but on 2nd tots I dont know why the registration form for ordinary users and administrations with elevated user rights have to be the same. Am I barking up the wrong tree? or do I have to look at something like auth_membership/groups to solve this? On Wednesday, Se

[web2py] Re: Error deleting picture

2012-09-11 Thread Donatas Burba
By the way I only want that form.process(dbio=False) just validate form, (so I set dbio=False), but what to do in order it would'n create uploaded files? I want to do it manually, because it saves photo in folder '...uploads/biography_{id}.photo_jpg/...' (I have named the form in this way becau

Re: [web2py] Re: web2py default layout.html

2012-09-11 Thread Anthony
This may be the same problem we had with the book app ( https://github.com/mdipierro/web2py-book/commit/774a235b6cb10e66d779716ddf1bb65aac9c53e3). Does it work if you just remove the "span12" class from the id="main" div? Anthony On Tuesday, September 11, 2012 6:07:03 PM UTC-4, dundee wrote: >

[web2py] Re: Can I have 2 auth tables in a single application?

2012-09-11 Thread pbreit
I hope these are client requirements because they sound like terrible ideas. On Tuesday, September 11, 2012 12:58:23 PM UTC-7, Pystar wrote: > > In the application I am developing, I would like to know if I can have 2 > auth tables in it? The reason is that I would like to have ordinary users >

[web2py] Error deleting picture

2012-09-11 Thread Donatas Burba
Using web2py 2.0.8 and submitting form with attached photo file (standard widget) and 'delete' (photo) checked I get such error: Traceback (most recent call last): File "/home/donatas/ProCursus/projects/web2py/gluon/restricted.py", line 209, in restricted exec ccode in environment File

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread lucas
ok, i am working on installing the psycopg2 from source, i got it to compile and it looked like it was installed under the python site_packages, but when i just try to import it into python i get >>> import psycopg2 Traceback (most recent call last): File "", line 1, in File "/usr/lib/pyth

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-11 Thread Bruno Rocha
I did some changes on Movuca, but I still have to solve little issues in order to commit. But I just commited a workarounf for the problem: https://github.com/rochacbruno/Movuca/commit/aa25103e9c37921a34a225b8e82ca0f8634ca831 --

[web2py] Re: bug in 2.0.8

2012-09-11 Thread Matt
Hi Massimo, I've switched to trunk and yes the fields are now being created as expected. As a suggestion could the auto migration have an extra check added to ensure that "upload" columns - if on non filesystem environments like GAE - alway create the equivalent _blob column? Thankfully even t

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-11 Thread Andrew W
Is anyone else using Movuca with web2py version 2.x experiencing this ? I downloaded the latest Movuca and I'm running web2py off trunk. On Monday, September 10, 2012 4:59:08 PM UTC+12, Andrew W wrote: > > Hi Bruno, > I got the same error with movuca, which I downloaded today: > > File "D:\M

[web2py] custom auth clarification

2012-09-11 Thread Dave
I am working on my own external authentication. >From reading the source of gluon.tools and gluon.contrib.login_methods it appears I need a class that implements the following methods to do my own authentication: get_user() login_form() Then in my db.py just do an auth.settings.login_form = [m

Re: [web2py] Re: Best Method to implement a "like" button

2012-09-11 Thread Bruno Rocha
The computation should be compute= lambda row: "%(username)s-%(songname)s-%(playlist_name)s" % row --

Re: [web2py] Re: Best Method to implement a "like" button

2012-09-11 Thread Bruno Rocha
db.define_table('likes', Field('username', 'reference auth_user'), Field('songname', 'reference songs'), Field('playlist_name', 'reference playlist'), Field('unique_key', unique=True, notnull=True, compute= lambda row: "%(username)s-%(songname)s-%(playlist_name)s"), ) Now on any

[web2py] Re: Can I have 2 auth tables in a single application?

2012-09-11 Thread villas
Well it depends what you have in mind. But as you're in a hurry, I've made all the choice for you :) Only have one set of auth tables. Make all the extra fields you need for both users and admin guys. Make different profile forms for them to complete. Make sure they are given membership of

[web2py] Re: Best Method to implement a "like" button

2012-09-11 Thread villas
Depends how you are displaying your list to do the liking and unliking. A few thoughts Make sure your composite index has the field which filters out the most records first. In your controller you may be able to cut out most queries by considering something like this: - Hit the DB once an

Re: [web2py] Re: web2py default layout.html

2012-09-11 Thread Kevin Miller
I tried to fix it but was unsuccessful so I resorted to just making sure that my content does not take up the entire section. I use a width of 95% and that did the trick. I know that this is not the best fixed. I will be looking on it some more. NB: This problem only happens when the columns are N

Re: [web2py] Spaces in URL for static files

2012-09-11 Thread Jonathan Lundell
On 11 Sep 2012, at 2:54 PM, jc wrote: > I have a file "app/static/docs/Report 2008 12.pdf" i.e. it is in a subdir of > static and the filename has spaces. > I use URL('static', 'docs', 'Report 2008 12.pdf') to generate the link. > When I click the link the browser address bar contains > http://l

Re: [web2py] Removing labels from forms

2012-09-11 Thread Richard Vézina
Just a {{{test}}} Richard On Tue, Sep 11, 2012 at 5:55 PM, Richard Vézina wrote: > The proper code I come up with : > > {{{ > for input_elem in form.elements("input[]"): > if input_elem.attributes['_type']=='text': > input_elem["_placeholder"

Re: [web2py] Removing labels from forms

2012-09-11 Thread Richard Vézina
The proper code I come up with : {{{ for input_elem in form.elements("input[]"): if input_elem.attributes['_type']=='text': input_elem["_placeholder"] = YOURPLACEHOLDERTEXT }}} Richard On Tue, Sep 11, 2012 at 4:08 PM, Richard Vézina wrote: >

[web2py] Spaces in URL for static files

2012-09-11 Thread jc
Hello, I have a file "app/static/docs/Report 2008 12.pdf" i.e. it is in a subdir of static and the filename has spaces. I use URL('static', 'docs', 'Report 2008 12.pdf') to generate the link. When I click the link the browser address bar contains http://localhost:8000/static/docs/Report%202008%2

[web2py] Re: SQLFORM.grid with args: customizing the Add form

2012-09-11 Thread villas
Take a look at this: db.dog._common_filter = lambda query: db.dog.owner.created_by == request.args(0) Maybe it could help... Regards, D --

[web2py] Re: How to display Users who are not admins

2012-09-11 Thread Massimo Di Pierro
Try: rows = db(~db.auth_user.id.belongs(db(db.auth_membership.group_id==auth.id_group('admins'))._select(db.auth_membership.user_id,distinct=True))).select(db.auth_user.ALL) On Tuesday, 11 September 2012 12:55:31 UTC-5, Cler wrote: > > How to display the members who are not admins ( They dont be

[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread villas
Well it seems the test worked - I guess that's what happens when the DB enforces 'unique'. You'd have to put that in a try except or something. Anthony suggested putting all the fields in one table. That's what you would usually do with a 1-1 relationship. Are you sure you cannot rename som

[web2py] Re: SQLFORM.grid with args: customizing the Add form

2012-09-11 Thread Niphlod
1st: "args" in grids is only the arguments the grid should not consider. therefore if you use request.args(0) to identify the id of the record, grid(args=request.args(0)) is what you need to call. 2nd: prefetch the default author and set it as a default field for the table before returning the g

[web2py] Displaying all users who do not belong to a particular group (Admin)

2012-09-11 Thread Cler
How to display all users who do not belong to a particular group (Admin)? We should display only the names of people who are not admins --

[web2py] How to display Users who are not admins

2012-09-11 Thread Cler
How to display the members who are not admins ( They dont belong to the group admins) --

[web2py] Ajax Live Search Issue

2012-09-11 Thread Nick
I used this slice: http://www.web2pyslices.com/slice/show/1378/ajax-live-search-auto-complete to do a search on one of my databases. My question is how to pass that value back to my app. For instance, I have a list of data that I show to the user: controllers: def index(): example_list = [

[web2py] represent list:reference

2012-09-11 Thread Pepe Araya
Hello, I need to display the format value of the referenced table in a list:reference and not the list of ids. I have these tables: db.define_table('personas', Field('nombres'), Field('apellidos'), format='%(nombres)s %(apellidos)s') db.define_table('publicaciones', Field('titulo'), Field('

[web2py] Re: Best Method to implement a "like" button

2012-09-11 Thread Mark Li
I went with the unique composite field index method (unique across 3 fields, not just 2), with my database as follows: db.define_table('likes', Field('username', 'reference auth_user'), Field('songname', 'reference songs'), Field('playlist_name', 'reference playlist')) if auth.is_log

[web2py] Re: response.stream and web2py_component

2012-09-11 Thread maverick
Anthony, The second option sounds more like what I want to do. And yes I don't want to load the file itself into the component DIV. But as I stated earlier, I'm trying to do two things from within the same controller form_query(). To summarize, (with reference to the code below) what I'm tryin

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
I will test and provide further tomorrow. Thanks for quality involment. W dniu wtorek, 11 września 2012 21:37:00 UTC+2 użytkownik Jonathan Lundell napisał: > > On 11 Sep 2012, at 12:32 PM, Marek Mollin > > wrote: > > Checked again with restarting entire server and it seems fine. > > Redirects to

[web2py] SQLFORM.grid with args: customizing the Add form

2012-09-11 Thread Vincent
I'm using SQLFORM.grid a lot and it is extremely valuable. I am in a position where I want to use request.args with a grid and I am unsure what the right approach is. Let's say my db.py model is: db.define_table('person', Field('firstname'), Field('lastname'), for

[web2py] Re: problem adding members to group

2012-09-11 Thread greaneym
Got farther but still stuck. I got locked out of the database and am trying to get back in with "admin". cd to directory that contains "web2py.py" python web2py.py -S appname >>> >>> db = DAL('sqlite://storage.sqlite', auto_import=True) >>> print db.tables ['auth_cas', 'auth_event', 'auth_group

[web2py] When/how is 'format' used?

2012-09-11 Thread MichaelF
I have the following parent-child: db.define_table('Institution', Field('Institution_name', 'string', length=60, required=True, unique=True), format='%(Institution_name)s') db.define_table('Team', Field('Institution', db.Institut

Re: [web2py] Removing labels from forms

2012-09-11 Thread Richard Vézina
input is a reserved word... Richard On Fri, Aug 31, 2012 at 1:01 PM, Alec Taylor wrote: > Perfect, thanks to you both :) > > -- > > > > --

Re: [web2py] Re: Web2py. for a minimalist app, it feels bloated. Do it I need it?

2012-09-11 Thread David Marko
+1 --

[web2py] Re: Display Image in text

2012-09-11 Thread BlueShadow
thanks Massimo. that works. Is it also possible to make the image float:left or right So the text flowes around the image. I tried adding float:left; to the _style but it doesnt have any effect. On Tuesday, September 11, 2012 8:50:56 PM UTC+2, Massimo Di Pierro wrote: > > You should be able to do

web2py@googlegroups.com

2012-09-11 Thread howesc
Don_x, i would recommend that your break your problem down into small chunksyou listed several bits and pieces that you are having trouble with. i suggest you look to fix them one at a time. can you: - more clearly state your requirements - show/tell exactly what is going wrong, includin

[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
Thanks for the reply. But db.executesql('create unique index idx_owner on bodypart(owner)') returned the below error, and still didn't solve the problem. Traceback (most recent call last): File "", line 1, in File "/home/martin/Documents/web2py2/gluon/dal.py", line 7234, in executesql a

[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
FYI : putting all the fields in one table will result to multiple columns ... On Tuesday, September 11, 2012 5:31:37 PM UTC+2, Anthony wrote: > > Why do you want a one-to-one relation? Can't you just put all the fields > in one table? > > Anthony > > On Tuesday, September 11, 2012 9:23:16 AM UTC

[web2py] Can I have 2 auth tables in a single application?

2012-09-11 Thread Pystar
In the application I am developing, I would like to know if I can have 2 auth tables in it? The reason is that I would like to have ordinary users that would use the auth_user table with some extra fields added and then an admin table with some unique fields. How do I go about implementing some

[web2py] Re: What data should be private (for security) in a standard web2py installation?

2012-09-11 Thread Niphlod
- the dal URI if it contains logins/password/db that is not localhost - eventually janrain key is to be kept private as well. PS: Auth.settings_hmac_key in modern scaffolding apps is not written "plainly": it is replaced by Auth.get_or_create_key() that reads from private/auth.key or it creates a

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Jonathan Lundell
On 11 Sep 2012, at 12:32 PM, Marek Mollin wrote: > Checked again with restarting entire server and it seems fine. > > Redirects to admin just fine: > small problem starts when you enter particular's app appadmin it goes under > url: admin.myapp.com/myapp/appadmin Post the router, please. I'll e

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
Checked again with restarting entire server and it seems fine. Redirects to admin just fine: small problem starts when you enter particular's app appadmin it goes under url: admin.myapp.com/myapp/appadmin and css goes a bit wierd: http://i.imgur.com/0eOYe.png W dniu wtorek, 11 września 2012 21

Re: [web2py] Re: Web2py. for a minimalist app, it feels bloated. Do it I need it?

2012-09-11 Thread Shawn McElroy
yes that is true as well. but to me at least, using the gremlin syntax seems a lot more intuitive for crud operations on a graph. On Tue, Sep 11, 2012 at 11:13 AM, Andrew W wrote: > With its SQL http://code.google.com/p/orient/wiki/GraphDatabase#SQL it > sounds like a candidate for a straight da

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
It fires up default app. W dniu wtorek, 11 września 2012 21:15:50 UTC+2 użytkownik Jonathan Lundell napisał: > > On 11 Sep 2012, at 12:04 PM, Marek Mollin > > wrote: > > "We be rollin" ;] > It works perfectly so far. Both admin and appadmin. > Relocating admin doesnt work but its no big deal I g

[web2py] What data should be private (for security) in a standard web2py installation?

2012-09-11 Thread monotasker
I'm using github for open-source development of some web2py apps and want to make sure I'm not exposing any data that would be a security risk. As far as I can tell, the sensitive pieces of data in a standard app would be: - email account information (by default in db.py) - any recaptcha keys (b

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Jonathan Lundell
On 11 Sep 2012, at 12:04 PM, Marek Mollin wrote: > "We be rollin" ;] > It works perfectly so far. Both admin and appadmin. > Relocating admin doesnt work but its no big deal I guess. What happens when you relocate admin? > > Thanks a million! > > W dniu wtorek, 11 września 2012 18:36:12 UTC+2

[web2py] Do you value Matplotlib? Read this!

2012-09-11 Thread Massimo Di Pierro
http://numfocus.org/johnhunter/ John Hunter, author of Matplotlib, founding board member of NumFOCUS, husband to Miriam, and father to three daughters: Clara, Ava, and Rahel, was diagnosed with cancer in late July 2012 after returning from his keynote address at SciPy in Austin, TX. He passed

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
"We be rollin" ;] It works perfectly so far. Both admin and appadmin. Relocating admin doesnt work but its no big deal I guess. Thanks a million! W dniu wtorek, 11 września 2012 18:36:12 UTC+2 użytkownik Jonathan Lundell napisał: > > On 10 Sep 2012, at 9:02 AM, Marek Mollin > > wrote: > > So i

[web2py] Re: Error in appadmin

2012-09-11 Thread Massimo Di Pierro
Not in web2py. Perhaps in the code you are running? $ grep '%(first_name)' gluon/*.py gluon/tools.py:user_identifier = '%(first_name)s' gluon/tools.py:return '%(first_name)s %(last_name)s' % user gluon/tools.py:format='%(first_name)s %(last_n

Re: [web2py] [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-11 Thread Massimo Di Pierro
yes. everybody is doing this right but Arch. python3 has to be available but has to treated as a different language. On Tuesday, 11 September 2012 12:09:19 UTC-5, LightDot wrote: > > I have been running python and python3 packages side by side on Fedora > ever since python 3 came out. I'm sure a

[web2py] Re: Display Image in text

2012-09-11 Thread Massimo Di Pierro
You should be able to do: {{ if Article.InTextImage.thumb: src = URL('download',args=Article.InTextImage.thumb) content = Article.Content.replace('<>',IMG(_src=src,_style='display:block;').xml()) else: content = Article.Content.replace('<>','') pass =XML(content, sanitize=True) # saniti

[web2py] Error in appadmin

2012-09-11 Thread Martin Weissenboeck
I wanted to see a row of a table and I started the database administration tool. I get the following snapshot. There is a trailing "%", but no "s" - why? self.label '%(last_name)s %(first_name)%' Error snapshot [image: help] ('first_name') inspect attributes Frames - *File D:\dropbox\I

Re: [web2py] Re: Web2py. for a minimalist app, it feels bloated. Do it I need it?

2012-09-11 Thread Andrew W
With its SQL http://code.google.com/p/orient/wiki/GraphDatabase#SQL it sounds like a candidate for a straight dal database adapter. A graph database sounds interesting.. --

Re: [web2py] [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-11 Thread LightDot
I have been running python and python3 packages side by side on Fedora ever since python 3 came out. I'm sure all bigger distros have this taken care of in a similar way... I was curious so I took a look: - Debian has 2.x as 'python' and 3.x as 'python3' - Fedora has 2.x as 'python' and 3.x as '

[web2py] Re: Display Image in text

2012-09-11 Thread BlueShadow
It does I display it by this line to be exact: {{=XML(Artical.Content)}} On Tuesday, September 11, 2012 6:49:40 PM UTC+2, Massimo Di Pierro wrote: > > It depends. Does content contain HTML? > > On Tuesday, 11 September 2012 11:36:02 UTC-5, BlueShadow wrote: >> >> So what is the right way to do it?

[web2py] Re: Display Image in text

2012-09-11 Thread Massimo Di Pierro
It depends. Does content contain HTML? On Tuesday, 11 September 2012 11:36:02 UTC-5, BlueShadow wrote: > > So what is the right way to do it? > > On Tuesday, September 11, 2012 6:15:29 PM UTC+2, Massimo Di Pierro wrote: >> >> You should not do it that way because the value of content would be >>

[web2py] Re: short term roadmap

2012-09-11 Thread Massimo Di Pierro
I think the first thing to to would be to create a module that implements the features we want. The logic should not be in the admin actions. I think we need a general purpose way to call scripts from apps (in this case admin) that run in background and communicate with them. I am working on t

[web2py] Re: short term roadmap

2012-09-11 Thread Massimo Di Pierro
+1 On Tuesday, 11 September 2012 11:18:00 UTC-5, Andrew wrote: > > For 1 & 2, if the only remote repository type being considered is Git, > then using hg-git is probably ideal since it'll support both hg and git > locally and working with remote git repo's. > > I would like to work on this. Doe

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread LightDot
About python-psycopg2 - I'd rebuild the source rpm with your 9.1 posgresql-devel, just in case. RHEL/CentOS 6 originally ships with postgres 8.4.x, so this might be an issue. Usual caveats apply - don't (re)build rpm packages as root, etc. Regards, Ales On Tuesday, September 11, 2012 6:11:43 P

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Jonathan Lundell
On 10 Sep 2012, at 9:02 AM, Marek Mollin wrote: > So i have cut down the router to bare minimum, just to check this admin issue. > I now have: > > routers = dict( > BASE = dict( > domains = { > 'myapp.com' : 'myapp1', > 'test.myapp.com' : 'myapp2', > } > ), >

[web2py] Re: Display Image in text

2012-09-11 Thread BlueShadow
So what is the right way to do it? On Tuesday, September 11, 2012 6:15:29 PM UTC+2, Massimo Di Pierro wrote: > > You should not do it that way because the value of content would be > escaped. > > --

[web2py] Re: short term roadmap

2012-09-11 Thread Andrew
For 1 & 2, if the only remote repository type being considered is Git, then using hg-git is probably ideal since it'll support both hg and git locally and working with remote git repo's. I would like to work on this. Does anyone else have interest / spare cycles to help implement this support?

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread Massimo Di Pierro
print db._adapter.driver_name but psycopg2 always gets priority over pg8000 unless otherwise specified in driver_args. On Tuesday, 11 September 2012 11:11:43 UTC-5, lucas wrote: > > > > On Tuesday, September 11, 2012 10:35:02 AM UTC-4, Massimo Di Pierro wrote: >> >> Some problems have been repor

[web2py] Re: Is 'second option' for one-many available for many-many?

2012-09-11 Thread Massimo Di Pierro
Move 2.0.8 or - better - the nightly build. On Tuesday, 11 September 2012 11:06:11 UTC-5, MichaelF wrote: > > Yikes! I *think* I have the same (or functionally the same), but maybe > not. Might it be that I'm using an out-of-date version? Here's what I'm > using: > > web2py™(1, 99, 7, datetime.d

[web2py] Re: Display Image in text

2012-09-11 Thread Massimo Di Pierro
You should not do it that way because the value of content would be escaped. On Tuesday, 11 September 2012 10:53:18 UTC-5, BlueShadow wrote: > > Hi I like to have an Image Displayed within the Content of an Article. The > Content ist stored in a db table. > Up till now I simply displayed the cont

[web2py] Re: "MENU helper" and "Server-side DOM" work together?

2012-09-11 Thread Massimo Di Pierro
No good reason. The logic can be moved in the constructor but need to be tested to make sure nothing breaks. On Tuesday, 11 September 2012 10:29:02 UTC-5, Anthony wrote: > > Looks like MENU doesn't generate a DOM structure until its .serialize() > method is called. You could do: > > mmenu = mmen

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread lucas
On Tuesday, September 11, 2012 10:35:02 AM UTC-4, Massimo Di Pierro wrote: > > Some problems have been reported with pg8000. Can you reproduce the errors > with psycopg2. yes, i can reinstall the psycopg2 rpm package. how do you specify and ensure that web2py is using that driver in the DAL?

[web2py] Re: Is 'second option' for one-many available for many-many?

2012-09-11 Thread MichaelF
Yikes! I *think* I have the same (or functionally the same), but maybe not. Might it be that I'm using an out-of-date version? Here's what I'm using: web2py™(1, 99, 7, datetime.datetime(2012, 3, 4, 22, 12, 8), 'stable')PythonPython 2.5.4: C:\Program Files (x86)\web2py\web2py_no_console.exe I as

[web2py] Display Image in text

2012-09-11 Thread BlueShadow
Hi I like to have an Image Displayed within the Content of an Article. The Content ist stored in a db table. Up till now I simply displayed the content by this line {{Article.Content}} I thought an image with text flowing around the image would freshen up the article. I tried the following I put

[web2py] Re: Is 'second option' for one-many available for many-many?

2012-09-11 Thread Massimo Di Pierro
I cannot reproduce the problem. This works for me: db=DAL() db.define_table('Meet',Field('name')) db.define_table('Team',Field('name')) db.define_table('Participant_team', Field('Meet',db.Meet), Field('Team',db.Team)) a=db.Meet.insert(name='here') b=db.Team.insert(

[web2py] Re: Is 'second option' for one-many available for many-many?

2012-09-11 Thread MichaelF
Thanks; I think I have it. The SQL is: SELECT Meet.*, Team.* FROM Meet INNER JOIN Participant_team ON Meet.id = Participant_team.Meet INNER JOIN Team ON Participant_team.Team = Team.id; My web2py below implements that. On Tuesday, September 11, 2012 9:25:01 AM UTC-6, MichaelF wrote: >

Re: [web2py] Re: Is 'second option' for one-many available for many-many?

2012-09-11 Thread Richard Vézina
That look right... There ways to write request in web2py when it comes to join. They will not generate the same SQL syntax for example : db((db.table1.field==something)&(db.table2.field==something)).select(...) = Old SQL SELECT ... FROM table1, table2 WHERE ... When you use join in web2py, I gu

[web2py] Re: problem adding members to group

2012-09-11 Thread Massimo Di Pierro
I do not understand this line: python web2py.py -S app -M -N -R applications/myapp -A -R should specify a script, not an app -A should be followed by command line arguments for the script but you do not have any This is probably not the cause of your problem anyway. On Tuesday, 11 September

[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread Anthony
Why do you want a one-to-one relation? Can't you just put all the fields in one table? Anthony On Tuesday, September 11, 2012 9:23:16 AM UTC-4, martzi wrote: > > Unique = True, has probably no effect. see below. > ... > >>> db = DAL('sqlite://storage.db') > >>> person = db.define_table('person'

[web2py] Re: web2py default layout.html

2012-09-11 Thread Massimo Di Pierro
Not intended. Can you help us fix it? On Tuesday, 11 September 2012 10:11:35 UTC-5, dundee wrote: > > > Hi All, > > I notice that when I use the layout.html, even though the div with > class="container" and the Section with id="main" are the same size, the > Section is pushed to the right. > I u

[web2py] Re: Trying to reproduce Ex. in manual, sec. 6.21.1 (inner joins)

2012-09-11 Thread Massimo Di Pierro
Non need. It is now supported as you expected it. On Tuesday, 11 September 2012 09:52:22 UTC-5, MichaelF wrote: > > Great; I appreciate it. > > Do you still want me to open a ticket with a suggestion for an enhancement? > > Regards, > Michael > > On Monday, September 10, 2012 5:29:12 PM UTC-6, Mas

[web2py] Re: "MENU helper" and "Server-side DOM" work together?

2012-09-11 Thread Anthony
Looks like MENU doesn't generate a DOM structure until its .serialize() method is called. You could do: mmenu = mmenu.serialize(mmenu.data) mmenu.elements('a') I'm not sure why it was done this way as opposed to generating the DOM upon initialization. Massimo? Anthony On Tuesday, September 11

[web2py] Re: "MENU helper" and "Server-side DOM" work together?

2012-09-11 Thread Massimo Di Pierro
I added components yet MENU is a little different then other helpers. On Tuesday, 11 September 2012 09:49:59 UTC-5, amphisia pui wrote: > > Hi to all > > I want to use the html helper MENU to have in the page footer a menu > totally exploded without sliding items. > I changed the css classes and

Re: [web2py] compute fields do not show up in SQLFORM view form

2012-09-11 Thread Massimo Di Pierro
I think so. On Tuesday, 11 September 2012 09:42:05 UTC-5, rochacbruno wrote: > > for that cases shouldn't use _before_insert and _before_update triggers? --

[web2py] Re: Is 'second option' for one-many available for many-many?

2012-09-11 Thread MichaelF
I should have added that I can get the same effect with this: # In this example, Meet and Team are being connected through Participant_team teamStaff = db(db.Meet.id == request.args(1)).select( db.Meet.ALL, db.Team.ALL, join = [db.Participant_tea

[web2py] Translation plural

2012-09-11 Thread Francisco Costa
How to use the plural featurein tranlation T.plural ? --

[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread villas
Add this line as a test: db.executesql('create unique index idx_owner on bodypart(owner)') to your code like this: db = DAL('sqlite://storage.db') person = db.define_table('person', Field('name')) bodypart = db.define_table('bodypart', Field('name'), Field('owner', 'reference person', unique=Tr

[web2py] Re: problem adding members to group

2012-09-11 Thread greaneym
I see on the groups that I might need to run from the source dist instead of web2py.app since I am on a mac, so I'll try that first. On Tuesday, September 11, 2012 9:48:48 AM UTC-5, greaneym wrote: > > Dear all, > > I'm testing the pos plugin and have it mostly set up, but I'm stuck. I had > co

Re: [web2py] Is 'second option' for one-many available for many-many?

2012-09-11 Thread Richard Vézina
left join on the linking table and an other left join on the other table?? Would you sent a example in SQL of you complexe request, we could help you translate it into web2py. Richard On Tue, Sep 11, 2012 at 11:04 AM, MichaelF wrote: > Section 6.21.1 in the manual talks about an alternative

  1   2   >