[web2py] Re: Plugin system status

2010-02-25 Thread pistacchio
i'm late in the whole "plugin" discussion, i didn't really follow it from start (being new to web2py). my only question is: what is the _scope_ of plugins? as i got it correctly, there's an ongoing debate on the form of plugins, classes vs directories. if we're talking about small things like "dis

[web2py] Re: they are copying us....

2010-02-16 Thread pistacchio
didn't get it as a joke, sorry for that :) On Feb 16, 11:17 am, Kuba Kucharski wrote: > lol, I understood "copying us" was clearly a semi-joke.. a sarcasm.. > "why so serious, son?" :)) > > -- > Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" gr

[web2py] Re: they are copying us....

2010-02-16 Thread pistacchio
hi massimo, i really appreciate your work on web2py. the product is excellent, i've just launched my first site using it and other two are on the work. i like the new documentation (how it's shaping up) and the way you "rule" the community around web2py prove that your way is right. i mean, you do

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

2010-02-15 Thread pistacchio
hi, just a quick question, maybe already discussed and i missed it. the wiki pages connected with the book are for additional examples and use cases. what are the comments for? for example, i wanted to point out that on this page http://web2py.com/book/default/section/6/5, in the "and operator" se

[web2py] Re: how to deploy web2py for a single app?

2010-02-15 Thread pistacchio
it is not clear enough and maybe needs to be explained a bit better. if it is not documented, such short questions can help pointing out missing parts of the documentation itself. On Feb 14, 7:50 pm, mdipierro wrote: > call it "init" > > On Feb 14, 12:36 pm, pistacchio wrote

[web2py] how to deploy web2py for a single app?

2010-02-14 Thread pistacchio
hi, i have my application in the standard directory /applications/myapp i'm deployig it in a production env (webfaction) using its web2py script. once set its routes, i can access my applications like myaccount.webfactional.com/myapp, but i'd like to have it like the root application. how can i de

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

2010-02-12 Thread pistacchio
seems like a very promising start! i was happy to donate (even if i still don't see the counter going up :( ) i'll contribute as i can On Feb 12, 2:30 am, mdipierro wrote: > http://web2py.com/book > > This is only for testing purposes. > Please try get an account and send me some feedback. > > Y

[web2py] Re: powered by drupal?

2010-02-10 Thread pistacchio
On Feb 9, 12:28 am, Brian M wrote: > Credibility wise I should think that having what's preceived as "poor" > documentation is worse than having good documentation that just > happens to not be powered by the framework being documented. +1 Some days ago web2py popped up on reddit where frequent

[web2py] Re: PIL under web2py test server

2010-02-08 Thread pistacchio
thanks, running from source solved the problem On Feb 9, 1:41 am, Richard wrote: > on Linux I would try starting the server with "python2.6 web2py.py" > > On Feb 9, 10:25 am, pistacchio wrote: > > > > > i checked it via the web shell. indeed it's a dif

[web2py] Re: PIL under web2py test server

2010-02-08 Thread pistacchio
> import sys > >>> print sys.version > > Make sure web2py is running on the same version that you installed PIL. > > -Thadeus > > > > On Mon, Feb 8, 2010 at 3:13 PM, pistacchio wrote: > > oh... how to check and set? > > > On 8 Feb, 22:09,

[web2py] Re: PIL under web2py test server

2010-02-08 Thread pistacchio
oh... how to check and set? On 8 Feb, 22:09, Thadeus Burgess wrote: > is web2py running on python 2.6.1 or the built-in python 2.4? ? > -Thadeus > > > > On Mon, Feb 8, 2010 at 3:02 PM, pistacchio wrote: > > Hi to all, > > I'm running python 2.6.1 on MacOSX

[web2py] PIL under web2py test server

2010-02-08 Thread pistacchio
Hi to all, I'm running python 2.6.1 on MacOSX Snow Leopard. I installed PIL (the image manipulation library) with easy_install. If I run python in terminal, import Image is accepted. When trying import Image in a controller of web2py (its own test server), it tells me that there's no library calle

[web2py] Re: for your info

2010-02-08 Thread pistacchio
my two cents: decide where to host this new documentation (http://wiki.web2py.com/ may be the most obvious bet). set up a page of links that reproduces the tree structure of the pdf summary. then one by one, anyone can copy / past text from the pdf to the new pages and format it. this is the most

[web2py] Re: about image uploads

2010-02-01 Thread pistacchio
>     response.headers['Content-Type']='image/jpeg' >     img = db(db.images.id == request.args[0]).select().first() or > redirect('somewhere') >     return response.stream(open(os.path.join > (request.folder,'uploads',img.image),'rb'

[web2py] Re: about image uploads

2010-01-31 Thread pistacchio
; + request.application + '/uploads/' + img.image, 'rb')) this allows me to get my jpg images through http://mysite/myapp/images/show/4 On 31 Gen, 17:44, pistacchio wrote: > so, if if i got it correctly, wouldn'thttp://myhost/myapp/mycontrol/download/4 > return

[web2py] Re: about image uploads

2010-01-31 Thread pistacchio
he static link to reference the > download action from other apps. > > On Jan 31, 10:27 am, pistacchio wrote: > > > > > hi! > > i've seen that i can retrieve uploaded images with > > > {{=URL(r=request, f='download', args= IMAGE)}} > &g

[web2py] about image uploads

2010-01-31 Thread pistacchio
hi! i've seen that i can retrieve uploaded images with {{=URL(r=request, f='download', args= IMAGE)}} coupled with the standard "download" method. now, if i want to statically save a reference to the image (like saving the string "http://groups.google.com/group/web2py?hl=en.

[web2py] Re: local_import

2010-01-31 Thread pistacchio
time. > > On Jan 31, 8:02 am, pistacchio wrote: > > > > > i've noticed that shutting web2py server down and restarting solves > > the problem. are those modules loaded at startup times? how to debug > > them? > > thanks > > > On 31 Gen, 14:42, pist

[web2py] Re: local_import

2010-01-31 Thread pistacchio
i've noticed that shutting web2py server down and restarting solves the problem. are those modules loaded at startup times? how to debug them? thanks On 31 Gen, 14:42, pistacchio wrote: > i think the problem is a bit deeper.. after having changed the name it > started working w

[web2py] Re: local_import

2010-01-31 Thread pistacchio
if the module was cached and the server (web2py develop server under mac) doesn't update to the current version. any help? On 31 Gen, 12:05, pistacchio wrote: > Hi, > i have a file named bb.py in my application's modules directory. i > import it with local_import('bb'

[web2py] local_import

2010-01-31 Thread pistacchio
Hi, i have a file named bb.py in my application's modules directory. i import it with local_import('bb'). i made some changes to it and i notice that the program no longer loads them (but keeps working like it were using an older version). so i renamed the file to bb2.py and it kept working. if i u

[web2py] Re: Form not working....

2010-01-29 Thread pistacchio
hi jason, by writing orders = SQLFORM(db.numbers) you are assigning to the variable "orders" the form. in the following line you return form=form, but the latter is a null object. so, either you change the name of the variable like this: form = SQLFORM(db.numbers) return dict(form=form) {{=form}

[web2py] Re: New site in web2py

2010-01-28 Thread pistacchio
Gratz :) Looks good to me On Jan 28, 6:45 pm, Leandro - ProfessionalIT wrote: > Friends, > >     The new site in web2py made by my company: ProfessionalIT. > >     KZero Consultoria:http://www.kzeroconsultoria.com.br > > -- Leandro. -- You received this message because you are subscribed to the

[web2py] Re: state of documentation: why pdf?

2010-01-28 Thread pistacchio
On Jan 28, 12:48 pm, Richard wrote: > This was brought up previously and the main obstacle (IIRC) is Massimo > needs publications to justify working on web2py for his university. > Hopefully a compromise can be reached. if this is the reason (and it is indeed a valid one), than nobody would ke

[web2py] state of documentation: why pdf?

2010-01-28 Thread pistacchio
hi to all, after a long session of web2py coding, i feel now a bit frustrated by the documentation. i don't think that .pdf is the best format for documenting an opensource project. every time you need to look up something you have to search the whole document for a keyword and read through the fo

[web2py] Re: Web2py for PHP

2010-01-26 Thread pistacchio
more) elegant. But you're wrong, PHP has > namespaces. > > On 25 jan, 18:27, pistacchio wrote: > > > > > python is a very elegant and mature language. php has gained a huge > > popularity more for the moment when it came out that for the goodness > >

[web2py] Re: web2py irc channel

2010-01-26 Thread pistacchio
i wasn't aware of that, see you there! :) On Jan 26, 9:23 am, Mengu wrote: > Right now, there are 16 web2py devs on irc.freenode.net :) > > On 25 Ocak, 21:14, pistacchio wrote: > > > > > hi, > > seen how active the community around web2py is (often a post o

[web2py] Re: Web2py for PHP

2010-01-25 Thread pistacchio
hi, this is certainly not the place to start a php vs python debate, but unless you have very valid reasons to use php, i'd suggest to stick with python. python is a very elegant and mature language. php has gained a huge popularity more for the moment when it came out that for the goodness of the

[web2py] Re: urlify

2010-01-24 Thread pistacchio
I'm ok with slugify, but the reason i chose "urlify" is that slug is not really a mvc term. It comes from the journalistic jargon and it's been adopted by the original Django developers that were working on a framework to build a newspaper site on. I don't think that "slug", outside the Django com

[web2py] Re: Group By + Count

2010-01-24 Thread pistacchio
Nevermind, i found it in the book minutes after posting :) For those interested: count = db.table.field.count() result = db().select(db.table.field, count, groupby = db.table.field) On 24 Gen, 18:22, pistacchio wrote: > How to translate the following SQL query in a web2py DAL express

[web2py] Group By + Count

2010-01-24 Thread pistacchio
How to translate the following SQL query in a web2py DAL expression? Thanks SELECT field, count(*) FROM table GROUP BY field -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubs

[web2py] Re: form.accepts: get id

2010-01-24 Thread pistacchio
worked, thank you :) On 24 Gen, 09:59, Thadeus Burgess wrote: > form.vars.id > -Thadeus > > > > On Sun, Jan 24, 2010 at 2:55 AM, pistacchio wrote: > > Hi, > > once a record has been inserted with form.accepts, how to know the id > > of that record? Sure, o

[web2py] Re: SQLFORM: add fields

2010-01-24 Thread pistacchio
thanks, that helped. i was stuck on the "string" representation of it. On 24 Gen, 14:55, DenesL wrote: > Fromhttp://groups.google.com/group/web2py/msg/e6acbb8df0db8e64 > > > any helpers, including a form, is a tree: > > form[0] is the table in the form > form[0][i] is the i-th row > form[0][i][1

[web2py] form.accepts: get id

2010-01-24 Thread pistacchio
Hi, once a record has been inserted with form.accepts, how to know the id of that record? Sure, one can performa a select and get the max id, and in most cases this would work, but it's not safe as it *could* happen that another record is inserted in between the time of the insert and the time of t

[web2py] SQLFORM: add fields

2010-01-24 Thread pistacchio
Hi, is there a standard way to add fields to a form generate via SQLFORM? I know I can select which fields to display out of the ones taken from the database, but what if i want to insert another field to manage something in a manual way? An example is posting a blog entry. Everything generated b

[web2py] Re: Problem uploading images

2010-01-23 Thread pistacchio
ox ? > If you use wing IDE try to put a  break point on form.accepts() and > see the contain of request sent... > In your model do you have a validator IS_IMAGE() ?  (Just to know > whether or not there are further validation on the background running > when you upload a file)... &

[web2py] Re: Problem uploading images

2010-01-23 Thread pistacchio
gt; On Jan 23, 5:00 am, pistacchio wrote: > > > > > Hi, > > in a very simple image uploading form (we2py server) i'm facing the > > annoying problem of not being able to upload images 80% of the times. > > I select an image and the page remains in a "waiting

[web2py] Problem uploading images

2010-01-23 Thread pistacchio
Hi, in a very simple image uploading form (we2py server) i'm facing the annoying problem of not being able to upload images 80% of the times. I select an image and the page remains in a "waiting for localhost" state. Other times it simply works (also with the same image). What could it depend on? t

[web2py] Alternative to reCaptcha

2010-01-21 Thread pistacchio
Hi, I think it is really cool that web2py works under the hood to keep a site secure (sql injection, xss...) and that it integrates and encourages reCaptcha. As a user, though, i find captchas, in general, and reCaptcha in particular to be annoying and invasive. For a small site that I'm building

[web2py] Page processing time

2010-01-21 Thread pistacchio
Hi again! I don't know if this may make any sense as a standard feature, but anyhow... How can I calculate, with a fairly exact approximation, the total time taken to generate a page? What is a reliable "entry point" and "exit point" in web2py page life cycle? In other words: how to get he number o

[web2py] "Slug" field plus database actions

2010-01-21 Thread pistacchio
hi to all! a couple of questions. i'm writing a simple blog to get used to web2py and get my hands dirty with it (and i love it so far!). each blog post has a title. as i want that title to be in the url when retrieving the post, i need what in django is called a "slug" field, or a pretty, url-fr

[web2py:31102] Re: Url mapping

2009-09-16 Thread pistacchio
i did that with the URL tag. :-) On 16 Set, 10:57, pistacchio wrote: > Hi, > in hand-writing links (not using A, for example), what is the correct > way to map urls? Like, I'm on the the > pagehttp://localhost:8000/myapp/user/login > > I wanto to simply linkhttp://loc

[web2py:31101] Url mapping

2009-09-16 Thread pistacchio
Hi, in hand-writing links (not using A, for example), what is the correct way to map urls? Like, I'm on the the page http://localhost:8000/myapp/user/login I wanto to simply link http://localhost:8000/myapp/posts/show/, but: 1. linking "/posts/show/" will go to http://localhost:8000/posts/show/

[web2py:30228] where is the documentation?

2009-09-06 Thread pistacchio
hi, i'm about to begin working on a new site. taking a break from asp.net and php, i want to give web2py a try. i've used django before, but i cannot get along with its lack of db migration. now, for what i've read, web2py sounds wonderful. only, i'm a supporter of the theory that half of the val