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
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
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[
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
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
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
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,
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
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.
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
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
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
eb2Py script would be great.. if that is allowed?
Thanks,
EC2Scripts Site 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
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.
>>
>>
>
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
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, _
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
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
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
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
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
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
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
> >
&
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
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 =
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
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
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?
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(' ')
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
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
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
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
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
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.
>
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
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
38 matches
Mail list logo