Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Tiago Almeida
n I cannot deploy >> tested code using the built-in editor. >> >> >> On Sat, May 5, 2012 at 8:49 PM, Tiago Almeida >> wrote: >> >>> Don't know why one does not use an oodbms. I've never used one. Are >>> there any serious alternatives

Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Tiago Almeida
mic > > 2012/5/5 Massimo Di Pierro : > > > > > > On Saturday, 5 May 2012 11:51:22 UTC-5, Tiago Almeida wrote: > >> > >> Thanks for the comment. This is an interesting debate. > >> > >> Sábado, 5 de Maio de 2012 17:13:07 UTC+1, Massimo Di Pie

Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Tiago Almeida
Thanks for the comment. This is an interesting debate. Sábado, 5 de Maio de 2012 17:13:07 UTC+1, Massimo Di Pierro escreveu: > > On Saturday, 5 May 2012 10:23:34 UTC-5, Tiago Almeida wrote: >> >> Hi, >> The issue about dal/orm, like Anthony said, there are tradeoffs to &g

Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Tiago Almeida
feira, 4 de Maio de 2012 20:18:02 UTC+1, Mariano Reingart escreveu: > > On Fri, May 4, 2012 at 12:41 AM, Massimo Di Pierro > wrote: > > Dear Tiago, > > > > No problem at all. All comments can help us improve and or give us an > > opportunity for clarification. &g

[web2py] Re: An insult to web2py ?

2012-05-03 Thread Tiago Almeida
Hi, Other than trying to start a flame war, I don't see reasons for bringing my comment from the portuguese python group to here. Anyway, since Anthony cared to comment I'll also comment. - I'm glad DAL was re-written. When I left web2py it was a mess and there were many objections to touching

Re: [web2py] How do I remove the last entry returned by Set.select() without deleting from the db table?

2010-04-15 Thread Tiago Almeida
This might be completely wrong but did you try using the slice operator? like so: if len(rows) == max+1: #lose last row! #but how? results = self.build_results( *rows[:max] *) return results Sorry if it doesn't work. I can't try it now. Regards, Tiago Almeida On Thu, Apr 15,

Re: [web2py] Re: best jquery plugin ever

2010-04-01 Thread Tiago Almeida
> > Who still uses IE6 anyways? > Major corporations afraid of changing the software installed because it might "break anything" and cost millions to "repair". My PC @work has ie6..it's as awesome as it sounds. Regards, Tiago -- On Thu, Apr 1, 2010 at 7:47 AM, Magnitu

Re: [web2py] For your knowledge

2010-03-28 Thread Tiago Almeida
Thanks for sharing this. :) Best regards, Tiago On Thu, Mar 25, 2010 at 4:38 AM, Thadeus Burgess wrote: > http://academicearth.org/courses/building-dynamic-websites > > -Thadeus > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post

Re: [web2py] Re: googling web2py

2010-03-28 Thread Tiago Almeida
110K Portugal --- On Sun, Mar 28, 2010 at 2:48 PM, Tito Garrido wrote: > *108.000 from Brazil* > > > On Sun, Mar 28, 2010 at 10:13 AM, Mengu wrote: > >> 109K from Turkey. >> >> On 28 Mart, 15:14, Alfonso de la Guarda wrote: >> > Hello, >> > >> > 110,000 >> > from Perú >> > >> > ---

Re: [web2py] web2py production deployment on vps.net (VIDEO)

2010-03-23 Thread Tiago Almeida
The video is great and the deployment process is braindead simple. Awesome. Thanks! :) Keep up the good work. Tiago - On Tue, Mar 23, 2010 at 3:49 PM, mdipierro wrote: > The video: > >http://vimeo.com/10377947 > > Please use this link below to sign up for vps.net. > > http://www.vps.n

Re: [web2py] Web2py Plugin IRC Chat

2010-03-10 Thread Tiago Almeida
Thanks. Unfortunately it doesn't open for me (connection timed out). Regards, Tiago On Wed, Mar 10, 2010 at 7:21 AM, Thadeus Burgess wrote: > For your convenience, I have posted the entire IRC log of the plugin > discussion. > > Later I will be posting a PDF containing the summary of what was > d

Re: [web2py] Pdf version of the web2py manual?

2010-03-05 Thread Tiago Almeida
http://www.lulu.com/content/e-book/web2py/4968879 I think it's not as updated as the online version. Regards, Tiago On Fri, Mar 5, 2010 at 10:45 AM, Giovanni Giorgi wrote: > Hi all, > where can I find a Pdf version of the web2py manual? > Bye > > -- > Team Leader > Gioorgi.com Chief Editor >

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-03-02 Thread Tiago Almeida
Thank you very much for this. I've been wanting to integrate unit tests in my project but didn't found the time to investigate this issue. Best regards, Tiago --- On Tue, Mar 2, 2010 at 2:41 PM, spiffytech wrote: > I finally finished the article I promised. I couldn't post to the > wiki, so I p

Re: [web2py] webform actions

2010-02-27 Thread Tiago Almeida
Don't know why functions reset, reset_all are not called but they reference a "form" variable which is not in scope? Do you have any global "form"? Regards, Tiago -- On Sat, Feb 27, 2010 at 10:15 PM, Tomas Pelka wrote: > Hi all, > > have some troubles with web form which have more than one butt

Re: [web2py] Re: Some interrogations concerning Web2py compatibilities

2010-02-26 Thread Tiago Almeida
#x27; the warning message (though I'm still > > > puzzled at why a special windows extension was needed on top of the > > > release to 'fix' python, perhaps they should include it the release... > > > some doc came with the open source version,

Re: [web2py] Re: importing local modules

2010-02-26 Thread Tiago Almeida
Allow me to hijack this thread for a related question. How do you usually import a module from a module. I've tried using local_import but I had problems (don't remember details) so I solved the problem by hardcoding the path like 'applications./modules/...' but don't like it. Can local_import do

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-25 Thread Tiago Almeida
I concur. Thanks :) On Thu, Feb 25, 2010 at 1:52 PM, Nicol van der Merwe wrote: > Super awesome, thanks! > > > On Thu, Feb 25, 2010 at 3:43 PM, spiffytech wrote: > >> I'm going to write up a nice, clear wiki article on unit testing with >> the unittest module based on what I learned in this dis

Re: [web2py] Re: Some interrogations concerning Web2py compatibilities

2010-02-25 Thread Tiago Almeida
ng right in 'D:\web2py\dist' > error: can't copy 'admin.w2p': doesn't exist or not a regular file > > >>python web2py.py > > > Because you can do so, I believe you can package it in a binary form > using > tools like py2exe. > > On

Re: [web2py] Re: Download and Update Progress +a general question

2010-02-25 Thread Tiago Almeida
_hook(bytes_so_far, chunk_size, total_size) > > How to display the output of chunk_report properly? (or how to update > the ProgressBar with that output?) > > Best regards, > > Dieter Asman > > - AsmanCom - > Germany > > On 24 Feb., 23:09, Tiago Almeida wrote: >

Re: [web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread Tiago Almeida
> 1 > 1 > ... > > I need to execute scripts like in terminal, but output rendered in > html. (should be very simple?) > > Best regards, > > Dieter Asman > > - AsmanCom - > Germany > > On 24 Feb., 18:17, Tiago Almeida wrote: > > > for quick deve

Re: [web2py] Automagically create a user

2010-02-24 Thread Tiago Almeida
Where do you have that code? in a model file? Your problem is that the variable with name db is not defined in the scope that code runs. make sure you set it before, usually with db = DAL (...) * *this variable should be visible in a controller or a m

Re: [web2py] Download and Update Progress +a general question

2010-02-24 Thread Tiago Almeida
> > for quick development-shots, i need to execute my untouched(may i > could change "print" to "return") Python scripts(..with loops) in the > Controller. > The output should be renderd direct via http, without long-winded > setting up the view for each function. > Is that possible? > If I unders

Re: [web2py] Some interrogations concerning Web2py compatibilities

2010-02-24 Thread Tiago Almeida
No questions are stupid. I'm no expert but I'll coment on what I know. Web2py runs officially in python 2.5. Don't know how hard it would be to put web2py running on 2.6. You don't need the binary package to run web2py, you can run it directly from python (execute file web2py.py) >>python web2py.

Re: [web2py] OAuth, LinkedIn and Web2py

2010-02-22 Thread Tiago Almeida
Can you post the exception you're getting? It might help to determine what's wrong... On Mon, Feb 22, 2010 at 4:18 PM, PanosJee wrote: > Hi everyone, i am new to Python and Web2py and i am developing an app > that will use the LinkedIn api > > I use this library http://code.google.com/p/python

Re: [web2py] Multiple Select Widget

2010-02-22 Thread Tiago Almeida
> > Is there a better way to do this type of functionality rather than > using a hidden multiple widget? > Why not make a simple table/list of checkboxes next to each country? --- Tiago On Mon, Feb 22, 2010 at 10:46 AM, Michael Howden wrote: > Hey, > > I have a need to allow the user to select m

Re: [web2py] new from the slice house: request a slice!

2010-02-19 Thread Tiago Almeida
Nice! On Fri, Feb 19, 2010 at 6:00 AM, mr.freeze wrote: > You can now request a slice on web2pyslices.com. You will be notified > if someone creates a slice based on your request. There will > eventually be a hall of fame to honor those who have created the most > slices and responded to the mo

Re: [web2py] Re: Limiting to a single process

2010-02-19 Thread Tiago Almeida
Look here . It seems to be a solution for that problem. On Thu, Feb 18, 2010 at 11:45 PM, Michael Toomim wrote: > Ah! That sounds great! I will try using gluon's portalocker. > > On Feb 18, 3:41 pm, mdipierro wrote: > > I wou

Re: [web2py] Custom functions in Model

2010-02-17 Thread Tiago Almeida
Why does everything need to work from model? Is it some requirement? Can't you do a function that takes the form and implements that logic? you can probably make it so that you pass that function to the onvalidation (or something like that) of the form.accepts.. Regards, Tiago On Wed, Feb 17,

Re: [web2py] Re: how to NOT IN with DAL?

2010-02-15 Thread Tiago Almeida
Can't you sort by day and get the first? I don't know if max exists. Regards, Tiago On Mon, Feb 15, 2010 at 10:49 PM, baloan wrote: > Now I'm trying to do > > SELECT MAX(DAY) FROM T WHERE DAY < '2007-12-04' > > and I fail to find an operator for "MAX" in the web2py book. Is it > supported? > >

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
t; > > > On Fri, Feb 12, 2010 at 7:53 PM, Tiago Almeida > wrote: >> Sorry, spoke too soon. I saw how auth works and did something similar. >> right now it is something like this, mind that names can be changed: >> >> @req_args.requires_validVars( 'www.go

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
e type of each parameter (like string or number)... I'll clean up the code later and release it then. Regards, Tiago ------- On Sat, Feb 13, 2010 at 12:19 AM, Tiago Almeida wrote: > Hello, I think i've finished doing this but I'm having trouble > accessing the request object fr

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
wing error: global request NameError: global name 'request' is not defined Thanks a lot in advance. -- On Fri, Feb 12, 2010 at 4:02 PM, Tiago Almeida wrote: > > Shouldn't be hard to implement that decorator, though. I'll try later (at > work now) because this is

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

2010-02-12 Thread Tiago Almeida
There is a formatting issue at http://web2py.com/book/default/section/4/6 , near "*request.vars:*" Tiago -- On Fri, Feb 12, 2010 at 8:07 PM, aure wrote: > Great news! Thank you! > > The lulu and amazon links to purchase the book seem not to point to > the right place (they both point to http://

Re: [web2py] Requiring arguments

2010-02-12 Thread Tiago Almeida
Shouldn't be hard to implement that decorator, though. I'll try later (at work now) because this is useful. Regards, Tiago On Fri, Feb 12, 2010 at 12:19 AM, minh wrote: > Is there a way to require arguments/vars in the controller functions > other than explicitly checking for them? > > It would

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

2010-02-12 Thread tiago almeida
Massimo, just one very small detail: the image http://web2py.com/book/static/images/vertical.jpg shows artifacts due to jpg compression. This type of image appears sharper in gif or maybe png. Regards, Tiago - On Fri, Feb 12, 2010 at 9:56 AM, tiago almeida wrote: > Sweet! Thanks.

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

2010-02-12 Thread tiago almeida
Sweet! Thanks. No more searching in pdf index then add an offset to get correct page stuff :) Regards, Tiago - On Fri, Feb 12, 2010 at 6:00 AM, mdipierro wrote: > > > On Feb 11, 11:02 pm, Brian M wrote: > > Looks very nice - way to go Massimo! > > > > Creating wiki pages related to a book

Re: [web2py] web2py site problem ?!

2010-02-11 Thread tiago almeida
Yes, loaded fine just now. -- On Thu, Feb 11, 2010 at 10:43 PM, mdipierro wrote: > I have a possible break in. Lots of brute force ssh attacks in the > last 3 days. 20 times more requests that usual. > I am trying move the server to amazon. > > Can you reach web2py.com? > > Massimo > > -- > Yo

[web2py] [Troubleshooting] Running from source on windows [WARNING:root:unable to import wsgiserver] [WARNING:root:no file locking]

2010-02-11 Thread tiago almeida
Hello all, Since there is no way for me to create a wiki page, I post the wiki content here in the hope that it will be useful to others. == && *Running web2py from source on windows Vista* -- Note: this applies to version 1.74.6. -

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread tiago almeida
You mean 64MB, not 64K, I hope. On Thu, Feb 11, 2010 at 12:30 PM, raven wrote: > It seems that everyone is running with Apache and gobs of memory > available. They cannot really get their heads around running web2py > out of the box in 64K. > > So let me explain why this is important. > > When

Re: [web2py] [Off-Topic] markdown is useful for me?

2010-02-10 Thread tiago almeida
Markdown is just a markup language that *tries* to be as unintrusive in the text as possible. I don't know CFKeditor but I suppose its a wysiwyg editor and for an end user that is the best (imho). The only advantage of using markdown is that, since its marked up text, you can copy/paste to other ma

Re: [web2py] Re: powered by drupal?

2010-02-10 Thread tiago almeida
+1. I don't understand the *not-invented-here* sindrome. Sure it would be cool if the wiki was web2py powered, but just now I've tried to reset my wiki.web2py password and nothing happened (no email sent). Trying to re-register complains about the email already in use (of course). Had to create ano

Re: [web2py] Multi user development on web2py

2010-02-09 Thread tiago almeida
, and set > fake_migrate = True on all of the define_table statements? Then would > we be able to still have automatic migrations? > > -Thadeus > > > > > > On Tue, Feb 9, 2010 at 4:38 AM, tiago almeida > wrote: > > hy not setup a shared db server on the netwo

[web2py] Automatic domain class generation from table definition

2010-02-09 Thread tiago almeida
Hello all, I've been thinking about implementing a module that takes a DAL table definition and generates a class object from that definition. The purpose of this is to use those automatically generated classes in the controllers instead of accessing the DAL directly. Eg: Creating an instance of t

Re: [web2py] Multi user development on web2py

2010-02-09 Thread tiago almeida
Why not setup a shared db server on the network? It works, just needs some coordination when making changes to the model. Does it have to be sqlite? Regards, Tiago On Tue, Feb 9, 2010 at 6:17 AM, Thadeus Burgess wrote: > What is the recommended way of developing on a team with a web2py > applica

Re: [web2py] proposal for online documentation

2010-02-05 Thread tiago almeida
Hi! 1) Great idea. 2) Wouldn't the docstrings get immensely complex for someone actually reading/mantaining the code? Maybe a Sphinx approach to code documentation would be better. Best regards, Tiago On Fri, Feb 5, 2010 at 4:11 PM, mdipierro wrote: > I got a private email from David and we h

Re: [web2py] help, how to validate a form in this situation?

2010-02-05 Thread tiago almeida
I asked about this a while ago here . Hope it helps. On Fri, Feb 5, 2010 at 8:46 AM, hywang wrote: > there is a table > db.define_table('class_student', Field('cla

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-04 Thread tiago almeida
Why go through all this effort to just replicate what's already available in the PDF, to an html format? What a website can give, and a book can't, is tutorials, short tips, FAQs, discussions etc. Something the wiki could provide if it were open to public editing (or the newly created http://webto

Re: [web2py] Adding

2010-02-04 Thread tiago almeida
The include directive just defines the point where another template will be inserted. When you are rendering view X, if X has "extend layout.html" it will use layout.html up to the point where it finds the include, then insert X, then continue with the rest of layout.html. In other words you can in

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-04 Thread tiago almeida
Nice. I took the liberty of posting DenesL Change log to that site (Formatting is messed up don't know why). Hope that is ok. Regards, Tiago On Thu, Feb 4, 2010 at 10:05 AM, Anand Vaidya wrote: > > > On Feb 4, 3:59 am, DenesL wrote: > > AFAIK Massimo does not oppose but actually encourages the

Re: [web2py] admin access from remote machine

2010-02-02 Thread tiago almeida
Have you tried accessing your server with https:// ? I think it should allow admin control over https. On Tue, Feb 2, 2010 at 10:00 AM, Al wrote: > Hi, > > I have just started to learn web2py recently. I have installed web2py > in a windows 2003 server and it runs OK, but I cannot access it fro

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-02 Thread tiago almeida
to have docs that always up to date. You can use ANY > text from the book to improve docstrings. > > Massimo > > > On Feb 1, 6:07 pm, tiago almeida wrote: > > Thanks for replying. > > > > I bought the book and I agree, it's great. But what I'm asking

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread tiago almeida
.00 on Lulu) and well worth the 12 dollars... > > Welcome > > Chris > > > On Feb 1, 7:45 am, tiago almeida wrote: > > Hello all, > > > > I really like web2py but allow me to say that the documentation in > general > > is a bit lacking. > > For i

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread tiago almeida
Hi, thank you for your reply. On Mon, Feb 1, 2010 at 2:43 PM, DenesL wrote: > Hi tiago, > > On Feb 1, 7:45 am, tiago almeida wrote: > > Hello all, > > > > I really like web2py but allow me to say that the documentation in > general > > is a bit lacking. &g

[web2py] The state of the wiki and documentation in general

2010-02-01 Thread tiago almeida
uscitate the wiki so that it can be used as a de facto wiki with examples and change history etc? Best regards, Tiago Almeida -- 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.

Re: [web2py] Re: Yet another installation problem

2010-02-01 Thread tiago almeida
Do you have easy_install instaled? Try easy_install -U hashlib (without 2.3). Does it give you the same error? -- On Sun, Jan 31, 2010 at 12:17 PM, weheh wrote: > Oh, I forgot to mention that I ran easy_install-2.3 -U hashlib and the > OS returned > > 'easy_install-2.3' is not recognized

Re: [web2py] Re: Mobile devices + web2py

2010-01-28 Thread tiago almeida
gt; > > > > > > > > > On Thu, Jan 28, 2010 at 9:27 AM, tiago almeida > > wrote: > > > Great! I missed that one. > > > > > > Thank you very much, > > > Tiago > > > - > > > On Thu, Jan 28, 2010 at 3:15 PM, mdi

Re: [web2py] Re: Mobile devices + web2py

2010-01-28 Thread tiago almeida
Great! I missed that one. Thank you very much, Tiago - On Thu, Jan 28, 2010 at 3:15 PM, mdipierro wrote: > http://www.web2py.com/examples/static/mobile_device_detect.py > > On Jan 28, 6:01 am, tiago almeida wrote: > > Hello, > > does web2py have any mechanism fo

[web2py] Mobile devices + web2py

2010-01-28 Thread tiago almeida
Hello, does web2py have any mechanism for dealing with mobile devices? I'm talking about *determining if the user is on a mobile device* so that pages can be tailored for those screens. I've searched in the book and in web2pyslices and don't see anything like that. Thanks a lot in

Re: [web2py] input title attribute

2010-01-28 Thread tiago almeida
Have you tried using the optional parameter _title when building your INPUT object? INPUT( ..., _title="my Title", ...) --- On Thu, Jan 28, 2010 at 8:33 AM, vihang wrote: > Any idea how I can access or add 'title' attribute for input elements? > Cannot see it anywhere in the html.py. > > 'titl

Re: [web2py] Web2py for PHP

2010-01-25 Thread tiago almeida
Hi, Why don't you take the time to learn Python? As a programmer experienced in Java/C/C++/Lisp etc. I can only say good things about my decision to learn python a while back. It is a great language. Just my 2cent. I'm afraid I can't help you with php frameworks. See ya. -- On Mon, Jan

Re: [web2py] Firefox 3.6 file upload

2010-01-22 Thread tiago almeida
Sweet. Thanks for the info :) On Fri, Jan 22, 2010 at 9:15 AM, Anand Vaidya wrote: > Firefox 3.6 has been released and opens up some new paradigms for file > uploads: Browser supports drag and drop file upload - try it, very > cool. Needs server side support though. > > http://hacks.mozilla.org/2

Re: [web2py] Newbie Question: Intellisense for Web2Py?

2010-01-20 Thread tiago almeida
Hi. You can try *pydev* which is an IDE based on eclipse for python. I've never used it with web2py so I can't give you more details. Google is your friend. See ya Tiago On Wed, Jan 20, 2010 at 6:24 AM, Tweety wrote: > Hello, > > I am a newbie both with web2py, python and computer and web devel

Re: [web2py] Re: form.accepts doesn't update database

2010-01-19 Thread tiago almeida
In the controller which is called when you submit the form, you can do any database access you want. Use the data from the form to Select the other data you need (possibly from other tables) and use that as values for db(resources).insert(...) Hope it helps Tiago Almeida - On Tue

Re: [web2py] Re: DAL: How to define compound keys.

2010-01-18 Thread tiago almeida
I see. Thank you for your prompt answer :) Tiago Almeida -- On Mon, Jan 18, 2010 at 3:27 PM, mdipierro wrote: > This comes up often. You have to enforce at the validators level. > > db.define_table('t',Field('a'),Field('b')) > > db.t.b.re

Re: [web2py] form.accepts doesn't update database

2010-01-18 Thread tiago almeida
I may be wrong but I believe the FORM is just an html helper, try using an SQLForm. Cya -- On Mon, Jan 18, 2010 at 10:17 AM, Adi wrote: > web2py version: 1.74.6 (2010-01-13 11:12:48) > operating system: Ubuntu 9.10 karmic > database: SQLite > > Hi all, > > I've got a simple form which is not sub

[web2py] DAL: How to define compound keys.

2010-01-18 Thread tiago almeida
me bookmark twice or more. Is it possible to do this with DAL? The only solution I see is to explicitly check for the existence of that pair with a select.. Thanks a lot in advance, Tiago Almeida -- You received this message because you are subscribed to the Google Groups "web2py-users"

Re: [web2py] DAL query: limit ?

2010-01-14 Thread tiago almeida
Hi, I believe it is: db().select(db.artikel.id, limitby=(0, 10)) See ya. -- On Thu, Jan 14, 2010 at 3:19 PM, Johann Spies wrote: > What is the equivalent in DAL for > > l = db.executesql("select id from artikel limit 10;") > > Regards > Johann > > -- > You received this message because you