all the ones I looked at were nicer than the default layout -
fantastic!
On Nov 6, 4:09 pm, mdipierro wrote:
> I downloaded multiple layouts from the web with a free Artistic
> License and used a script in BeautifulSoup to replace the header, menu
> and content with web2py tags. Then I rearrang
yeah! - can invite again.
Have invited:
denes1...@yahoo.ca
roger.gicq...@gmail.com
mbelle...@gmail.com
whalb...@gmail.com
debe...@yahoo.com
digitalcry...@gmail.com
maxu...@gmail.com
On Nov 9, 2:35 am, Marat Maksumov wrote:
> I am very interested in receiving an invitation to Google Wave...
>
there is already a web2py wave - see if this link works:
https://wave.google.com/wave/#restored:wave:googlewave.com%2521w%252BDPsJaggYA
And if you don't have your invite yet there is a readonly version
here:
http://wavedirectory.appspot.com/init/default/wave/676f6f676c65776176652e636f6d21772b4450
oh right
On Nov 9, 10:01 am, hcvst wrote:
> Hi Richard,
>
> in fact you can write
> athttp://wavedirectory.appspot.com/init/default/wave/676f6f676c65776176...
> too. Unfortunately you need to be logged into wave (to read or write).
> The embed mechanism (an iframe) requi
invited:
encomp...@gmail.com
ka...@gmx.net
monch1...@gmail.com
na...@napas.lt
mp.ch...@gmail.com
(4 invites left)
On Nov 10, 9:40 am, mikech wrote:
> Invite please?
>
> On Nov 7, 4:00 pm, Thadeus Burgess wrote:
>
> > I think we should all start a public web2py wave! :)
>
> > -Thadeus
>
> > On
I don't need this right now, but it's great to have this flexibility
in the future.
Thanks
On Nov 10, 3:57 am, DenesL wrote:
> @ mr.freeze: you are welcome
> @ Massimo: thanks for merging it into web2py
> @ Timbo: LOL, maybe someday.
--~--~-~--~~~---~--~~
You rec
invited:
mft...@gmail.com
leisurehourshobb...@gmail.com
no invites left for now :(
On Nov 11, 10:27 am, Doberman_Illinois
wrote:
> Richard
>
> May I get a invite if any are left
>
> Thank You
> Dennis
> leisurehourshobb...@gmail.com
>
> On Nov 9, 5:56 pm, Ri
My business site: http://sitescraper.net/
On Oct 26, 1:46 pm, mdipierro wrote:
> www.appliedstacks.comis dead. This means I lost a way to keep track
> of web2py sites. So I made something trivial for now:
>
> http://web2py.com/poweredby
>
> I am sure I missing many sites that were reported. Cou
Hello,
I have some floating point numbers in my database which I need to test
for equality. Numbers like "0.3" are failing an equality test.
So, is there a way to store floating point numbers precisely? Or
should I be using something like:
offset = 0.01
(db.table.fp > v - offset)(db.table.fp
necessary for complex tasks.
Richard
On Nov 12, 9:06 am, David wrote:
> Hey guys,
>
> I've been studying up on working with scraping/parsing and remote
> logins for sites that don't have APIs and I came across Twill.
>
> Have any of you used it to automate things like log
OMG that's bad!! For now I have restructured my logic so I can just
deal with integers.
Hopefully decimal support comes soon, though I am using sqlite for
this...
On Nov 12, 3:03 am, Jonathan Lundell wrote:
> On Nov 10, 2009, at 11:49 PM, Richard wrote:
>
> > I have some float
by the browser?
Thanks,
Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email
that blog post got me interested in lxml, which is a very efficient
library with a robust HTML parser.
On Nov 12, 10:51 am, David wrote:
> what DOM parser do you recommend or do you know is available?
>
>
>
> In my search for answers I happened across this link.
>
> http://blog.ianbicking.org/
hmm, guess I should do more form error checking client side then.
Would it be possible for SQLFORM to also do some of the form checks
client side, and cancel submit if there is a problem? Most of the
validators would be easy to implement in Javascript, I imagine.
Richard
On Nov 12, 1:06 pm
I think it's more complex because records in the same table are not in
the same entity group by default. You need to also give records the
same parent. However there are downsides to putting many records in
the same entity group. I am getting my head around this at the moment.
http://code.google.
Hello,
I was wondering if it would be possible/practical for SQLFORM to
support some basic client side checks before submitting to the
server.
SQLFORM has so many features, which I doubt could all be covered
client side, but it would make forms more responsive if atleast a
subset was.
Richard
that sounds like an awesome reuse of the existing SQLFORM
functionality, and would be nice to see live form checks before
pressing submit.
You do an AJAX call whenever the text box changes - wouldn't that
produce too many calls?
Richard
On Nov 13, 1:35 pm, Thadeus Burgess wrote:
&g
Came a across a job that involves web2py at
http://www.getafreelancer.com/projects/Python-Linux/Python-developer-web.html
"""
Description
I need a python developer who has very good knowledge in Python web2py
framework.
You must be strong in networking programming and also know the irc
protocol.
.env.content_length))
db.image.insert(filename=target_filename)
Richard
On Nov 18, 9:23 am, NuclearDragon wrote:
> How can I specify my own filename and upload location for images? I
> can't find in the code where it is doing the upload/save/rename
> processes.
>
> I ha
For my app I explicitly assign user friendly filenames, because my
client also wants to browse the backend upload folder manually.
Is this going to break web2py anywhere?
On Nov 18, 11:27 am, mdipierro wrote:
> you can specify the location
>
> Field('name','upload',uploadfolder='...')
>
> You s
isn't generating that exception every request going to be too much
overhead?
On Nov 19, 7:37 am, mdipierro wrote:
> The fact is, indices must be created only once. If you have the index
> already that line fails. You handle the exception at the web2py level
> but the transcation still aborts. T
what is the use case for updating the row object instead of the
database? I sometimes use update() instead of update_record(), so I
would prefer update() threw an exception.
Is it worth adding the equivalent delete_record()?
On Nov 19, 10:43 am, mdipierro wrote:
> you can do
>
> del db.table[
there is a feature request to add lxml to GAE:
http://code.google.com/p/googleappengine/issues/detail?id=18
On Nov 19, 1:54 am, Carl wrote:
> I saw those postings and checked out lxml.
> alas lxml is built with some C libraries that aren't available on GAE.
>
> On Nov 18, 2:10 pm, DenesL wrote
-soup.htm) because I prefer using the ElementTree interface.
Richard
On Nov 19, 1:53 pm, mdipierro wrote:
> It is not clear to me what does lxml do that element-tree does. Is it
> just an issue of speed?
>
> On Nov 18, 8:52 pm, Mark Larsen wrote:
>
> > I've had good e
don't want to create a sub-
table!
Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group
I've fallen in love with the StackOverflow interface! Would anyone be
interested in working on a StackOverflow clone implemented in web2py?
Worked could be based off an existing Django clone:
http://github.com/cnprog/CNPROG/tree
(example usage here: http://cnprog.com/)
Thoughts?
Ri
have sent you an email.
On Nov 21, 2:25 am, Julio wrote:
> Hey Richard,
>
> I am working on a similar interface 100% web2py, what really would
> help me is some sort of technical workflow, or documentation regarding
> the handling of the posts, up/down pointing syste
n Python web2py framework and Good in
networking programming and also know the irc protocol +Mysql.
Don't hesitate to contact me for further information
"""
On Nov 16, 10:59 am, Richard wrote:
> Came a across a job that involves web2py
> athttp://www.getafreelancer.c
could a new validator be added to check the mime type from the POSTed
content-type?
IS_MIME_TYPE('png')
Django has something like this:
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/?from=olddocs#uploadedfile-objects
Richard
On Nov 23, 2:50 pm, Thadeus Burgess wro
ah OK - I didn't know the record update could be split like that.
Neat.
Richard
On Nov 19, 1:23 pm, mdipierro wrote:
> A Row object extends a dictionary and inherits an update method. It
> only updates the dict not the record. The us of it is that you can do:
>
> row.update(
Modules are only executed once, so could you create the index there?
Or use a database flag.
What I do is create a special function in the controller like
"initiate_database()" and put my code there and then manually call
this function. Not a neat solution, but it works.
Richard
On
ction for our
> > users, so I'm not worried about the download aspect.
>
> > Thanks especially to Richard for this!:
> > "
> > form = SQLFORM(db.image)
> > if form.accepts(request.vars, session):
> > target_filename = ...
> > # nee
IIRC, you can use db.table.field.store(request.vars.field) to get the
web2py generated filename.
On Nov 24, 2:53 pm, Thadeus Burgess wrote:
> The problem is I am trying to get the file from the function in
> SQLFORM.onvalidation... and this happens before the file gets renamed or
> saved to the
no not a guarantee, but would it be worth adding anyway?
On Nov 24, 4:10 pm, mdipierro wrote:
> Unfortunately checking the mime type is no guarantee that the file
> format is conform to specs.
>
> On Nov 23, 7:49 pm, Richard wrote:
>
> > could a new validator be added t
os.remove(tmppath)
> except:
> pass
>
> #...
> form.accepts(...onvalidation=is_valid_tar)
>
> -Thadeus
>
> On Mon, Nov 23, 2009 at 10:31 PM, Richard wrote:
>
> > IIRC, you can use db.table.field.store(request.vars.field) to get the
> > web
if you want something simple for GAE just use the built in webapp
framework from Google:
http://code.google.com/appengine/docs/python/tools/webapp/
On Nov 25, 4:17 am, Pynthon wrote:
> Ah, OK thanks for the info Massimo. You know last week I was thinking
> about web2py. Well not about web2py b
to support full text search you can generate all the N-grams of each
record and then stored then in a StringListProperty:
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#StringListProperty
On Nov 28, 6:20 am, vince wrote:
> i've notice the new DAL do support
fine
This is a low bandwidth site so efficiency is not important. But the
above strategy seems cumbersome - is there a better way?
thanks,
Richard
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send em
I would be fine with (2)
Do people use examples.w2p?
When I need to find something out I search the book and this forum.
On Dec 3, 11:04 am, mdipierro wrote:
> For the future version of web2py
>
> should we (1) continue to distribute admin.w2p, welcome.wp2,
> examples.w2p and unpack them on
monthly post numbers are available here:
http://groups.google.com/group/web2py/about
On Dec 3, 1:21 pm, mdipierro wrote:
> I agree but that is difficult to measure.
>
> On Dec 2, 7:59 pm, waTR wrote:
>
> > I think a more valid statistic is # of postings/ month. I would argue
> > an inactive us
und to be more questions from noobs like me. Lots of
questions is a good sign that lots of people are interested.
On Dec 3, 3:41 pm, Yarko Tymciurak
wrote:
> On Dec 2, 10:10 pm, Richard wrote:
>
> > monthly post numbers are available
> > here:http://groups.google.com/group/web2p
any ideas?
On Dec 2, 6:29 pm, Richard wrote:
> Hello,
>
> I have an ongoing background task for processing my database.
> I want this task to automatically start when I run my app somewhere
> (can assume it is a Linux box), and to restart if it somehow dies.
>
> This i
For those who don't know, Julio is the one behind the slick pyforum
(see pyforum.org), so this project is worth keeping track of.
On Dec 8, 11:39 am, mdipierro wrote:
> +1
>
> On Dec 7, 9:39 am,Julio wrote:
>
>
>
> > Community,
>
> > Apologies for the double posting, seems like the discussion s
SysAdmin role be outside the point system?
It is quite easy to gain points on SO if you ask lots of questions, so
a person with a lot of points is not necessarily responsible/
knowledgeable.
Richard
On Dec 10, 12:03 pm, Richard wrote:
> For those who don't know, Julio is the one behind t
/WishList).
I would be keen to collaborate with someone on this.
Richard
On Dec 9, 2:26 pm, David wrote:
> Just wanted to make a note that the eStore appliance doesn't work "out
> of the box" on my PostgreSQL server. It does work with SQLite
> however.
>
> O
this seems useful for a cross database search application I had in
mind. Would you be able to describe more, particularly its limitations
and how you are using it?
Also, why did you role your own code for ngram similarity instead of
using the builtin difflib.SequenceMatcher?
Richard
On Dec 12
how did you add belongs support for GAE? I remember in a previous
discussion this was considered not possible/practical:
http://code.google.com/p/web2py/issues/detail?id=56&can=1
On Dec 12, 4:42 pm, mdipierro wrote:
> I have re-factored a lot of code in gluon/contrib/gql.py in order to
> make i
o
>
> On Dec 12, 6:19 pm, Richard wrote:
>
>
>
> > how did you add belongs support for GAE? I remember in a previous
> > discussion this was considered not
> > possible/practical:http://code.google.com/p/web2py/issues/detail?id=56&can=1
>
> > On Dec 12
try adding your application directory to sys.path
On Dec 15, 5:35 am, Dan wrote:
> I need to do some bulk operations (eg delete) on data in the GAE
> datastore for a web2py application, and was trying to follow the
> example in the GAE docs
> here:http://code.google.com/appengine/articles/remot
I uploaded an app to GAE and it triggered an error from trying to
create a missing directory:
File "/gluon/main.py", line 432, in wsgibase
os.mkdir(path)
AttributeError: 'module' object has no attribute 'mkdir'
I have already run the app locally before uploading, so all the
directories exist.
and as you said, you will need the __init__.py files
On Dec 15, 8:45 am, Richard wrote:
> try adding your application directory to sys.path
>
> On Dec 15, 5:35 am, Dan wrote:
>
> > I need to do some bulk operations (eg delete) on data in the GAE
> > datastore for a web
I'm curious, where did you find these reports?
On Dec 16, 5:17 am, mdipierro wrote:
> There are a number of security advisory reports online about pyforum,
> some from reputable sources.
>
> They report two vulnerabilities:
>
> 1) What they refer to as a backdoor but they describe as a different
keep in mind that currently it is only for applications that have
enabled billing.
On Dec 16, 2:43 am, mdipierro wrote:
> This is a good time to be rewriting the DAL:
>
> http://googleappengine.blogspot.com/2009/12/app-engine-sdk-130-releas...
>
> We should take advantage of this.
--
You recei
> GAE does not allow write access to the file system.
Yep - that's why there is an error. web2py shouldn't be trying to
create those directories anyway because they were uploaded with the
app.
So is the errors directory the problem?
Richard
On Dec 16, 7:48 am, Vidul Petrov wrot
seems fishy. If they found a genuine bug why can't they just send a
bug report like the rest of us, instead of that veiled threat.
On Dec 16, 7:47 am, Julio wrote:
> Massimo,
>
> I also received the email from a Vietnamese (or chinese, can't
> remember) "security" firm that basically told me the
If I had watched when starting with web2py it would have saved me a
lot of time!
The file is 250MB and the resolution higher quality than needed, so it
could be cut down. Although the vimeo upload limit is apparently 500MB
so that shouldn't have been the problem...
On Dec 17, 11:46 am, Mengu wr
Success!
http://www.vimeo.com/8229814
On Dec 17, 2:09 pm, Mengu wrote:
> Richard,
>
> unfortunately i am not that much aware of compressing video files. if
> you have any idea how to compress the video more, please do so.
>
> Mengu
>
> On Dec 17, 3:01 am, Richard wrote
that pages style looks like Drupal - where can I get it?!
On Dec 19, 7:30 am, mdipierro wrote:
> http://www.web2py.com/semantic
>
> We could use some testers.
>
> Massimo
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group,
I got it to work, and the discussion was here:
http://groups.google.com/group/web2py/browse_thread/thread/e5e38fca6fa3f378
"The upload was so fast that it had finished before the first
progress
bar call. At the end of the upload the cache is cleared, so that the
first progress bar call returned an
is that web2py theme downloadable anywhere, for example at
http://web2py.com/layouts/plugin_layouts
On Dec 20, 9:55 am, mdipierro wrote:
> I think it is from drupal. I took it from the official Linked Data web
> site.
>
> On Dec 19, 3:09 pm, Richard wrote:
>
>
>
> >
BUMP
On Nov 20, 4:41 pm, Richard wrote:
> Hello,
>
> a few months back there was a discussion about adding ListProperty
> support to the DAL. How is that
> going?http://groups.google.com/group/web2py/browse_thread/thread/d3a8fcffb8...
>
> I have been using that type o
thanks!
On Dec 21, 8:21 am, Massimo Di Pierro wrote:
> web2py.plugin.drupal_theme_ld.w2p
> 268KViewDownload
>
>
>
> Install this plugin to get the new theme. The menu is hardcoded so
> needs to be edited to use MENU(response.menu)
--
You received this message because you are subscribed to t
way to list the exposed functions in a controller?
Here is some nice CSS to create a graphical layout:
http://astuteo.com/slickmap/demo/
Richard
On Dec 22, 8:15 pm, Benigno wrote:
> Actually, if you have anything dynamic (say you have a blog, you may
> have as many pages as posts, p
another thing to watch out for is reserved keywords in postgres, which
has more restrictions than sqlite. Though apparently the new DAL will
take care of this.
On Dec 23, 8:07 am, Adolfo wrote:
> Hello
>
> I've been working with sqlite for develpment but now that i have
> finish with my app id l
On Dec 26, 7:01 am, Johann Spies wrote:
> 2009/12/25 KMax :> Warm wishes from cold Russia!
>
> And from warm South Africa!
And hot Australia, Merry Christmas!
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to
he controllers - using T()
>
> Thanks to Richard , for original function that I
> made improvements
>
> Put in your model/module:
> [image: Select]
>
> def breadcrumbs(arg_title=None):
> "Create breadcrumb links for current request"
> # make link
is there a public repository available for the existing code?
Richard
On Dec 29, 1:46 pm, Thadeus Burgess wrote:
> Blogitize is my personal blogging software I am making in web2py :)
>
> I don't like how you need different systems for different things,
> (wordpress to blog, a
did you manage to get web2py running with 2.4? I noticed web2py uses
(a if Condition else b), which was syntax introduced in 2.5.
Richard
On Nov 22, 11:12 am, pepe_eloy wrote:
> Returning to the theme about installhashlibin python 2.4,, excuse my
> ignorance, but is it possible to install
ntry about this.
>
> On Dec 29, 7:48 am, Richard wrote:
>
>
>
> > did you manage to get web2py running with 2.4? I noticed web2py uses
> > (a if Condition else b), which was syntax introduced in 2.5.
> > Richard
>
> > On Nov 22, 11:12 am, pepe_eloy wro
entry but its pid is not active (not in /
proc) then restart the background task and update the pid
- Else the task is running fine
Perhaps you could adapt that to your needs, assuming you are using
Linux.
Richard
On Dec 30 2009, 3:26 pm, Auden RovelleQuartz
wrote:
> any simple example o
great!
The updated API is much better.
On Dec 30 2009, 6:17 pm, mdipierro wrote:
> I changed this. It was UGLY.
>
> Now you can do:
>
> from gluon.contrib.gql import gae
> db.define_table('person',Field('names',gae.StringListProperty()))
>
> and you can do:
>
> db.person.insert(name
>
>
>
> > Great! I am also trying to implement this. Richard and Auden, have
> > you gotten anything working yet? How about we share solutions?
>
> > My current difficulty is figuring out where to create the persistent
> > background thread.
> > - If
how about setting a huge timeout?
On Jan 7, 7:45 am, mdipierro wrote:
> ajax calls to keep session alive
>
> On Jan 6, 2:02 pm, Thadeus Burgess wrote:
>
>
>
> > (this) being using ajax calls or (this) being keeping the session alive?
>
> > -Thadeus
>
> > On Wed, Jan 6, 2010 at 1:53 PM, mdipierr
couple of other measures, like auto-saving the
> > post, or using ajax to keep the session alive. I think auto-saving
> > might be the best option, since it will save the post but the session
> > will time out, that way nobody could sit down at my computer while I
> > am logge
would it be possible to host the main web2py site on GAE to avoid
these problems?
On Jan 9, 9:32 am, mdipierro wrote:
> This time I was able to see the error. It was an out of memory error
> on os.fork. This is a virtual machine with 256MB Ram and I had not
> rebooted in long time (only restart
are there any web2py job board apps available?
(I enquired about this earlier:
http://groups.google.com/group/web2py/browse_thread/thread/183c88915654276e)
On Jan 11, 2:28 am, mdipierro wrote:
> we should add this.
>
> On Jan 7, 10:53 pm, Jason Brower wrote:
>
>
>
> > On Thu, 2010-01-07 at 11:
; On Thu, Jan 7, 2010 at 2:57 PM, Richard wrote:
> > is there a way to disable timeout and have sessions last forever? That
> > would be useful for my intranet app where security is not an issue.
>
>
--
You received this message because you are subscribed to the Google Groups
&q
I would also find this useful - an example that uploads 0-N files with
a button to add additional upload inputs.
On Jan 15, 5:12 am, Yannick wrote:
> gmail was just an example... Just to explain what I meant...
> I basically looking for an example to upload several file at once
> (Compatible und
I agree the docs fragmentation is a serious problem. Perhaps Drupal
could be used until a robust web2py based CMS is available.
It would be great if content from the official manual could also be
included in the public docs.
Richard
On Jan 16, 8:47 pm, Anand Vaidya wrote:
> On Jan 16, 2:12
quot;"
I noticed the t4 repository hasn't been committed to in 11 weeks
(https://code.launchpad.net/t4), so was wondering what are the
intentions for it.
I was hoping to build on t4 for my own CMS to avoid making my code
redundant later.
Richard
--
You received this message because you
hi Adnan,
did you manage to get web2py running on HostGator?
Richard
On Jan 2, 12:38 pm, Adnan Smajlovic wrote:
> I am trying to workout the installation problem with HostGator, who
> unfortunately only supports Python 2.4 at the moment. I understand that I
> should go with 2.5 an
I would like to show dynamic pretty URLs from the root of my app, such
as:
mysite/pretty-url
instead of:
mysite/blog/post/show/pretty-url
Do I need routes for this?
Richard
On Jan 22, 1:38 am, pistacchio wrote:
> hi to all!
> a couple of questions. i'm writing a simple blog to
Have you come across a JQuery plugin that supports rapidly skimming
through an image set like Google's Fast Flip?
For demo see http://fastflip.googlelabs.com/
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to w
a few problems, which I will email to you.
Richard
On Jan 24, 9:48 pm, Thadeus Burgess wrote:
> Ok. So I give it to you, the source of blogitizor. Its not my best
> work, but I am limited by the quirks of web applications :(
>
> http://code.google.com/p/blogitizor/
>
> There
"""the XML is a patch that Massimo has obviously yet to apply. It is
a
bug in web2py WIKI helper instead of passing extras to markdown its
passing extras to XML which is incorrect, you can look at my google
clone of web2py gluon/contrib/markdown/__init__.py for the patch."""
On Jan 25, 6:45 am, m
uploading a file generates an error when the uploads directory does
not exist. Instead of generating an error could web2py just create the
directory?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@goo
Thanks for taking the effort to extract this from your personal site.
Have submitted those issues as tickets.
Ah I thought the admin layout seemed familiar - I had been evaluating
RadiantCMS (RoR), which FrogCMS is a PHP clone of.
Richard
On Jan 25, 12:15 pm, Thadeus Burgess wrote:
> And
I just liked the Admin page layout and felt it was
> suiting.
>
> -Thadeus
>
>
>
> On Sun, Jan 24, 2010 at 7:43 PM, Richard wrote:
> > Thanks for taking the effort to extract this from your personal site.
> > Have submitted those issues as tickets.
>
> >
d have it hook into hazelcms as well.
>
> > So really Ive wondered do we need a CMS or a blog or a wiki, or do we
> > need a true pluggable system that can become anything with the right
> > mix and match of plugins
>
> > -Thadeus
>
> > On Mon, Jan 25, 2010 a
perhaps because OP asked for private reply.
On Jan 27, 8:33 am, mdipierro wrote:
> for what?
>
> On Jan 26, 2:24 pm, Alexandre Andrade
> wrote:
>
>
>
> > I apologize.
>
> > 2010/1/26 Alexandre Andrade
>
> > > Mr.,
>
> > > I'm insterested in your offer.
>
> > > My websites, hipercenter.com/init
I totally agree - the manual is a great resource but the PDF format
makes it hard to traverse and doesn't keep up with new features.
Django docs are excellent.
This was brought up previously and the main obstacle (IIRC) is Massimo
needs publications to justify working on web2py for his university.
I want to get the ID of a record with certain fields, and create it if
not already existing. Is there a shortcut for this common operation?
In Django it is called "get_or_create()"
Also, is there a shortcut for update_or_create()?
Thanks,
Richard
--
You received this message becau
'table' is a DAL table reference, such as 'db.person'
'fields' is a dict, such as {'parent': 4, name: 'Richard'}
"""
logic = None
for field, value in fields.items():
e = table[field] == value
thanks that's much neater.
> does not do what you think it does.
can you explain? It worked for my test cases...
> record = db(logic).select(table['id']).first()
I noticed you removed the ID selection part - is there any efficiency
gained in just selecting the ID?
Richard
Would these shortcuts belong in the DAL or a plugin?
> db(logic).count()
> since you do not need the record. You just need to know if it exists.
I also need to know its ID.
On Jan 30, 1:57 am, mdipierro wrote:
> On Jan 28, 11:06 pm, Richard wrote:
>
> > thanks
how about JQuery UI: http://jqueryui.com/demos/
It handles drag and drop, tabs, sliders, etc, and can be hosted on
Google: http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI
On Feb 1, 5:28 am, weheh wrote:
> Motto favoloso, MDP. Genio.
--
You received this message because y
es?
Also there are a lot of catch all exceptions that could potentially
mask other problems, eg:
try:
from google.appengine.api.urlfetch import fetch
return fetch(url).content
except:
import urllib
return urllib.urlopen(url).read()
Richard
--
You receiv
catch-all except left and they should be removed.
>
> On Jan 31, 9:03 pm, Richard wrote:
>
>
>
> > Browsing through gluon I noticed many inconsistencies such as spacing
> > around operators (a=1; a =1; a = 1), spacing between arguments (a,b,
> > c ,d), string quo
If I understand correctly, fetch() was added to web2py because at the
time GAE did not support urllib2.
Now GAE does support urllib2 which makes fetch() sort of redundant,
but we need to keep it for backward compatibility.
I found that urllib2 on GAE does not handle cookies as normal, so have
been
I just experienced the same problem using "app" on Google App Engine,
which wasted some time - it will be neat when the new DAL takes care
of these problems! (It will, right?)
On Feb 2, 8:48 am, mdipierro wrote:
> Hi Andreas,
>
> you have
>
> Field("date", 'date', unique = True)
>
> "date" is a
501 - 600 of 4772 matches
Mail list logo