[web2py] Re: Another web2py powered site

2011-01-02 Thread mdipierro
I do not know. I found it with google. On Jan 2, 9:39 pm, Bruno Rocha wrote: > Nice app, is that a modified version of Instant Press? > > 2011/1/3 mdipierro > > >http://hackerwithin.org/thw/ > > -- > > Bruno Rochahttp://about.me/rochacbruno/bio

[web2py] Re: Another web2py powered site

2011-01-02 Thread Anthony
Added to the list. We really should remove the web2py favicon from the Welcome app -- we've got all these non-web2py.com sites out there displaying the web2py favicon. Anthony On Sunday, January 2, 2011 10:33:48 PM UTC-5, mdipierro wrote: > http://hackerwithin.org/thw/

Re: [web2py] Another web2py powered site

2011-01-02 Thread Bruno Rocha
Nice app, is that a modified version of Instant Press? 2011/1/3 mdipierro > http://hackerwithin.org/thw/ -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Another web2py powered site

2011-01-02 Thread mdipierro
http://hackerwithin.org/thw/

[web2py] Reserved words

2011-01-02 Thread villas
This is a good chance to give everyone a reminder. Please use the 'reserved key words' feature when initially making your models. All you have to do is temporarily add check_reserved=['all'] to your connect string. This small precaution can save you a lot of grief later, especially for anyone

[web2py] Re: multi-form input component [enhancement request]

2011-01-02 Thread weheh
I like uploadify, too. So far, it's my lead contender. On Jan 2, 8:44 am, "Arun K.Rajeevan" wrote: > I'd suggesthttp://www.swfupload.org/based solution. > uploadify (http://www.uploadify.com/about/) already integrates with it. > > It degrades well too.

[web2py] Re: Memory leak - followup

2011-01-02 Thread mdipierro
It depends on whether nick is a reference field. On Jan 2, 5:31 pm, Michele Comitini wrote: > what if you do this? > > class Blah(): >     def __init__(self): >         self.nick = db.person[1].nick > > def blah_f(): >     return Blah() > >  p = cache.ram('blahblah', blah_f,time_expire=30) > > 2

[web2py] Re: How to delete a user?

2011-01-02 Thread pbreit
Be careful deleting users with an href since that can easily lead to unintended deletions. In general links and GETs should never add, update or delete anything.

Re: [web2py] Memory leak - followup

2011-01-02 Thread Michele Comitini
what if you do this? class Blah():    def __init__(self):        self.nick = db.person[1].nick def blah_f(): return Blah() p = cache.ram('blahblah', blah_f,time_expire=30) 2011/1/2 David Zejda : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Finally I had enough time to find out

Re: [web2py] Web2py Application Exhibition 2.0 Winning Entries

2011-01-02 Thread Alexandre Andrade
I'm proud of this community! Congratulations to the winners. 2011/1/1 NetAdmin > > The votes are in for the Web2py Application Exhibition Version 2.0 > and the winners are... > > 1st Place $100 -- PowerTable Plugin by Bruno Rocha > 2nd Place $50 -- pyMantis Data-management System by Falko

Re: [web2py] Number of records

2011-01-02 Thread Kenneth Lundström
If you only want to display a number I guess virtual fields is what you need. Look at http://www.web2py.com/book/default/chapter/06?search=virtual#Virtual-Fields Kenneth Hi, In addition to the records that are submitted with a SQLFORM, I want to give each record a specific "identification" n

[web2py] Number of records

2011-01-02 Thread Rick
Hi, In addition to the records that are submitted with a SQLFORM, I want to give each record a specific "identification" number, so that the first record has number=1 and so on: ==from model/db.py== db.define_table('input', Field('number', 'integer'), Field('value', 'integer')) ..

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
> I always use 'represent' for reference fields as a workaround. Bruno's suggestion to use db.tablename.fieldname.represent fixes 'webgrid' too.

[web2py] Re: How to delete a user?

2011-01-02 Thread Rick
Thanks a lot! I find this being a good solution: ==in admin.html== {{=A(("Delete this user"), _href=URL('deleteusr'))}} ==in the controller file== def deleteusr(): db(custom_auth_table.username==session.username).delete() redirect(URL('admin')) On Jan 2, 8:19 pm, Jonathan Lundell

Re: [web2py] Re: How to delete a user?

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 11:10 AM, Arun K.Rajeevan wrote: > Try this, > Delete this > user > > I haven't tested, but must work. If I were coding this for myself, I think I'd self-submit and conditionally do the user-delete and redirect in the original controller.

Re: [web2py] Re: How to delete a user?

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 11:04 AM, Rick wrote: > > Thanks, I changed the code to this: > Users: > > ==in admin.html== > > {{for record in records:}} > {{=record.username}} : {{=record.password}} > [ > {{session.username=record.username}} > Delete this > user > ] > {{pass}} > > > ==in a controller fi

[web2py] Re: How to delete a user?

2011-01-02 Thread Arun K.Rajeevan
Try this, Delete this user I haven't tested, but must work.

Re: [web2py] Re: SQLFORM bug or?

2011-01-02 Thread Arun K.Rajeevan
It's set in the model form (usually) Table('name', Field('name', 'type', readable=False, writable=False), ) (both readable and writable are True by default) for a create/update form, only fields marked as writable=True are shown, and for readonly forms, only fields marked as readable=

[web2py] Re: How to delete a user?

2011-01-02 Thread Rick
Thanks, I changed the code to this: Users: ==in admin.html== {{for record in records:}} {{=record.username}} : {{=record.password}} [ {{session.username=record.username}} Delete this user ] {{pass}} ==in a controller file== def deleteusr(): db(custom_auth_table.username==session.usernam

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
> Can you open a Issue on google > code?http://code.google.com/p/web2py/issues/list Ok Bruno, I did it: http://code.google.com/p/web2py/issues/detail?id=141

[web2py] Re: Web2py Application Exhibition 2.0 Winning Entries

2011-01-02 Thread Christopher Steel
Congratulations! and thanks to Martin and NetAdmin for making the contest happen. On Jan 1, 9:50 am, NetAdmin wrote: > The votes are in for the Web2py Application Exhibition Version 2.0 > and the winners are... > >  1st Place $100 -- PowerTable Plugin by Bruno Rocha >  2nd Place  $50 -- pyMant

Re: [web2py] Re: SQLTABLE question

2011-01-02 Thread Bruno Rocha
I guess this is a bug, happening here with the new DAL, but I always use 'represent' for reference fields as a workaround. I thought this was fixed in trunk, I'll make more tests in this and if I find a solution I'll send a patch to Massimo. Can you open a Issue on google code? http://code.google

Re: [web2py] vertical accordion menu ?

2011-01-02 Thread Martín Mulone
http://docs.jquery.com/UI/Accordion or this?: http://users.tpg.com.au/j_birch/plugins/superfish/#sample3 2011/1/2 Stef Mientki : > hallo, > > has anyone a vertical accordion menu fro web2py ? > > thanks, > Stef Mientki > -- My blog: http://martin.tecnodoc.com.ar My portfolio *spanish*: http

Re: [web2py] Re: Web2py Application Exhibition 2.0 Winning Entries

2011-01-02 Thread Martín Mulone
Congrats Bruno and Falko!. 2011/1/1 selecta : > thank you :D > great start for a new year > >> Congratulations to the winners! > -- My blog: http://martin.tecnodoc.com.ar My portfolio *spanish*: http://www.tecnodoc.com.ar Checkout my last proyect instant-press: http://www.instant2press.com Exp

Re: [web2py] Re: Happy New Year in 2011

2011-01-02 Thread Martín Mulone
Happy new year! 2011/1/1 Arun K.Rajeevan : > Happy new year > -- My blog: http://martin.tecnodoc.com.ar My portfolio *spanish*: http://www.tecnodoc.com.ar Checkout my last proyect instant-press: http://www.instant2press.com Expert4Solution Profile: http://www.experts4solutions.com/e4s/default/

[web2py] Memory leak - followup

2011-01-02 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Finally I had enough time to find out, where is the main root of my memory leak. Consider two scenarios: 1. start web2py server 2. execute controller function with contents: def blah(): return Storage(dict(nick=db.person[1].nick)) p = cache.ra

Re: [web2py] Re: RFC: new URL routing facility

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 8:19 AM, villas wrote: > > Hi Jonathan > If the framework had such a variable I would use it. But it's a tiny > issue so please don't let me further distract you from the other > enhancements you are planning :-) It'll be (almost) trivial to add it. I'll put it on my todo list.

[web2py] Re: RFC: new URL routing facility

2011-01-02 Thread villas
Hi Jonathan If the framework had such a variable I would use it. But it's a tiny issue so please don't let me further distract you from the other enhancements you are planning :-) Thanks. D On Jan 2, 3:58 pm, Jonathan Lundell wrote: > On Jan 2, 2011, at 5:54 AM, villas wrote: > > > > > Well, say

Re: [web2py] Re: How to delete a user?

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 7:01 AM, Rick wrote: > > I changed the code but it still doesn't work: Here's a fragment of my code that I use to delete a user. It's not ajax, but you'll get the idea: ut = auth.settings.table_user uu = urow.auth_user ... if no

[web2py] vertical accordion menu ?

2011-01-02 Thread Stef Mientki
hallo, has anyone a vertical accordion menu fro web2py ? thanks, Stef Mientki

Re: [web2py] Re: RFC: new URL routing facility

2011-01-02 Thread Jonathan Lundell
On Jan 2, 2011, at 5:54 AM, villas wrote: > > Well, say I make a plugin which I want to link back to a function in > my default_controller. I would not wish to to make my link like this > URL('default','func'), but like this URL(default_controller,'func'). > See what I mean? Sort of. The problem

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
Well, it does work if you use the linkto variable. In gluon/sqlhtml.py around line 1310 there is a line which only works if linkto is set: elif linkto and field.type.startswith('reference'): To make it show the referenced id plainly (without linkto) you can simply add another elif line furth

[web2py] Re: How to delete a user?

2011-01-02 Thread Rick
I changed the code but it still doesn't work: ==admin.html== {{extend 'layout.html'}} Add a user: {{=form}} Users: {{for record in records:}} {{=record.username}} : {{=record.password}} [ Delete this user ] {{pass}} ==Here is some code from models/db.py== auth = Auth(globals(), db

Re: [web2py] Re: SQLFORM bug or?

2011-01-02 Thread Kenneth Lundström
> Is readable & writable properties set on customer field in order table? The only thing I change is the readonly parameter when creating the form with SQLFORM. models file is not changed or anything else. Where can I see the readable and writable set of the customer field? Kenneth

[web2py] Re: RFC: new URL routing facility

2011-01-02 Thread villas
Well, say I make a plugin which I want to link back to a function in my default_controller. I would not wish to to make my link like this URL('default','func'), but like this URL(default_controller,'func'). See what I mean? On Jan 2, 2:09 am, Jonathan Lundell wrote: > On Jan 1, 2011, at 5:46 PM,

[web2py] Re: SQLFORM bug or?

2011-01-02 Thread Arun K.Rajeevan
Is readable & writable properties set on customer field in order table?

[web2py] Re: multi-form input component [enhancement request]

2011-01-02 Thread Arun K.Rajeevan
I'd suggest http://www.swfupload.org/ based solution. uploadify (http://www.uploadify.com/about/) already integrates with it. It degrades well too.

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
Hi Kenneth You're right, I think it must have been broken. SQLTABLE is not displaying the id of reference fields. -D

[web2py] SQLTABLE question

2011-01-02 Thread Kenneth Lundström
I guess this question is related to the other question is just sent. If I make a SQL query: customer = db(db.customer.id > 0).select() and then return it with, return customer, and have no view, web2py will show all records as an SQLTABLE, correct? Why is all reference fields shown as None. B

[web2py] SQLFORM bug or?

2011-01-02 Thread Kenneth Lundström
Hello, if I make SQLFORM(db.order, order.id) I get: Id: 3 Name: whatever Customer: drop down list with correct customer name shown as default if I change it form to readonly by SQLFORM(db.order, order.id, readonly=True) Id: 3 Name: whatever Customer: None shouldn´t the correct customer name

[web2py] Re: multi-form input component [enhancement request]

2011-01-02 Thread weheh
... OK, after further investigation ... There are many javascript widgets out there already that can do the file uploading, some of them quite sophisticated & slick. Actual integration with web2py doesn't look like it'll take that long to do. However, in the interest of serving the python community

[web2py] crud.search() fields parameter ignored, also search difficult if a field has an IS_IN_SET() validator.

2011-01-02 Thread John-Kim Murphy
The fields parameter is ignored by crud.search(). I took a peek at the source , and fields is defined on line 3064 of Crud.search(), but never used. Also, if a field has an IS_IN_SET() validator, the crud.search() form gives a "Value