[web2py] Re: Downloading from "private" folder

2010-06-23 Thread mdipierro
Two issues: - you are donwloading from private not uploads folder. Thenically this is ok but not a web2py convention. You should not expose the content for the private folder. That is why it is called private. ;-) - you used embed to embed a file, but it should be used to embed a plugin. I have u

[web2py] Re: upload bug in filename

2010-06-23 Thread Swell
Ok I will post some code here to show as much as possible here is the db definition: db.define_table('papers', Field('title','string'), Field('author','string'), Field('file','upload'), ) then if i try to use the database administration tool available in Models section and try to insert

[web2py] invite-friend slice

2010-06-23 Thread Rohan
Anybody aware of any plugin/slice available for inviting friends from gmail, yahoo, hotmail, aol, facebook etc from a web application? Thanks in advance.

[web2py] Hidden SQLFORM.factory Field

2010-06-23 Thread AsmanCom
Hi, i can make a hidden Field by: form = SQLFORM.factory(Field("field_name", type="hidden", default="Off")) Now the Form is hidden, but the Fieldname is still there, how can I hide this? THX

[web2py] Web2py and mobile browsing

2010-06-23 Thread Doug Warren
Does anyone have some hints for showing mobile browsers a different set of views than desktop browsers? IE: Detection, redirection, etc... Since the view is determined by the extension of the page how do people handle it?

Re: [web2py] Re: Anvanced applications in gae

2010-06-23 Thread Carles
Sorry but, any thoughts? Carles El 22/06/2010, a las 19:56, Carles Gonzalez escribió: > My english is horrible, an maybe it wasn't clear, but that was exactly > my problem :). > > Currently i'm looking at the code massimo told me about but i think > that the problem isn't here. > > I explain:

[web2py] OWASP Top Ten

2010-06-23 Thread Julius Minka
There is a new version here: http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project I wonder if it doesn't need to be reflected in the current version of the Book or in web2py itself. Julius

[web2py] Re: Hidden SQLFORM.factory Field

2010-06-23 Thread Yarko Tymciurak
On Jun 23, 8:23 am, AsmanCom wrote: > Hi, > > i can make a hidden Field by: > > form = SQLFORM.factory(Field("field_name", type="hidden", > default="Off")) > > Now the Form is hidden, but the Fieldname is still there, how can I > hide this? If you don't want a field in form factory, simply don't

[web2py] Re: Anvanced applications in gae

2010-06-23 Thread Yarko Tymciurak
On Jun 23, 9:11 am, Carles wrote: > Sorry but, any thoughts? Have you looked at http://www.web2py.com/book/default/section/6/6?search=puppy or http://www.web2py.com/book/default/section/6/9?search=puppy (you could have a relationship field if you _needed_, or you could simply have a parent / c

[web2py] Re: Downloading from "private" folder

2010-06-23 Thread weheh
Massimo, thanks for the app. I'm studying it. >From the doc, I'm not sure I get a crystal clear understanding of what the web2py convention is. Let's say my app lets you upload a music mp3 file, a file with a description (liner notes), and a jpeg (album cover). These get uploaded to "uploads". Sh

[web2py] Re: Concatenate str and int values in Model

2010-06-23 Thread greenpoise
just noticed the response, thanks. I guess is all about compute even when it is strings and numeric fields..Thanks again dan On Jun 23, 2:51 am, mdipierro wrote: > db.vlanman.location.compute=lambda r: '%s%s' % > (r['locationprevis'],r['patchnumber']) > > On Jun 22, 3:40 pm, greenpoise wrote: >

[web2py] Re: OWASP Top Ten

2010-06-23 Thread Joschua
I think it should be appended not updated, because that are just the top security flaws, but all are important. The new one are: * A6: Security Misconfiguration (crucial) * A9: Insufficient Transport Layer Protection * A10: Unvalidated Redirects and Forwards On Jun 23, 6:37 pm, Julius Minka wrot

[web2py] elFinder-web2py , Filemanager for Web2py!

2010-06-23 Thread Phyo Arkar
Finally after 2 days of hacking elfinder backend for Django from http://www.elrte.ru/redmine/issues/128 , i have managed to get elFinder working (about 90% of features) Attached is elFin

[web2py] Re: Downloading from "private" folder

2010-06-23 Thread Russell
If you look at the ReportLab example in chapter 9 of the book, it uses the private folder to make the PDF file, which is then deleted. So I guess that private is for temporary working stuff - a folder that can be cleaned out if necessary. And, if such a file is worth keeping, I guess it should be

[web2py] Re: dynamically growing form?

2010-06-23 Thread Russell
I would create a form with all 10 rows, hide all but the first 2 rows, and then use jquery to progressively display the rest of the rows. Add something like this to each of the rows... form.element(_id=this_reference_id).append( A(' add', _href='#', _onclick="jQuery('#%s').show()" % next_reference

[web2py] web2py hosting in India

2010-06-23 Thread Narendran
Hi, Do anyone know if any hosting solution in India supports web2py deployments? -- Thanks Narendran

[web2py] Re: web2py hosting in India

2010-06-23 Thread vihang
You can use service like linode / slicehost /webfaction to deploy. If you need managed deployment optimized for web2py with service in India, contact me Regards Vihang On Jun 24, 11:14 am, Narendran wrote: > Hi, > Do anyone know if any hosting solution in India supports web2py > deployments? > >