[web2py] Re: we need some good web2py quotes ....

2011-11-04 Thread Gour
On Fri, 4 Nov 2011 16:08:33 -0700 (PDT) Massimo Di Pierro wrote: > more or less as long as this one: > > "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla > bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla > bla bla bla bla bla bla bla bla bla bla bla bla bl

[web2py] login weirdness and login_next

2011-11-04 Thread lucas
hello one and all, hopefully this is simple. i read a few of the previous posts concerning login_next and i believe my weirdness is much more simple. i did a lot of work with downloading. and now when a user logs in, it immediately comes up with a "Open File..." dialog box where you can chose t

Re: [web2py] Re: error when upgraded to v1.99

2011-11-04 Thread Richard Baron Penman
Yes the app uses a customized auth. That user field stores google accounts: from google.appengine.api import users google_user = users.get_current_user() The error is raised from GAE but doesn't happen when I use the same version of GAE with an older version of web2py. Do you know what might have

[web2py] Re: error when upgraded to v1.99

2011-11-04 Thread Massimo Di Pierro
This is not a web2py error. You are declaring Field('user', gae.UserProperty()), what are you putting into this field? You seem to be re-implementing a lot of the auth logic yourself. On Nov 3, 10:07 pm, Richard Baron Penman wrote: > from trunk, now a different error: > > Traceback (most rece

[web2py] Re: SQLFORM.smartgrid query/search don't work for related tables

2011-11-04 Thread Massimo Di Pierro
Can you post your code? I cannot reproduce your problem. Which web2py version? On Nov 4, 4:26 pm, Jim Steil wrote: > Hi > > Testing some stuff with SQLFORM.smartgrid.  When using the query/search > on a related table, the query doesn't present any fields in the dropdown > list and no matter what

[web2py] Re: Accept image upload from API or standalone form

2011-11-04 Thread Massimo Di Pierro
The problem was that you need this to upload images < form enctype="multipart/form-data" method="post"> On Nov 4, 7:28 pm, pbreit wrote: > This seems to work: > > http://pb-dev.pricetack.com:8001/mobilepost/index3"; > enctype="multipart/form-data" method="post"> > > > > > > > > def in

[web2py] Re: Accept image upload from API or standalone form

2011-11-04 Thread pbreit
This seems to work: http://pb-dev.pricetack.com:8001/mobilepost/index3"; enctype="multipart/form-data" method="post"> def index3(): form = SQLFORM.factory( Field('title'), Field('price'), Field('image', 'upload', uploadfolder=request.folder+'static/uploads'))

[web2py] Re: Accept image upload from API or standalone form

2011-11-04 Thread pbreit
The error says "image" does not have an attribute "file": image = db.item.image.store(request.vars.image.file, request.vars.image.filename) AttributeError: 'str' object has no attribute 'file' Am I doing it right? Do I need to use FORM() or SQLFORM.factory()?

[web2py] Re: Accept image upload from API or standalone form

2011-11-04 Thread Anthony
Wouldn't request.vars.image.file be the file object and request.vars.file.filename the name? On Friday, November 4, 2011 7:02:30 PM UTC-4, pbreit wrote: > > I'm trying to figure out how to accept an image upload from a form that > was not generated by Web2py. > > So for example: > > http://pb-de

[web2py] we need some good web2py quotes ....

2011-11-04 Thread Massimo Di Pierro
more or less as long as this one: "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla" if it looks good but not chee

[web2py] Accept image upload from API or standalone form

2011-11-04 Thread pbreit
I'm trying to figure out how to accept an image upload from a form that was not generated by Web2py. So for example: http://pb-dev.pricetack.com:8001/mobilepost> How do I process the image?

[web2py] SQLFORM.smartgrid query/search don't work for related tables

2011-11-04 Thread Jim Steil
Hi Testing some stuff with SQLFORM.smartgrid. When using the query/search on a related table, the query doesn't present any fields in the dropdown list and no matter what I put in the search field, it returns 'Invalid query'. Is anyone else seeing this problem as well? -Jim -- Jim Ste

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-04 Thread Gour
On Fri, 4 Nov 2011 10:38:06 -0700 (PDT) Massimo Di Pierro wrote: > perhaps we should make a list of desired features. I believe that WordPress is quite etablished as Blog engine and CMS platform, so making Instant Press as "Python's WordPress" would be cool, iow, stable blog/CMS + support for ea

Re: [web2py] Re: nyroModal

2011-11-04 Thread Kenneth Lundström
Hi Russell, Have you defined nyroModalRemove somewhere? I'm getting "parent.$.nyroModalRemove is not a function" when using your suggested three lines. Kenneth return_script = ['parent.$.nyroModalRemove();'] return_script.append('parent.window.location.reload();')

[web2py] Jquery 1.7; Twitter Bootstrap 1.4

2011-11-04 Thread pbreit
Jquery 1.7 http://blog.jquery.com/2011/11/03/jquery-1-7-released/ Twitter Bootstarp 1.4 https://github.com/twitter/bootstrap/wiki/Changelog

Re: [web2py] Re: Mixing/supporting CMS with Web2py

2011-11-04 Thread Vasile Ermicioi
I wish to make a Drupal alternative based on web2py

[web2py] Re: Smartgrid and create link

2011-11-04 Thread Massimo Di Pierro
SQLFORM.smartgrid(, links=dict(tablename=[lambda row: A('hi',_class='button')]) links is a dict(tablename=[...]) the list (for each table) contains functions that take a row and make the button. On Nov 4, 11:15 am, Roberto Perdomo wrote: > Hi, i need to put this code in new form from the add

[web2py] Re: How to group database fields in the model?

2011-11-04 Thread Massimo Di Pierro
db.table.c.update = lambda row: row.a+row.b is a function that compute the value of field c if you have field a and field b. On Nov 4, 12:04 pm, António Ramos wrote: > what is the field.update for? > > Thank you > > 2011/11/4 Richard Vézina > > > > > > > > > db.table.field.writable and .readabl

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-04 Thread Massimo Di Pierro
perhaps we should make a list of desired features. On Nov 4, 9:10 am, Philip Kilner wrote: > Hi, > > On 04/11/2011 12:39, Phyo Arkar wrote: > > > Plone itself is a beast of its own, even tho web2py is a lot easier > > than Zope and can create something that beats Plone ,  alot easier > > than doi

Re: [web2py] How to group database fields in the model?

2011-11-04 Thread António Ramos
what is the field.update for? Thank you 2011/11/4 Richard Vézina > db.table.field.writable and .readable = False > > You will have to implement not null into the controller... > > Just need to > > if your condition: > # SET your different fields to whatever you need > db.table.field.writabl

Re: [web2py] How to group database fields in the model?

2011-11-04 Thread Richard Vézina
db.table.field.writable and .readable = False You will have to implement not null into the controller... Just need to if your condition: # SET your different fields to whatever you need db.table.field.writable and .readable = False form = SQLFORM(db.table) You will have to manage also the

[web2py] How to group database fields in the model?

2011-11-04 Thread António Ramos
Hello, i need something to group fields based on a rule for example i have 30 database fields the first 10 should be editable in condition 1. the remaining 20 fields should be blocked the next 10 in the condition 2 also the remaining 20 should be blocked and the last 10 in condition 3 What is t

[web2py] Re: Reusing a prefilled, readonly SQLFORM.factory form?

2011-11-04 Thread pepper_bg
This got solved by using the fact that Field.default could be manipulated *after* the Field has been created (following the above line of examples): def build_form(readonly=False): #create fields or get from db field1=Field('test') field2=db.my_table.best #set defaults field1.d

[web2py] Smartgrid and create link

2011-11-04 Thread Roberto Perdomo
Hi, i need to put this code in new form from the add button of smartgrid: $(document).ready(function() { $('#beneficiarios_cedula_personal__row').hide(); }); I can edit the edit and delete links, but i need a custom new link. How i can do this? Thanks.

Re: [web2py] data from request.vars

2011-11-04 Thread Richard Vézina
I think it's normal... You can convert it back to datetime : http://docs.python.org/library/datetime.html#strftime-and-strptime-behavior Richard On Fri, Nov 4, 2011 at 11:19 AM, petrasadi wrote: > I am trying to retrieve a datetime.date type out of the request.vars, > but it comes out as str >

[web2py] data from request.vars

2011-11-04 Thread petrasadi
I am trying to retrieve a datetime.date type out of the request.vars, but it comes out as str Is this normal, or is there a way to parse from str back to datetime?

Re: [web2py] Re: Custom search_widget SQLFORM.grid

2011-11-04 Thread Jim Steil
Massimo I am playing around with this more this morning and found some issues with what I'd been working on. Will continue to refine and let you know when I have something working better. -Jim On 11/3/2011 8:00 PM, Massimo Di Pierro wrote: Please make sure you apply your change to the

Re: [web2py] Mixing/supporting CMS with Web2py

2011-11-04 Thread Philip Kilner
Hi, On 04/11/2011 12:39, Phyo Arkar wrote: Plone itself is a beast of its own, even tho web2py is a lot easier than Zope and can create something that beats Plone , alot easier than doing it with zope, we should not try to go that way. There are things that Zope & Plone do with acquisition,

[web2py] Re: auth_user represent

2011-11-04 Thread Bianca Cadaveri
Thank you Anthony !!! BC On 4 nov, 01:52, Anthony wrote: > On Thursday, November 3, 2011 8:31:10 PM UTC-4, Bianca Cadaveri wrote: > > > Thank you very much to both of you. > > > Is this way to write formats specific to Web2py : '%(first_name) % > > (last_name) (%(id))' ? > > > I have never met b

[web2py] Usability: SQLFORM.grid column order with foreign table

2011-11-04 Thread Cliff
Is there a way to force a certain column order in SQLFORM.grid when the grid includes a foreign table? If not, how do I submit a request for it? In the following grid setup, the products.name column is last in the grid. It would be more usable to put it first. query = ((db.products.id==db.p

Re: [web2py] Mixing/supporting CMS with Web2py

2011-11-04 Thread Phyo Arkar
Plone itself is a beast of its own, even tho web2py is a lot easier than Zope and can create something that beats Plone , alot easier than doing it with zope, we should not try to go that way. On 11/4/11, Philip Kilner wrote: > Hi Phylo, > > On 04/11/2011 06:06, Phyo Arkar wrote: >> We really

Re: [web2py] Re: interget or string to date

2011-11-04 Thread Phyo Arkar
please check dateutils. It works will almost all date-time formats, it intelligently convert to datetime object . labix.org/python-dateutil On 11/3/11, Omi Chiba wrote: > Vineet, > > Thanks for sharing. > It works like a charm ! > > On Nov 2, 10:27 am, Vineet wrote: >> Recently, I wrote this f

[web2py] Receiving external server response....

2011-11-04 Thread Auden RovelleQuartz
Does anyone have a simple example on how to receive a server response sent back to a web2py URL ("status_url"), and store that response as a text message (e.g so that data can be programmatically processed later)? The server response sent back is an HTTP post array and it is sent from a payment pr

Re: [web2py] Mixing/supporting CMS with Web2py

2011-11-04 Thread Phyo Arkar
Lets Keep it simple , mature first instead of rushing it loaded with features. Lets start with Main feature of WordPress , A blog , Layout/Theme management , Posting news , Tagging , comments (Instant-press should have to features) Make those features works well stable and robust. Add more feat

Re: [web2py] Re: Mixing/supporting CMS with Web2py

2011-11-04 Thread Phyo Arkar
it is true, Can Instant Press developer define goals and roadmaps so that we know what to work on and submit patches or allow some of us Developer access? Or should we fork it if hes busy to manage this project ? Regards, Phyo On 11/4/11, Gour wrote: > On Fri, 04 Nov 2011 09:47:22 + > Phil

Re: [web2py] Re: ASK Web2py Groups: Clarification on decimal type field

2011-11-04 Thread Vinicius Assef
Think of it as any normal database application. As far as Web2py doesn't create indexes, you must take care of it by yourself. If your IS_IN_DB() validator refers to a field that isn't indexed, your performance will suffer. -- Vinicius Assef. On Fri, Nov 4, 2011 at 1:33 AM, Pystar wrote: >

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-04 Thread Gour
On Fri, 04 Nov 2011 09:47:22 + Philip Kilner wrote: > I agree, in principle, but we need to define our terms here. If by > CMS/Blog we're referring to something like Wordpress, then that is > realistic. The first step would probably be to define some sort of > spec., as "CMS/Blog" can mean

Re: [web2py] Mixing/supporting CMS with Web2py

2011-11-04 Thread Philip Kilner
Hi Phylo, On 04/11/2011 06:06, Phyo Arkar wrote: We really need a CMS/Blog that the developer really cares ., It have a lot of potential to become top CMS/Blog. I agree, in principle, but we need to define our terms here. If by CMS/Blog we're referring to something like Wordpress, then that

[web2py] Re: Missing my posts - Anyone else losing posts

2011-11-04 Thread Murray3
seems to happen all the time on google groups, nevermind! On Nov 4, 5:39 am, BrendanC wrote: > Ignore my previous qn - they just showed up again - so it's probably some > sort of refresh issue with my broswer settings.

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-04 Thread Gour
On Fri, 4 Nov 2011 12:36:18 +0630 Phyo Arkar wrote: > Due to the fact of web2py's Single step deployment , many > not-so-technical users will want to adopt it . If theres a stable , > active CMS , developed using Web2py , it will change the future of > both python and web2py in web development.