[web2py] Re: web2py book links and Dropbox

2017-09-08 Thread admin
Thank you Mr.Massimo Di Pierro. I intend to assimilate your book over the weekend and get back with my views. On Sunday, September 3, 2017 at 10:18:56 PM UTC+5:30, Massimo Di Pierro wrote: > > Dear Web2py users, > > the link to the book is broken and you can find the new (temporary) link > to

[web2py] Re: update_or_insert from dictionary?

2017-07-07 Thread admin
I'll need to try this with a simpler table and dictionary next week. The table and dictionary I'm working with now has about 50 fields, and the insert and update methods are working fine with that. I wrapped it all in a try/except/else statement with db.rollback() and db.commit() to help with

[web2py] Re: update_or_insert from dictionary?

2017-07-07 Thread admin
Sorry about that, my code is in flux right now as I'm working through it. Here are two methods that are working: db[table_name].insert(**r) db(db[table_name]._id == current_id).update(**r) These methods aren't working: db[table_name].update_or_insert(**r) db[table_name].update_or_insert(db[

[web2py] Re: update_or_insert from dictionary?

2017-07-07 Thread admin
Thanks for the quick reply. I'm not having any luck with update_or_insert, but insert and update work fine individually. I'm using keyed tables, so that may be why. On Friday, July 7, 2017 at 11:40:55 AM UTC-7, Anthony wrote: > > On Friday, July 7, 2017 at 2:27:52 PM UTC-4, ad...@swcacloud.c

[web2py] update_or_insert from dictionary?

2017-07-07 Thread admin
We can insert and update from a dictionary, but its not possible to do the same with "update_or_insert"? Is there a simple way to achieve that, or would it require changes to that dal function? http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Inserting-and-updat

[web2py] uploadfs vs uploadfolder

2016-08-26 Thread admin
This works great when using SQLFORM: import fs.s3fs myfs = fs.s3fs.S3FS(bucket, prefix, aws_access_key, aws_secret_key) db.define_table('image',Field( 'image','upload',uploadfs = myfs)) however, when I run this : db.image.insert(image=db.image.image.store(BytesIO(blob, filename))) I get this er

[web2py] Re: storing blob field on s3

2016-08-26 Thread admin
This works fine for me: import fs.s3fs myfs = fs.s3fs.S3FS(bucket, prefix, aws_access_key, aws_secret_key) db.define_table('image',Field('image','upload',uploadfs = myfs)) however, when I run this (which has worked in the past): db.image.insert(image=db.image.image.store(StringIO.StringIO(blob,

[web2py] Re: File upload/download over https freezes site

2015-07-29 Thread admin
7;file','upload')) def upload_test(): form=SQLFORM(db.mytable).process() return dict(form=form) def download(): return response.download(request,db) Also worth noting, it does NOT bog down the server if i download the file through the admin panel over https: ht

[web2py] Problems with routing and URL-s

2014-06-28 Thread Admin GameLingua.com
Welome, I have a new site configured and the routing behaviour is non-deterministic and in many cases wrong. The defaut application is init. There is a pattern based routes.py created but only rewriting static resources (robots, favicon, sitemap). The site address is http://www.gamelingua.com.

[web2py] Re: anybody installed areyouahuman in web2py?

2013-04-20 Thread admin
Ok, happy you like it. But my question was how to install it in web2py. My steps: - copy the ayah.py to models dir - in default/user, added import ayah ayah.configure(, ) ayahhtml = ayah.get_publisher_html() return dict(form=auth(),ayahhtml=ayahhtml) and in the defau

[web2py] anybody installed areyouahuman in web2py?

2013-04-20 Thread admin
I think that www.areyouahuman.com it's a interesting replacement for captcha. Anybody installed it in web2py? Thanks -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an

[web2py] Can I use a modified version of the Fedora script on my site?

2012-03-31 Thread Site Admin
ready for MediWiki <http://ec2scripts.com/welcome/plugin_wiki/page/recipe/8> and Moodle <http://ec2scripts.com/welcome/plugin_wiki/page/recipe/9>, so having one for Web2Py would be great. Thanks, EC2Scripts Site Admin

[web2py] Can I use a modified version of the Fedora setup script on my site?

2012-03-31 Thread Site Admin
eb2Py script would be great.. if that is allowed? Thanks, EC2Scripts Site Admin

Re: [web2py] Re: The Winners! Web2py Application Exhibition Version 3.0

2012-03-08 Thread Mr admin
My Pleasure! Mr.NetAdmin On Thu, Mar 8, 2012 at 1:15 PM, spiffytech wrote: > Yay! Thanks for putting on the contest! > > > On Wednesday, March 7, 2012 1:49:33 PM UTC-5, NetAdmin wrote: >> >> >> 1st Place Prize $100 >> >> Brian Cottingham from the U.S. was the First Place Winner. >> His e

Re: [web2py] Re: The Winners! Web2py Application Exhibition Version 3.0

2012-03-08 Thread Mr admin
web2py project please! > > > Thanks ! > > On Thu, Mar 8, 2012 at 2:19 AM, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> Congratulations. Excellent work! And Thanks to Mr. Admin for organizing >>> the competition. >> >> >

Re: [web2py] Re: Last Day for Submissions! -- Web2py Application Exhibition Version 3.0

2012-03-05 Thread Mr admin
Very soon, I hope. I'm trying to contact the other judges. Mr.NetAdmin On Mon, Mar 5, 2012 at 12:26 PM, spiffytech wrote: > When will the winners be announced? > > > On Feb 14, 11:04 pm, NetAdmin wrote: > > Hello All, > > > > February 15 is the last day for submissions for the > Web2pyApplic

Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Mr admin
Anthony, Thanks for the info. I've forwarded the message to Martin. Mr.NetAdmin On Wed, Dec 15, 2010 at 8:49 PM, Anthony wrote: > There's an error in the Application Exhibition 2.0 index.html view: > > Project (URL): > {{=A(app.url,_href=app.url)}} > Download (URL): > {{=A(app.url_download, _

Re: [web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-12-15 Thread Mr admin
Selecta, I have the link and will download it now! Thanks! Mr.NetAdmin On Wed, Dec 15, 2010 at 5:59 PM, selecta wrote: > btw I was finally able to login to WAE 2.0 app > here is the link to my contribution (which is called pyMantis btw) > http://w2pexhibition.appspot.com/exhibition/default/i

Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-15 Thread Mr admin
Selecta, I'm glad you were able to login! Good Luck! Mr.NetAdmin On Wed, Dec 15, 2010 at 6:01 PM, selecta wrote: > i finally was able to login using google as openid provider :) > http://w2pexhibition.appspot.com/exhibition/default/index/311002 > > On Dec 16, 12:00 am, selecta wrote: > > waa

Re: [web2py] Web2py Application Exhibition and Samsung Galaxy Tab p1000

2010-12-10 Thread Mr admin
Bruno, Yes the plugin will be eligible, and as far as finishing the app... all good programs change and evolve over time, so they're never REALLY ever finished right? They just get a version bump :-) Good Luck! Mr.NetAdmin On Fri, Dec 10, 2010 at 3:00 PM, Bruno Rocha wrote: > If I can fini

Re: [web2py] Web2py Application Exhibition 2.0

2010-12-08 Thread Mr admin
Martin, GREAT! I voted for your sample app and I love the fact that it won't let me vote twice. The only thing I woud change so far is this. Change You already vote this one to this You have already voted for this one -- 1 vote per person Looks GREAT! Thanks Martin Mr.NetAdmin O

Re: [web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-11-08 Thread Mr admin
Sure! Plugins are just miniature applications right? :-) Mr.NetAdmin On Mon, Nov 8, 2010 at 1:13 PM, mr.freeze wrote: > Can we submit be a plugin? > > On Nov 3, 3:18 pm, NetAdmin wrote: > > Web2py Application Exhibition Version 2.0 > > > > Do you have a Web2py app that you'd like to show th

Re: [web2py] Model file variable scope

2010-08-18 Thread Mr admin
Note to self -- use Field because SQLField is deprecated On Tue, Aug 17, 2010 at 4:46 PM, NetAdmin wrote: > in gluon/tools.py, I'm trying to modify the register() function > to save request.vars.get('last_name', None ) to a table defined in > db.py as > db.define_table('tbextra', > SQLField('l

Re: [web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread Mr admin
The first place prize was $100 dollars, 2nd place was $50 On Wed, Aug 4, 2010 at 8:13 AM, mdipierro wrote: > Next time we need a money prize. ;-) > > On Aug 4, 6:22 am, Mr admin wrote: > > The number of participants was two. > > > > Mr.NetAdmin > > &

Re: [web2py] Re: Web2py Application Exhibition -- Winners!

2010-08-04 Thread Mr admin
The number of participants was two. Mr.NetAdmin On Wed, Aug 4, 2010 at 2:49 AM, mdipierro wrote: > Can you post some stats? > Number of participants for example. > > Massimo > > On Aug 3, 2:01 pm, NetAdmin wrote: > > Hello All, > > > > The winners of the Web2py Application Exhibition have bee

Re: [web2py] Ladies and Gentelmen... the web2py book is online

2010-08-03 Thread Mr admin
I can't login, but here is a change for IS_STRONG current * min is minimum length of the value * special is the minimum number of required special characters * is the minimum number of upper case characters = suggested changes =

Re: [web2py] Re: Final Day for WAE Submissions!

2010-07-31 Thread Mr admin
I'll post links to websites for each submission. ( where possible. ) Mr.NetAdmin On Fri, Jul 30, 2010 at 11:12 PM, Iceberg wrote: > On Jul 31, 2:12 am, NetAdmin wrote: > > Web2py Application Exhibition > > > > Submissions must be e-mailed before > > 12:59pm pm CST July 30, 2010 > > > > Do yo

Re: [web2py] Re: Last Week for WAE ( Web2py Application Exhibition )

2010-07-30 Thread Mr admin
Sorry for the slow response. You can send he app as an attachment to mr.netadmin at gmail.com Thanks and good luck! On Wed, Jul 28, 2010 at 11:30 AM, Martin.Mulone wrote: > I make an application, that i developed in last two weeks. Where i > submit or mail to anyone? > > On Jul 22, 12:28 pm, N

Re: [web2py] Hiding fields in a form, depending on a drop down list

2010-06-02 Thread Mr admin
Here's a section of the book that explains how to do conditional fields on forms. http://web2py.com/book/default/section/10/2?search=spouse On Wed, Jun 2, 2010 at 6:14 AM, Sverre wrote: > I want to hide fields in a form, depending on the values of a dropdown > list. Has some a solution?

Re: [web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread Mr admin
Here's an example if what I'm trying to do with NBSP() -- Make a BIG eye-catching response.flash without using the dashes.. See attached file. if form.accepts(request.vars, session): response.flash = TABLE(TR(' '),TR(' '),TR(' '), TR(' Center This ') , TR(' ')

Re: [web2py] A quick question for everyone - generating a random code 'onvalidation'

2010-05-26 Thread Mr admin
OK here's an example of counting matching records with web2py syntax. SQL version select count(*) from tbbooks where id = 1 group by id; Note! if you don't add the GROUP BY clause, you'll get a count of 1 record... even if there a NO MATCHES probably NOT what you intended to do. The

Re: [web2py] How to change field name without losing data?

2010-01-31 Thread Mr admin
If you're using MySQL try this alter table tblname change oldcolumn newcolumn char(15) On Sun, Jan 31, 2010 at 12:04 PM, weheh wrote: > Is there an easy way to rename a field without losing all the data > behind it? I'm not sure I want to go through the trouble of writing > all the data o

[web2py:26186] Re: task forces

2009-07-10 Thread Mr admin
I like the idea! I'd like to be a tester, documenter for the eStore. Sterling On Fri, Jul 10, 2009 at 3:32 PM, mdipierro wrote: > > I think we need to build two task forces. > > 1) to build a CMS > > 2) to build a eStore > > the more overlap the better. We need two project leaders and > volunt

[web2py:25953] Re: web2py via shell account

2009-07-08 Thread Mr admin
MyPassWord On Wed, Jul 8, 2009 at 9:15 AM, Jonathan Lundell wrote: > > On Jul 8, 2009, at 5:13 AM, Mr admin wrote: > > > One thing you can do is, login to the box using ssh, edit your > > models, views and controllers without using the admin interface at > > all. > &g

[web2py:25949] Re: How to create a JavaScript confirmation popup?

2009-07-08 Thread Mr admin
Thanks Massimo, It's GREAT to know that web2py can do that, but I thought I should learn about passing variables between python and web2py using JavaScript. On Mon, Jul 6, 2009 at 4:53 PM, mdipierro wrote: > > hey... web2py does this automatically if you use an input checkbox > with class="de

[web2py:25948] Re: ajax + jquery

2009-07-08 Thread Mr admin
Can you post an example of your code? It might help us find the problem. Sterling On Tue, Jul 7, 2009 at 10:20 PM, kozo wrote: > > hi all, > > i need a basic understanding of ajax^^ > > i have a dynamic table filled with an ajax call.i want to paginate > the > table with an jquery plugin. >

[web2py:25945] Re: web2py via shell account

2009-07-08 Thread Mr admin
Hello, One thing you can do is, login to the box using ssh, edit your models, views and controllers without using the admin interface at all. I use this method most of the time Sterling On Mon, Jul 6, 2009 at 10:04 AM, Jonathan Lundell wrote: > Is it practical to run web2py from a non-ad

[web2py:11473] using t2.search()

2008-11-08 Thread Domain Admin
Does anyone know how to use t2.search()? I've got it working like in the puppies application in the t2 video. I'd like to make it so there's only one input field and set the other options in my code (i.e. remove the dropdown selects and 'refine' checkbox). Is there any way to do this? I've been