[web2py] Re: Unable to compile application with dynamic {{include ...}} directives

2011-01-17 Thread cjrh
On Jan 18, 2:13 am, Massimo Di Pierro wrote: > this is not possible because includes and extends must be resolved > before compilation, not at runtime I have been thinking about this for a while. In principle, it should be possible to have the compiled version be able to read, at runtime, the sc

[web2py] Re: Recommended Payment Gateway (besides PayPal)

2011-01-17 Thread cjrh
Google Checkout is not supported in South Africa :( Anything else?

Re: [web2py] request.vars question

2011-01-17 Thread Johann Spies
Hallo Jonathan, session.flash = URL('list_records', vars=... (same as above)) > > ...and see what that shows you. That is, see what URL is generating before > it goes through the redirection. > > Something to consider (not necessarily having to do with the disappearing > items) is that the encodin

[web2py] Re: regarding social networking...

2011-01-17 Thread pbreit
Check out Micromobs.

Re: [web2py] social network idea

2011-01-17 Thread Tom Atkins
http://pinboard.in gives me a list of people to check out based on their bookmarking history. I don't know the details of the algorithm and there's no flexibility in refining the recommendations but I've found some interesting people to add to my 'network'. You can only see the username of the per

[web2py] Re: The first code example of the CRUD Methods section of the online web2py book

2011-01-17 Thread AW
Hi, Massimo. Thanks for your reply. My code: In the model: db = DAL('sqlite://storage.sqlite') db.define_table('person', Field('name', requires=IS_NOT_EMPTY())) In the controller: def people(): form = crud.create(db.person, next=URL('index'), message=T("record created")) persons = crud.

Re: [web2py] social network idea

2011-01-17 Thread pbreit
With delicious possibly going away there could be an opportunity. Just add the distance component.

[web2py] Re: SQLFORM and read-only references

2011-01-17 Thread howesc
it seems that upon further testing this is not a problem. i don't know what i was doing when this showed up. sorry for the noise. cfh

[web2py] Re: doesn't represents in a string format

2011-01-17 Thread howesc
nope, i did a test and confirmed that this behavior is the same for older and newer versions of web2py. so to get the name field from the referenced table to show, you need to add a represent parameter to your field construction: db.define_table('stuff', Field('name', 'string', notnull=True

Re: [web2py] social network idea

2011-01-17 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, This discussion is in perfect timing for me. I'm coming back to this community and still I'm learning the basics, but I have already thought some project to make in order to learn web2py that are similar with this idea. I would talk about this pro

Re: [web2py] Re: Testing the new router

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 6:03 PM, Matt wrote: > > As it turns out I'd mistakenly left a handler in my app.yaml that was > causing the problem. > > Really sorry to have wasted your time on this. > > Otherwise the new routing code seems to be working really well. Much > simpler which is fantastic! Don

[web2py] Re: account for each user

2011-01-17 Thread Rick
I found that this line is the error-prone one: records = db(auth.settings.table_user==auth.user).select(db.day.theauth, distinct=True, orderby=db.day.thedate) ...I tested the next version too, but it also gave an error: records = db(db.day.theauth==auth.user).select(db.day.ALL, orderby=db.day.theda

[web2py] Re: web2py tutorial at PyCon 2011 - important

2011-01-17 Thread Anthony
Note, the PyCon early bird prices have been extended to Jan. 25, so it's not too late to get the lower rates. But apparently it's filling up fast (the conference overall, not necessarily the web2py tutorial), so don't wait. http://us.pycon.org/2011/blog/2011/01/17/pycon-early-bird-prices-extend

[web2py] Need web2py developer/consultant

2011-01-17 Thread Anand Vaidya
My friend needs a web2py proficient consultant/dev to handle the web2py portion of the project. The person must be located in Singapore (or maybe Malaysia and travel to SG) to participate in discussions etc. If you are interested please contact Dennis directly: yarden...@gmail.com

[web2py] Need web2py developer/consultant

2011-01-17 Thread Anand Vaidya
My friend needs a web2py developer/consultant for a project. The person must be located in Singapore to participate in their brainstorming etc. (and since I am on the move, I am unable to do it) Any one interested, please contact Daniel by email: yarden...@gmail.com Regards Anand

[web2py] Re: Testing the new router

2011-01-17 Thread Matt
Hi Jonathan, As it turns out I'd mistakenly left a handler in my app.yaml that was causing the problem. Really sorry to have wasted your time on this. Otherwise the new routing code seems to be working really well. Much simpler which is fantastic! Thanks again for your help, Matt On Jan 18, 1:

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Michael Toomim
1.74.5. I will upgrade when I can reproduce the problem locally. On Jan 17, 5:13 pm, Massimo Di Pierro wrote: > How old web2py? We have had bugs in the past that may cause your > problem. > You should try upgrade. > > Massimo > > On Jan 17, 6:58 pm, Michael Toomim wrote: > > > > > The problem f

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Massimo Di Pierro
How old web2py? We have had bugs in the past that may cause your problem. You should try upgrade. Massimo On Jan 17, 6:58 pm, Michael Toomim wrote: > The problem for me is that this occurs on a webapp used by mechanical > turk, and it fails when I have hundreds of mechanical turkers using my >

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Michael Toomim
The problem for me is that this occurs on a webapp used by mechanical turk, and it fails when I have hundreds of mechanical turkers using my app... which only happens when I pay them hundreds of dollars. So it's hard to reproduce right now without hundreds of dollars. I am excited to try using VP

[web2py] Re: upload widgets problem with nullable compound validators

2011-01-17 Thread kenji4569
Thanks for your support! Maybe the adopted one is much consistent. On 1月18日, 午前1:21, Massimo Di Pierro wrote: > "IS_NULL_OR([IS_XXX(..), IS_YYY(..), ..])" > > in trunk now. Good suggestion although I think an internal refactoring > is in order. > > On Jan 16, 10:57 pm, kenji4569 wrote: > > > > >

Re: [web2py] Re: Testing the new router

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 9:38 AM, Martín Mulone wrote: > return LOAD('plugin_comments','comments.load',args=[tablename, record_id, > page],ajax=True) > File > "/home/martin/Repositorios/google_appengine/web2py/gluon/compileapp.py", line > 145, in __call__ > extension=extension) > File "/home/

[web2py] Re: Problems with the list Appliances in the Web2py site

2011-01-17 Thread Massimo Di Pierro
oops. sorry fixed. My fault. I Changed something and saved incomplete. On Jan 17, 4:58 pm, Offray Vladimir Luna Cárdenas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > When I try to load some of the pages of the appliances I get messages > like this on several of them:

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Massimo Di Pierro
Can you share any more info you have about the errors? Does it happen with every action? Is there one in particular? What does it do? Do you use session? Do you use cache? Can you show us any code? Can you build a minimalist app to reproduce it? Are there a minimum number of steps to reproduce it?

[web2py] Re: Unable to compile application with dynamic {{include ...}} directives

2011-01-17 Thread Massimo Di Pierro
this is not possible because includes and extends must be resolved before compilation, not at runtime On Jan 17, 4:44 pm, "anton.mue...@googlemail.com" wrote: > Hello Everybody, > > when trying to compile an application an error occurs, which seems to > be caused by dynamic arguments of {{include

[web2py] Re: Typo in compile_app() function in admin/controllers/default.py

2011-01-17 Thread Massimo Di Pierro
thanks. fixing in trunk. On Jan 17, 4:02 pm, "anton.mue...@googlemail.com" wrote: > Hello everybody, > > a wrongly set closing bracket seems to prevent output of the code in > case of failed compilation of an application. > > In the function compile_app() in the file applications/admin/ > contro

[web2py] Re: social network idea

2011-01-17 Thread Massimo Di Pierro
What I proposed allows you post links and organize them. Why should the social network handle content? I can post a video on viemo,bookmark it with my network and find out who else is interested in it. I like the idea of being able to handle groups of users though. Facebook does it. In a sense a g

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Michael Toomim
I have pool_size=100, and get the error. On Jan 17, 12:20 pm, Massimo Di Pierro wrote: > You should really have > > db = DAL('postgres://name:password@localhost:5432/db',pool_size=20) > > The reason is that client-server databases may set a max to number of > open connections and it takes time to

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread VP
Thanks. I fixed this. The performance seems to be a little better (requests/second), but the error is still there. On Jan 17, 2:20 pm, Massimo Di Pierro wrote: > You should really have > > db = DAL('postgres://name:password@localhost:5432/db',pool_size=20) > > The reason is that client-server

[web2py] Problems with the list Appliances in the Web2py site

2011-01-17 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, When I try to load some of the pages of the appliances I get messages like this on several of them: http://web2py.com/appliances/default/show/31 Internal error Ticket issued: appliances/190.157.197.120.2011-01-17.23-02-20.20e32423-67f9-4fa2

Re: [web2py] Re: Is there a way to remove application name from URL()?

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 1:06 PM, Bob wrote: > > In attempt to get some response I'll try to clarify/simplify my > question. > > After rewriting with routes.py I have my app accessible as: > > http://127.0.0.1/ > > But all the internal links, created with the URL() function come as: > > http://127.

[web2py] Unable to compile application with dynamic {{include ...}} directives

2011-01-17 Thread anton.mue...@googlemail.com
Hello Everybody, when trying to compile an application an error occurs, which seems to be caused by dynamic arguments of {{include ...}} statements within a view template e.g.: {{if session.language!=None:}} {{include 'pageheader_%s.html' % session.language}} {{else:}} {{include 'pageheader_%s.ht

[web2py] Re: social network idea

2011-01-17 Thread mart
How about something for the "tinkers"? Something like one of those "super malls" but for social networking. A place as varied in its members as it is in content? For example, assuming that life is more than just being about sharing pictures and one-liners on somebody's wall (not that there's anyth

[web2py] Typo in compile_app() function in admin/controllers/default.py

2011-01-17 Thread anton.mue...@googlemail.com
Hello everybody, a wrongly set closing bracket seems to prevent output of the code in case of failed compilation of an application. In the function compile_app() in the file applications/admin/ controllers/default.py, line 266/267 truncate the function T(...) after 'app:'), and let CODE(c) be an

[web2py] Re: TAG name and XML: maybe a solution?

2011-01-17 Thread carlo
Massimo, it works. I will post a link to my web2py app which converts Excel worksheets in xml files as soon as published. Now I am just curious to look into your changes in html.py..Thanks carlo On 17 Gen, 17:33, Massimo Di Pierro wrote: > check trunk, please. I did it but a little differently.

[web2py] Re: doesn't represents in a string format

2011-01-17 Thread Massimo Di Pierro
If there was a change of behavior can you please post code that has changed behavior? If this happened was a bug not intentional. There was a change of behavior in appadmin and that was intentional. On Jan 17, 3:07 pm, howesc wrote: > with the latest version of web2py i have found that you have t

[web2py] Re: social network idea

2011-01-17 Thread Massimo Di Pierro
I agree this does not address your issue. On Jan 17, 2:44 pm, mart wrote: > I am mostly thinking of the kids and parents' paranoia (like > mine ;) ), where they need to start with something that is like what > everyone else is doing, but safely and securely... I still think that > the younger cro

Re: [web2py] Re: Is there a way to remove application name from URL()?

2011-01-17 Thread David J.
The easy way is to use "init" as your application name; It uses that by default. HTH. On 1/17/11 4:11 PM, howesc wrote: i'm pretty sure there is a section in the book that covers this topic exactly. there is also new versions of routing since i last wrote this. anyhow, my routes info: r

[web2py] Re: Recommended Payment Gateway (besides PayPal)

2011-01-17 Thread Massimo Di Pierro
with and without. On Jan 17, 2:35 pm, Jason Brower wrote: > But this is only going to work in GAE is that correct? > > On 01/17/2011 06:23 PM, Massimo Di Pierro wrote: > > > > > > > > >http://web2py.appspot.com/plugin_checkout/default/checkout > > > On Jan 17, 2:34 am, cjrh  wrote: > >> I am look

[web2py] Re: Is there a way to remove application name from URL()?

2011-01-17 Thread howesc
i'm pretty sure there is a section in the book that covers this topic exactly. there is also new versions of routing since i last wrote this. anyhow, my routes info: routes_in = (('/admin(?P.*)', '/admin$f' ), #make the admin app work ('/','/ec'), #/ goes to the ec app

[web2py] Re: doesn't represents in a string format

2011-01-17 Thread howesc
with the latest version of web2py i have found that you have to use "represent" on the field as well. see my post here: https://groups.google.com/d/topic/web2py/dnqKwf9Zxv0/discussion i think it may be a bug though i'm not sure if the behavior is correct or not. cfh

[web2py] Re: Is there a way to remove application name from URL()?

2011-01-17 Thread Bob
In attempt to get some response I'll try to clarify/simplify my question. After rewriting with routes.py I have my app accessible as: http://127.0.0.1/ But all the internal links, created with the URL() function come as: http://127.0.0.1/myapp/ And obviously they don't work. Is there no way t

Re: [web2py] Re: Plugin comments

2011-01-17 Thread Anthony
This would be fantastic. 'plugins' and 'applications' are obviously well-defined, but I wonder if 'snippets', 'tips', and 'recipes' are sufficiently distinct to warrant separate categories (i.e., it might be difficult to decide if something is a snippet, tip, or recipe, and the user looking f

[web2py] Schema migration to GAE / Creating a Test Suite

2011-01-17 Thread johntynan
I have a web2py app that has been running very well on Google App Engine (which also contains actual client's data). However, when I first deployed this app, I did not realize that in order to backup and synchronize the data, I needed to include a modified_on and uuid field on all my models. I ju

Re: [web2py] Basic Python ignorance? simplejson throwing "TypeError("key " + repr(key) + " is not a string")"

2011-01-17 Thread Jonathan Lundell
Your key is a tuple, which is ok in Python but not in JS, I think. On Jan 17, 2011, at 11:41 AM, Lorin Rivers wrote: > No doubt this is my base Python ignorance being the problem. > > I've made some progress on my pivot problem, using this recipe >

[web2py] Re: social network idea

2011-01-17 Thread mart
I am mostly thinking of the kids and parents' paranoia (like mine ;) ), where they need to start with something that is like what everyone else is doing, but safely and securely... I still think that the younger crowd are overlooked and excluded from the good stuff (and they do get the "good stuff"

Re: [web2py] Re: Recommended Payment Gateway (besides PayPal)

2011-01-17 Thread Jason Brower
But this is only going to work in GAE is that correct? On 01/17/2011 06:23 PM, Massimo Di Pierro wrote: http://web2py.appspot.com/plugin_checkout/default/checkout On Jan 17, 2:34 am, cjrh wrote: I am looking for recommendations for payment gateways.I already know about PayPal, and Authori

[web2py] Re: Table of Contents for plugin_wiki pages

2011-01-17 Thread blackthorne
Thank you, you made my code useless :) Anyway, have you thought about using something like this to feed a search engine? what about the soup.prettify to make the code well indented? Thanks On Jan 17, 4:25 pm, Massimo Di Pierro wrote: > http://code.google.com/p/samaxesjs/wiki/TableOfContentsPlug

Re: [web2py] Re: Plugin comments

2011-01-17 Thread Martín Mulone
I'm thinking to modified the exibhition app. With little improve we can adapt it. 2011/1/17 Massimo Di Pierro > It would be great is somebody could improve the appliance app to > handle plugin. Here is the source: > > http://www.web2py.com/appliances/static/web2py.app.appliances.w2p > > Massimo

[web2py] Janrain Basic limited to 2500 users

2011-01-17 Thread Anthony
I'm not sure if this is a new limitation, but I just noticed that the free "Basic" Janrain service is limited to 2500 registered users ( http://www.janrain.com/products/engage/get-janrain-engage). Since the book is pushing Janrain as the easiest way to incorporate OpenID and OAuth ( http://www.we

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Massimo Di Pierro
You should really have db = DAL('postgres://name:password@localhost:5432/db',pool_size=20) The reason is that client-server databases may set a max to number of open connections and it takes time to perform the 3-way handshake to establish a new connection at every http request. Without pooling y

Re: [web2py] Re: Plugin comments

2011-01-17 Thread Bruno Rocha
2011/1/17 Massimo Di Pierro > It would be great is somebody could improve the appliance app to > handle plugin. Here is the source: > I am working on a new *web2pyslices* my idea besides the new layout is to index every kind of slice related do web2py. I am planning a new layout and main areas

[web2py] Re: doesn't represents in a string format

2011-01-17 Thread web2py noob
On 17 ene, 16:19, web2py noob wrote: > can you help me with this, please? i can't find why > producto.subcategoria doesn't represents in a string format. > in jqgrid and sqltable shows the producto.subcategoria reference like > an integer and should be represented as %(nombre)s, but it doesn't...

[web2py] Re: Plugin comments

2011-01-17 Thread Massimo Di Pierro
It would be great is somebody could improve the appliance app to handle plugin. Here is the source: http://www.web2py.com/appliances/static/web2py.app.appliances.w2p Massimo

Re: [web2py] Basic Python ignorance? simplejson throwing "TypeError("key " + repr(key) + " is not a string")"

2011-01-17 Thread Thadeus Burgess
Because its using a tuple as a dictionary key. Why not use the file I sent you the other day? -- Thadeus On Mon, Jan 17, 2011 at 1:41 PM, Lorin Rivers wrote: > No doubt this is my base Python ignorance being the problem. > > I've made some progress on my pivot problem, using this recipe < >

[web2py] Re: social network idea

2011-01-17 Thread Massimo Di Pierro
True. But now we have that. We need to think of something different and better, not copy it. On Jan 17, 1:55 pm, Albert Abril wrote: > IMHO, I think that the best feature of facebook is that you can share things > (links, video, music), with a subgroup of friends. > In example, you if you have

Re: [web2py] social network idea

2011-01-17 Thread Albert Abril
IMHO, I think that the best feature of facebook is that you can share things (links, video, music), with a subgroup of friends. In example, you if you have a group of friends that you know that they love music, you share music videos with them. (and only with them). Another example, the familiar ch

[web2py] Re: social network idea

2011-01-17 Thread NetAdmin
On Jan 17, 1:43 pm, Massimo Di Pierro wrote: > Most social network assue you know who your friends are and allow you > to share info with your friends. How about the opposite? Something > like a bookmarking app that tells me who my friends should be based on > physical distance and recent common

Re: [web2py] social network idea

2011-01-17 Thread Lorin Rivers
Actually, Facebook also uses social graphs to identify people you may know. This part of it is a pretty tough problem, but there are some pretty sharp people on this list… On Jan 17, 2011, at 13:43 , Massimo Di Pierro wrote: > Most social network assue you know who your friends are and allow you

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Francisco Costa
and it's not only in Portugal.. I will email you! On Jan 17, 7:21 pm, Bruno Rocha wrote: > @francisco, Tymr should be worldwide events+places social network, don't be > only in Portugal, I liked so much your idea, let me know if you want to > expand the idea, may be we can work together, I can tr

[web2py] social network idea

2011-01-17 Thread Massimo Di Pierro
Most social network assue you know who your friends are and allow you to share info with your friends. How about the opposite? Something like a bookmarking app that tells me who my friends should be based on physical distance and recent common bookmarks? It seems to me the main problem to me is th

[web2py] Basic Python ignorance? simplejson throwing "TypeError("key " + repr(key) + " is not a string")"

2011-01-17 Thread Lorin Rivers
No doubt this is my base Python ignorance being the problem. I've made some progress on my pivot problem, using this recipe (actually, the improved one from the comments). I'm getting what I want now

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread VP
Here it is with private information replaced with generic information. if request.env.web2py_runtime_gae:# if running on Google App Engine db = DAL('gae') # connect to Google BigTable session.connect(request, response, db = db) # and store sessions and

[web2py] Re: [plugin] Plugin comments

2011-01-17 Thread Anthony
You should add it to http://www.web2py.com/plugins/. Actually, we should probably clean up the free plugins list -- maybe archive the outdated ones. On Monday, January 17, 2011 2:20:00 PM UTC-5, Martin.Mulone wrote: > http://martin.tecnodoc.com.ar/myblog/2011/01/17/plugin-comments-for-web2py >

Re: [web2py] [plugin] Plugin comments

2011-01-17 Thread Bruno Rocha
Great! I am testing, silently since you commited it in to bitbucket. Very nice plugin. Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Re: web2py social network designer/architect

2011-01-17 Thread Bruno Rocha
@francisco, Tymr should be worldwide events+places social network, don't be only in Portugal, I liked so much your idea, let me know if you want to expand the idea, may be we can work together, I can try something in Brazil. Bruno Rocha http://about.me/rochacbruno/bio 2011/1/17 Francisco Costa

[web2py] [plugin] Plugin comments

2011-01-17 Thread Martin.Mulone
http://martin.tecnodoc.com.ar/myblog/2011/01/17/plugin-comments-for-web2py

[web2py] doesn't represents in a string format

2011-01-17 Thread web2py noob
can you help me with this, please? i can't find why producto.subcategoria doesn't represents in a string format. in jqgrid and sqltable shows the producto.subcategoria reference like an integer and should be represented as %(nombre)s, but it doesn't... am I forgeting something? my model: http://o

[web2py] Re: Apache, Wsgi problem

2011-01-17 Thread Massimo Di Pierro
Are you using connection pooling? Can I see the line db = DAL(...)? On Jan 16, 2:24 pm, VP wrote: > Kenneth (see post above) had the same problem with MySQL. > > On Jan 16, 3:55 am, ron_m wrote: > > > > > > > > > Is there any chance to try another server based database such as MySQL. > > Since S

Re: [web2py] Re: Testing the new router (attn Massimo)

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 10:49 AM, Jonathan Lundell wrote: > > On Jan 17, 2011, at 10:07 AM, Martín Mulone wrote: >> yes is trunk > > If you'd like to try a likely fix to LOAD, you can make this change. In > gluon.compileapp.LoadFactory, you'll see this line toward the end: > >url = url

Re: [web2py] Re: sqlform.factory, inserting variable number of records in an other table

2011-01-17 Thread Richard Vézina
There is a couple of little problem with the script : one have been corrected by someone post... Look at Raymond on 9/2/10 12:11 AM The other problem, actually not a problem, but it could be much more fun for user to be able to erase only the added line they mistake on... So having a button erase

Re: [web2py] looking for advice on validation

2011-01-17 Thread Alexandre Andrade
I use to validate date : data = IS_NULL_OR(IS_DATE(format=T('%d/%m/%Y'))) def make_data(field): if field != None: return field.strftime("%d/%m/%Y") and in the Field Field('data_cadastro', 'date',default=request.now,label='Data de Registro',requires=data,represent= lambda field: m

[web2py] today's rewrite patch

2011-01-17 Thread Jonathan Lundell
The rewrite patch that just appeared in the trunk doesn't make any substantive changes; it's just a code reorganization to make it more modular and (hopefully) a little more readable. If you're experimenting with the new routing, it'd be helpful for you to track the changes so line numbers and s

[web2py] Re: sqlform.factory, inserting variable number of records in an other table

2011-01-17 Thread mart
yes, I see what you mean... that is interesting... Now, you have me wanting to look into that too ;) Could be very useful as a plugin (or ready made snippet of code), you are right with that. Mart :) On Jan 17, 1:08 pm, Richard Vézina wrote: > Not exactly what I seaching for... > > As far as I u

[web2py] Re: regarding social networking...

2011-01-17 Thread mart
Just had a look, thanks for that :) Yes, pretty close, isn't it? only a few things i see: 1) it not web2py ;) - my daughter is a HUGE fan, I am teaching her basic programming, and the web app world, all @ 127.0.0.1 (although, i have MUCH to learn my self ;) 2)Since this is for my daughter, i wo

Re: [web2py] Re: Testing the new router (attn Massimo)

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 10:07 AM, Martín Mulone wrote: > yes is trunk If you'd like to try a likely fix to LOAD, you can make this change. In gluon.compileapp.LoadFactory, you'll see this line toward the end: url = url or html.URL(request.application,c,

Re: [web2py] Re: Testing the new router (attn Massimo)

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 10:07 AM, Martín Mulone wrote: > yes is trunk OK, either try the workaround (url=) or if you want to wait, we'll get LOAD fixed in the trunk (might take a day or two). > > 2011/1/17 Jonathan Lundell > On Jan 17, 2011, at 9:38 AM, Martín Mulone wrote: > > return LOAD('plugin

Re: [web2py] regarding social networking...

2011-01-17 Thread Richard Vézina
What about Diaspora open source social network that give you control over your own private information?? Richard On Mon, Jan 17, 2011 at 12:49 PM, mart wrote: > Hi, > > This seems to be a popular subject lately, including places that are > closer to home... My 8 year old desperately wants to jo

Re: [web2py] Re: sqlform.factory, inserting variable number of records in an other table

2011-01-17 Thread Richard Vézina
Not exactly what I seaching for... As far as I understand... It only let you simplified code by isolated repetitive piece of model code. Since it's only create one table I can't have a normalized schema. I would do something like this : http://charlie.griefer.com/blog/index.cfm/2009/9/17/jQuery-

Re: [web2py] Re: Testing the new router (attn Massimo)

2011-01-17 Thread Martín Mulone
yes is trunk 2011/1/17 Jonathan Lundell > On Jan 17, 2011, at 9:38 AM, Martín Mulone wrote: > > return LOAD('plugin_comments','comments.load',args=[tablename, record_id, > page],ajax=True) > > File > "/home/martin/Repositorios/google_appengine/web2py/gluon/compileapp.py", > line 145, in __call

Re: [web2py] Re: Testing the new router (attn Massimo)

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 9:38 AM, Martín Mulone wrote: > return LOAD('plugin_comments','comments.load',args=[tablename, record_id, > page],ajax=True) > File > "/home/martin/Repositorios/google_appengine/web2py/gluon/compileapp.py", line > 145, in __call__ > extension=extension) > File "/home/

[web2py] regarding social networking...

2011-01-17 Thread mart
Hi, This seems to be a popular subject lately, including places that are closer to home... My 8 year old desperately wants to join in the fun, but daddy (me) can't think of anything else to say but "go clean your room or go bug your sisters or something... we'll talk when you're 40 !" ;) . But, ki

Re: [web2py] Re: Testing the new router

2011-01-17 Thread Martín Mulone
return LOAD('plugin_comments','comments.load',args=[tablename, record_id, page],ajax=True) File "/home/martin/Repositorios/google_appengine/web2py/gluon/compileapp.py", line 145, in __call__ extension=extension) File "/home/martin/Repositorios/google_appengine/web2py/gluon/html.py", line 26

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Francisco Costa
Thank you all for the inclusion. I haven't made any promotion here, because tymr.com is a one man project for now, and i'm not yet fully satisfied with the result. I'm looking for some angel ou vc investment but the economy is not very good in Portugal at the moment. On Jan 17, 4:58 pm, Anthony

[web2py] Re: Change upload behaviour: standard filename

2011-01-17 Thread Massimo Di Pierro
You can pass two optional arguments to Field(...) custom_store and custom_retrieve the first must be a function that takes a file like object, a filename, and an optional path (uploadfolder) stores the file where you like and returns the filename you assign to the file (can be the original one)

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Anthony
On Monday, January 17, 2011 11:27:49 AM UTC-5, Massimo Di Pierro wrote: > > Hey! This should be on web2py.com/poweredby Yes, already added it a few days ago: http://web2py.com/poweredby/default/site_read/89

Re: [web2py] Re: Testing the new router

2011-01-17 Thread Jonathan Lundell
On Jan 16, 2011, at 5:44 PM, Matt wrote: > > Hi Jonathan, > > Thanks for your quick response. Yes the application is 'app'. > > Sure, that would be great. I've been looking at this, and a couple of things aren't making sense to me. Your configuration sounds fine, at least what I see of it. I'v

[web2py] Re: TAG name and XML: maybe a solution?

2011-01-17 Thread Massimo Di Pierro
check trunk, please. I did it but a little differently. On Jan 17, 9:39 am, carlo wrote: > As in my previous post, TAG with its xml serializer fails when both > tag Name and Contents are unicode strings with non ascii chars. > > What about this trivial solution in html.py? > > def xml(self): >  

[web2py] Re: Problem with one-to-many field

2011-01-17 Thread Massimo Di Pierro
Replace Field('firma', db.firma, requires=[IS_IN_DB(db, 'firma.id', '% (nume)s')]), with Field('firma', db.firma, requires=IS_IN_DB(db, 'firma.id', '% (nume)s')), or even better Field('firma', db.firma), the validator is automatic for reference fields. Field('firma', db.firma, requires=

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Massimo Di Pierro
Hey! This should be on web2py.com/poweredby On Jan 17, 7:32 am, Bruno Rocha wrote: > This is a social network built with web2py ->http://tymr.com/ > > Bruno Rochahttp://about.me/rochacbruno/bio > > 2011/1/17 yarden...@gmail.com > > > > > > > > > > > Hi, > > > I am developing a social network wit

[web2py] Re: Timing issue in web2py

2011-01-17 Thread Massimo Di Pierro
Could please open an issue on googlecode about this. Thanks Ondrej On Jan 17, 6:21 am, ondrejs wrote: > There appears to be a bug during startup. > > C:\Temp\web2py>web2py.exe > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2011 > Version 1.91.6 (2011-01-03 17:55:

[web2py] Re: Table of Contents for plugin_wiki pages

2011-01-17 Thread Massimo Di Pierro
http://code.google.com/p/samaxesjs/wiki/TableOfContentsPlugin On Jan 17, 5:31 am, blackthorne wrote: > Something that might interest plugin_wiki users, is the possibility to > automatically generate tables of contents from a page based on > headings and specially tagged divs. > > just put this on

[web2py] Re: Recommended Payment Gateway (besides PayPal)

2011-01-17 Thread Massimo Di Pierro
http://web2py.appspot.com/plugin_checkout/default/checkout On Jan 17, 2:34 am, cjrh wrote: > I am looking for recommendations for payment gateways.    I already > know about PayPal, and Authorize.NET.   The former seems expensive, > and has not been well-supported in my country in the past, and t

[web2py] Re: upload widgets problem with nullable compound validators

2011-01-17 Thread Massimo Di Pierro
"IS_NULL_OR([IS_XXX(..), IS_YYY(..), ..])" in trunk now. Good suggestion although I think an internal refactoring is in order. On Jan 16, 10:57 pm, kenji4569 wrote: > I ended up with making a custom validator "IS_ALL" for the problem: > > "IS_NULL_OR(IS_ALL([IS_XXX(..), IS_YYY(..), ..])" > > and

Re: [web2py] TAG name and XML: maybe a solution?

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 7:39 AM, carlo wrote: > > As in my previous post, TAG with its xml serializer fails when both > tag Name and Contents are unicode strings with non ascii chars. > > What about this trivial solution in html.py? Makes sense to me, but I have to admit that I get a little confused

Re: [web2py] request.vars question

2011-01-17 Thread Jonathan Lundell
On Jan 17, 2011, at 4:43 AM, Johann Spies wrote: > In the shell this works: > > In [7]: print db._lastsql > --> print(db._lastsql) > SELECT count(*) FROM artikel WHERE (artikel.id > 0) > > In [8]: query = db.artikel.id > 0 > > In [9]: l = db(query).count() > > In [10]: print db._lastsql > -

[web2py] Change upload behaviour: standard filename

2011-01-17 Thread grezly
I'd like to change the default behaviour for one app, concerning my uploads. Web2py normally rename the uploaded file, but in my particular case, web2py doesn't need to change my filename. Is something possible, while creating my model? Next to that i also like to store a hash of a file in my dat

[web2py] TAG name and XML: maybe a solution?

2011-01-17 Thread carlo
As in my previous post, TAG with its xml serializer fails when both tag Name and Contents are unicode strings with non ascii chars. What about this trivial solution in html.py? def xml(self): """ generates the xml for this component. """ (fa, co) = self._xml()

Re: [web2py] Re: sqlform.factory, inserting variable number of records in an other table

2011-01-17 Thread Richard Vézina
Thanks Mart... I read back my mail and my english was terrible. ;-) I thought about it after sent the mail and I realise that subform seems what I was searching for. I will try what you propose and give feedback here. Richard On Sun, Jan 16, 2011 at 10:43 PM, mart wrote: > You know, I discove

[web2py] Problem with one-to-many field

2011-01-17 Thread rif
Hi guys, I just started working with web2py and I like it a lot. I have a little problem with the following tables: The firma field in the second table is shown as a text field where I can only enter the ids and not as a select field. I admit that I might have saved the db.py with firma field as

Re: [web2py] web2py social network designer/architect

2011-01-17 Thread Bruno Rocha
This is a social network built with web2py -> http://tymr.com/ Bruno Rocha http://about.me/rochacbruno/bio 2011/1/17 yarden...@gmail.com > > Hi, > > I am developing a social network with web2py. > > I will be using freelancer to do the work for me. > > However I lack an overall design for the

  1   2   >