[web2py] web2py instant admin

2011-08-01 Thread contatogilson...@gmail.com
Hello guys,

Some should now be aware, but I took the liberty to disclose this great
plugin made ​​for web2py. It's instant web2py admin [2], which is a module for
managing your application in web2py. He was a Sramana developers [1]. It's
worth a look. It's pretty good!

[1] - http://sramana.in/
[2] - http://sramana.in/web2py-instant-admin/
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: Bug in virtualfields w/ session

2011-07-30 Thread contatogilson...@gmail.com
Do not know if I can help, but I made a screencast showing the use of
virtualenv with web2py:

http://vimeo.com/22919392
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Pagination

2011-07-15 Thread contatogilson...@gmail.com
They are not good when you have thousands of records to be consulted. Do I
need anyplugin that calls the paging of data via the database.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Pagination

2011-07-15 Thread contatogilson...@gmail.com
Hello guys,

I was wondering if anyone knows any plugin for web2py which makes data
paging.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Badges with web2py logo

2011-06-28 Thread contatogilson...@gmail.com
Badges created here - http://picbadges.com/1886508
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: Speed of rendering html data (10,000+ rows)

2011-06-21 Thread contatogilson...@gmail.com
It can paginate data?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Models in subfolders are not executed

2011-06-14 Thread contatogilson...@gmail.com
Hello guys,

I'm using the new version of web2py, and created a feature in my project and
 took thesub models. Except that as I run the application and the controller
 of this functionality,it does not create tables in the database. Someone went
through this too?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: Import from another application in 1.96.x

2011-06-13 Thread contatogilson...@gmail.com
module = local_import('') //module.py
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/13 Ross Peoples 

> Jim,
>
> You could try doing:
>
> import sys
> sys.path.append('/path/to/web2py/applications/another_app/modules')
> from mymodule import MyClass
>
> Alternatively, you could also add mymodule to a location that already
> exists in sys.path.
>


Re: [web2py] Create tables with models in subfolders

2011-06-12 Thread contatogilson...@gmail.com
Yes, I put them in a folder with the name of the driver, and ran from their
URL. Only itis: the URL is overwritten on routes.py:

(...)
> (r'/suppliers', r'/app/suppliers/list'),


But even so, he created the tables, only when played in the root of models.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Create tables with models in subfolders

2011-06-11 Thread contatogilson...@gmail.com
 When I put the scripts of a particular model in a subfolder, it does not
create tables in the database when I run web2py. I have not disabled the
migrate. By default it is not true?

app/ models/ tests/ tests.py
validators.py
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
So when you create the script makes available for us to test and to use =)
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/11 Pierre Thibault 

> 2011/6/11 contatogilson...@gmail.com 
>
>> Yes, I understand. But the issue is the use of the gluon. Perform tests is
>> fine, the problem is to run the same tests using the libraries and gluon.
>>  Therefore it has to import them. Hence the creation of this script.
>>
>>
> The code to start web2py is in web2py.py. I'll have to create a similar
> code to start it but I want to start it without a gui interface. I also want
> to start it at the beginning of the tests and stop it at the end.
>
> Your strategy is different: you are executing code like if that code was in
> a web2py environment. I prefer to use another strategy: I run web2py itself
> and I send real http request from a real client. This way, I cannot have
> bugs because the mockup environment is different from the real one: I am
> testing the real thing. I think it is a better approach.
>
>
> --
>
>
> A+
>
> -
> Pierre
> My blog and profile 
> (http://pierrethibault.posterous.com)<http://pierrethibault.posterous.com>
> YouTube page 
> (http://www.youtube.com/user/tubetib)<http://www.youtube.com/user/tubetib>
> Twitter (http://twitter.com/pierreth2) <http://twitter.com/pierreth2>
>
>


Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
Yes, I understand. But the issue is the use of the gluon. Perform tests is
fine, the problem is to run the same tests using the libraries and
gluon. Therefore
it has to import them. Hence the creation of this script.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
Show an example of how you use py.test to perform unit tests on the model
layer and controller.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
How to tests with web2py. Need importing gluon libs.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/11 Pierre Thibault 

> 2011/6/10 contatogilson...@gmail.com 
>
> Hello guys,
>>
>> I started to create a script to test the scripts that use the library
>> unittest projects web2py. I usually like this:
>>
>> - I create the folder *tests* in the project;
>> - Inside the tests folder create two folders: *models* and *controllers*;
>>
>> For now, I have done is to test the model layer. But I ask the help and
>> contribution ofall to improve this script, and so we have a full support to
>> the use of TDD in both themodel layer as the control. This is good for
>> people like me, sympathized greatly with doctests.
>>
>>
> Hello Gilson,
>
> This is something I thought about. Here is my idea about web2py testing:
>
> 1) I want to use py.test (http://doc.pytest.org/en/latest/) for testing. I
> don't want to have to create my test suits manually and with py.test I can
> mark my functions with decorators to create test suits.
>
> 2) For the controllers, I want to create two types of tests: web GUI tests
> and headless tests.
>
> For the web gui tests, I plan to use Windmill (http://www.getwindmill.com/
> ).
>
> For the headless tests, I plan to use WebTest (
> http://pythonpaste.org/webtest/).
>
> More specifically, I want my test suits to start web2py on another thread.
> This way pydev will be able to give me the code coverage at the end of my
> tests. For headless tests, I plan with send my http request with a special
> argument like "test=true" so my controller will know it is a test. Then I
> will decorate my controller functions so that instead of returning a
> dictionary to be rendered by the view, it will stream the dictionary as a
> file and my tests will be able to easily analyze the results by downloading
> the file and recreating the same dictionary.
>
> Yet, I have to implemented this solution but this is what I have in mind.
>
> --
>
>
> A+
>
> -
> Pierre
> My blog and profile 
> (http://pierrethibault.posterous.com)<http://pierrethibault.posterous.com>
> YouTube page 
> (http://www.youtube.com/user/tubetib)<http://www.youtube.com/user/tubetib>
> Twitter (http://twitter.com/pierreth2) <http://twitter.com/pierreth2>
>
>


[web2py] Script TDD in web2py

2011-06-10 Thread contatogilson...@gmail.com
Hello guys,

I started to create a script to test the scripts that use the library
unittest projects web2py. I usually like this:

- I create the folder *tests* in the project;
- Inside the tests folder create two folders: *models* and *controllers*;

For now, I have done is to test the model layer. But I ask the help and
contribution ofall to improve this script, and so we have a full support to
the use of TDD in both themodel layer as the control. This is good for
people like me, sympathized greatly with doctests.

The link: https://gist.github.com/996576
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: web2py 1.96.4 - Blocks in View not working

2011-06-09 Thread contatogilson...@gmail.com
I think it was in version 1.94.1 to 1.95.1
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/9 Massimo Di Pierro 

> Can you tell me which is the last version that worked? I do no think
> we changed anything there recently.
>
> On Jun 9, 9:02 am, "contatogilson...@gmail.com"
>  wrote:
> > I use the blocks to couple eating several portions of the layout pages
> for
> > quite a while.Only in this last version is not working.
> >
> > layout.html
> >
> > > {{ block test }}{{ end }}
> >
> > test.html
> >
> > > {{ extend 'layout.html' }}
> > > {{ block test }}
> > > It is working
> > > {{ end }}
> >
> > When I run the application, it displays nothing.
> > _
> > *Gilson Filho*
> > *Web Developerhttp://gilsondev.com*


[web2py] web2py 1.96.4 - Blocks in View not working

2011-06-09 Thread contatogilson...@gmail.com
I use the blocks to couple eating several portions of the layout pages for
quite a while.Only in this last version is not working.

layout.html

> {{ block test }}{{ end }}


test.html

> {{ extend 'layout.html' }}



> {{ block test }}
> It is working
> {{ end }}


When I run the application, it displays nothing.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread contatogilson...@gmail.com
The blocks are not working.

layout.html
(...)
{{ block header }}{{end}}

header.html
{{ extend 'layout.html' }}

{{ block header }}
Header
{{ end }}
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/8 Pierre Thibault 

> 2011/6/8 Jonathan Lundell 
>
>> On Jun 8, 2011, at 6:03 PM, Massimo Di Pierro wrote:
>> >
>> > Let me tink about this.
>> > This has relevant content:
>> > http://www.python.org/dev/peps/pep-0235/
>> >
>> > Users who have an opinion please share it now. This is important.
>>
>> What's going on, exactly? My impression is that something is getting
>> lowercased that shouldn't be. Is it not within web2py's control?
>>
>>
>
> Yes, I think it is a bug somewhere in the patch that I submitted.
> --
>
>
> A+
>
> -
> Pierre
> My blog and profile 
> (http://pierrethibault.posterous.com)
> YouTube page 
> (http://www.youtube.com/user/tubetib)
> Twitter (http://twitter.com/pierreth2) 
>
>


Re: [web2py] Re: New Features in Book

2011-06-08 Thread contatogilson...@gmail.com
I suggest that has more people to contribute to the documentation of web2py.
 The documentation uses the principle of wiki with that we can help make it
updatedalways.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/8 cjrh 

> On Jun 8, 3:27 pm, "contatogilson...@gmail.com"
>  wrote:
> > It has forecast when it will be in the book web2py new features, or it
> will
> > be open forother people to update online documentation?
>
> What did you have in mind?


Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread contatogilson...@gmail.com
And in the pypi?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/6/8 ron_m 

> My application is working with model files under a subdirectory == the
> controller name.
>


[web2py] New Features in Book

2011-06-08 Thread contatogilson...@gmail.com
It has forecast when it will be in the book web2py new features, or it will
be open forother people to update online documentation?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] web2py ENTERPRISE

2011-06-01 Thread contatogilson...@gmail.com
One thing that would have asked you to Massimo but forgot that
interview
:

Today web2py has left the classroom and entered into development companies
worldwide. As a "senior keeper, " which you intend to do so that framework
isrecommended as Django, etc?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] web2py 1.96.1 is OUT

2011-06-01 Thread contatogilson...@gmail.com
All new features will be documented? How will it be? Will be collaborative
documentation?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Username field is editable on profile

2011-05-28 Thread contatogilson...@gmail.com
Yes, it is more a field to be edited. What you can do is hide this field in
the actionprofile like this:

db.auth_user.username.readable = \

db.auth_user.username.writable = False



_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/5/28 Tito Garrido 

> Folks,
>
> I've enabled the username field and it's editable editing the profile... is
> it expected?
>
> Regards,
>
> Tito
>
> --
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___
>


Re: [web2py] trunk - missing 'reset_password' in Auth.__call__ in tools.py

2011-05-24 Thread contatogilson...@gmail.com
I don't understand. Show me the code.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/5/24 Carlos 

> Hi,
>
> The 'reset_password' option is missing in tools.py, line # 1048 in
> Auth.__call__.
>
>Carlos
>
>


Re: [web2py] Trouble updating with SQLFORM.factory and two tables

2011-05-24 Thread contatogilson...@gmail.com
I use like this: http://web2pyslices.com/main/slices/take_slice/133
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/5/24 Ross Peoples 

> I am trying to make a user editor and running into trouble. I have the
> standard auth_user table, and I also have an auth_user_extended table that
> stores a bunch of other information, using auth_user as the reference
> between the two tables. I set my controller up like this:
>
> def update():
> id = request.vars.id or request.args(0) or error()
> row = db((db.auth_user.id==db.auth_user_extended.id) & (
> db.auth_user.id==id)).select().first()
> if row is None:
> error()
>
> form = SQLFORM.factory(db.auth_user, db.auth_user_extended
> hidden: {'id': id}
> )
>
> form.vars.id = id
> form.vars.auth_user = id
> form.vars.username = row.auth_user.username
> form.vars.first_name = row.auth_user.first_name
> ... etc ...
>
> if form.accepts(request.vars, session, keepvalues=True):
> # do the database update manually
>
> However, my problem is that when submitting the form for an update, it
> fails validation on username because "value already in database". Am I doing
> something wrong or does SQLFORM.factory not support updates? Thanks.
>


[web2py] Re: Two forms on one page with custom forms

2011-05-23 Thread contatogilson...@gmail.com
I found the problem and created a slice:

http://web2pyslices.com/main/slices/take_slice/133
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/5/23 contatogilson...@gmail.com 

> Hello,
>
> Tailored I'm a system that has a module that has a relationship of a table
>  with theauthentication module. Thus, the user can register a page in your
>  login and passwordand also your personal data, which are the data from
> that other table. Until then I usedSQLFORM.factory for it and everything
> went well. Only in the editing of the data I realized that the factory can
> not do that, and tried to use custom forms to enter the twoforms on the
> page.
>
> The problem is that it captures the form data to a model, but theother
> form he lost during data transmission. I was wondering how do I insert two
>  forms -the different tables are linked through a foreign key - with
> custom forms and sending it is passed all the data from two tables?
> _
> *Gilson Filho*
> *Web Developer
> http://gilsondev.com*
>
>


[web2py] Two forms on one page with custom forms

2011-05-23 Thread contatogilson...@gmail.com
Hello,

Tailored I'm a system that has a module that has a relationship of a table
with theauthentication module. Thus, the user can register a page in your
login and passwordand also your personal data, which are the data from
that other
table. Until then I usedSQLFORM.factory for it and everything went well.
Only in the editing of the data I realized that the factory can not do that,
 and tried to use custom forms to enter the twoforms on the page.

The problem is that it captures the form data to a model, but theother form
he lost during data transmission. I was wondering how do I insert two forms
-the different tables are linked through a foreign key - with custom forms
and sending it is passed all the data from two tables?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Re: Editing row with SQLFORM.factory

2011-05-16 Thread contatogilson...@gmail.com
I tried to do as it is in the comments, but did not work:

http://web2pyslices.com/main/slices/take_slice/102
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Editing row with SQLFORM.factory

2011-05-16 Thread contatogilson...@gmail.com
Hi,

It has a module that I used the "link" forms using SQLFORM.factory, and
everything went right. How do I make this just the same way that editing the
data? I can send the data tothe forms, but it does not save.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] web2py syntax for vim

2011-05-15 Thread contatogilson...@gmail.com
Fork the project for add files: https://github.com/lvidarte/web2py-snippets
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/5/15 pancurster 

> Hi,
> I was looking today for vim syntax for web2py templates but I didn't
> find it. So I make my own. If some one want this syntax files here u
> go:
> http://dl.dropbox.com/u/18809604/vim_web2py_syntax/htmlweb2py.vim
> http://dl.dropbox.com/u/18809604/vim_web2py_syntax/web2py.vim
> htmlweb2py.vim is main syntax file.
> I want apologize if something don't work. If someone know how to fix
> this files, mail me or fork this and mail me :)
>
> ps. I'm sorry for my English.


Re: [web2py] [tip] GitHub has an amazing online IDE

2011-05-10 Thread contatogilson...@gmail.com
Nice!
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/5/10 Bruno Rocha 

> I just start using git and github and I found this amazing online IDE
> http://c9.io which edits github repositories.
>
> Very nice layout and basic auto-complete feature.
>
>
>
> --
> Bruno Rocha
> [ About me: http://zerp.ly/rochacbruno ]
>
>


[web2py] web2py in Web Project

2011-04-15 Thread contatogilson...@gmail.com
Hello,

As I said before, I believe a system and stayed in webfaction.com. When I
create theapplication there, they already have a script to download the
web2py and prepare itwith Apache. But those weeks while using the
system it gives
the following error:

502 - Bad Gateway


Reported that they were using too much memory, so why the server goes down.
Onlyhas 2 to 4 users accessing the system, and specifically access a list of
records thathave a total of 2000, and is paged using the plugin called
jQuery Javascript DataTable. How do I use the MySQL database, I checked that
 was not using commit, andinsert after the queries, insertions and data
edits. Still continued with the error. I askeveryone's help on this, because
 I will develop another web application, and I'mtraumatized about what
happened and wanted to use the web2py for this project. What should I do when
I play in production? What best practices should I play in the project to
avoid this memory leaks with Apache and avoid excessive use of memory in
queriesto the database?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] 502 Bad Gateway in web2py

2011-04-11 Thread contatogilson...@gmail.com
Hello guys,

I hosted a system webfaction.com and its plan has 80MB of memory. But
the strange
thing is that only has two people accessing the system and the usage time gives
thefollowing error:

502 Bad Gateway

What do I resolve this problem? Has anyone experienced this?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: PDF writing under GAE

2011-04-05 Thread contatogilson...@gmail.com
There's this plugin for web2py: https://github.com/lucasdavila/appreport
__ ___
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: web2py joins Pylons project

2011-04-01 Thread contatogilson...@gmail.com
hahaha
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/4/1 CVstash dot com 

> Happy April 1 to you too.
>
> On Apr 2, 1:50 am, Bruno Rocha  wrote:
> > http://web2pyramid.pylonsproject.org/
> >
> > --
> > Bruno Rocha
> > [ About me:http://zerp.ly/rochacbruno]
>


Re: [web2py] Re: Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
But doing the import from site-packages, to make deployed on Google App
Engine itwill be able to use the modules?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/30 Massimo Di Pierro 

>


Re: [web2py] Re: Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
So what can I do to fix this. These modules would have to be in the folder
modulesbecause I'm going to play such an application on Google App Engine.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/30 Massimo Di Pierro 

> I believe the problem is that the module expects to be in sys.path.
> Some python modules are very selfish and assume that.
>
> On Mar 30, 12:12 pm, "contatogilson...@gmail.com"
>  wrote:
> > I researched the list of the error of using local_import (), but without
> > success. I used the "import applications.app.modules.script as Script"
> and
> > other ideas did not work. Howshould I do about it?
> >
> > The error: ImportError: No module named testapp.modules.FormatTweets
> >
> > _
> > *Gilson Filho*
> > *Web Developerhttp://gilsondev.com*


Re: [web2py] Re: Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
Thanks Will. Locally it worked, but if I pack and send to GAE?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/30 pbreit 

> I am not clear on what you are trying to do and what you have attempted.
> The correct usage of local_import is:
>
> For the module located at: applications/myapp/modules/mymodule.py
> In your controller, use: mymodule = local_import('mymodule')
>


[web2py] Error in local_import()

2011-03-30 Thread contatogilson...@gmail.com
I researched the list of the error of using local_import (), but without
success. I used the "import applications.app.modules.script as Script" and
other ideas did not work. Howshould I do about it?

The error: ImportError: No module named testapp.modules.FormatTweets

_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Re: Ready web2hash

2011-03-28 Thread contatogilson...@gmail.com
I used the Twitter API to search by Topics Trend, so some entries are
not inserted
intothe hash does not appear. Later a search can be implemented more
detailed web2pyon Twitter. Compared to IE, and I realized that I must fix this
weekend.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/28 Anthony 

> This is cool. A few notes:
>
>- The background doesn't show up in IE (the background is just plain
>white in IE).
>- If the box containing the tweets doesn't completely fit in the
>visible window (e.g., if the browser is zoomed in or the window is small),
>your "Developed by Gilson #DEV" line ends up overlapping on top of the
>tweets.
>- A lot of tweets about web2py simply mention "web2py" without the
>preceding #, so you might consider just searching for occurrences of
>"web2py" without the # if possible (though that may be more likely to turn
>up some of the occasional negative tweets about web2py).
>- Maybe include a link to each tweet on Twitter -- that will make it
>easy to follow replies to the tweet (often the replies don't include
>"web2py", so they may not turn up in your list).
>
> Best,
> Anthony
>
> On Monday, March 28, 2011 4:55:25 PM UTC-4, Gilson Filho Brazil wrote:
>
>> Yesterday enjoying the day off, I developed the web2hash beta. This
>> applicationaggregates all relevant information to web2py on Twitter (of
>> course those who use thehash # web2py in your tweets). Below is the link
>> to access the application and there ownlink to the project repository:
>>
>> http://web2hash.appspot.com
>> _
>> *Gilson Filho*
>> *Web Developer
>> http://gilsondev.com*
>>
>>


[web2py] Ready web2hash

2011-03-28 Thread contatogilson...@gmail.com
Yesterday enjoying the day off, I developed the web2hash beta. This
applicationaggregates all relevant information to web2py on Twitter (of
course those who use thehash # web2py in your tweets). Below is the
link to access
the application and there ownlink to the project repository:

http://web2hash.appspot.com
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Restifulie Python

2011-03-25 Thread contatogilson...@gmail.com
This is interesting:

https://github.com/caelum/restfulie-py
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] video about new RESTful APIs

2011-03-16 Thread contatogilson...@gmail.com
- The patterns is storaged in the controller?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] video about new RESTful APIs

2011-03-16 Thread contatogilson...@gmail.com
Good!! \0/
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/16 Massimo Di Pierro 

> http://vimeo.com/21133657


Re: [web2py] gae RFC

2011-03-16 Thread contatogilson...@gmail.com
Nice idea.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Proposals for New Tagline

2011-03-15 Thread contatogilson...@gmail.com
>
> web2py - Code Less Create More!


+1
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: greetings from PyCon

2011-03-14 Thread contatogilson...@gmail.com
And second part?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: REST the web2py way - RFC

2011-03-13 Thread contatogilson...@gmail.com
Or it may be well:

@request.get()
> @request.post()
> def api(): return dict()


As he is a decorator, avoid ambiguities and thus would be more clear the
code.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/13 Massimo Di Pierro 

> Because I would know how to do
>
> @request.get()
> def api(): return dict()
>
> @request.post()
> def api(): return dict()
>
> i.e. have two functions with the same name and select one or the other
> without ambiguity.
>
> On Mar 13, 9:04 am, "contatogilson...@gmail.com"
>  wrote:
> > Would not it be better to do this?
> >
> > @request.get()
> > <@request.post()>
> > <@request.put()>
> > <@request.delete()>
> > def api():
> > (...)
> > return dict(...)
> >
> > _
> > *Gilson Filho*
> > *Web Developerhttp://gilsondev.com*


Re: [web2py] REST the web2py way - RFC

2011-03-13 Thread contatogilson...@gmail.com
Would not it be better to do this?

@request.get()
<@request.post()>
<@request.put()>
<@request.delete()>
def api():
(...)
return dict(...)

_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Adjusting the width of the textarea

2011-03-11 Thread contatogilson...@gmail.com
Sorry, Happens to me too
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Adjusting the width of the textarea

2011-03-11 Thread contatogilson...@gmail.com
Become to me too.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/11 Johann Spies 

> I want to change the width of certain input fields for the type 'text'  in
> a form.
>
> I have tried this but it did not have any effect:
>
>  
>   textarea {
>   width: 100px;
>  }
> 
>
> The defined width in base.css  is 400px.
>
> So how do I do it if this is not working?
>
> Johann
>
> --
>  May grace and peace be yours in abundance through the full knowledge of
> God and of Jesus our Lord!  His divine power has given us everything we need
> for life and godliness through the full knowledge of the one who called us
> by his own glory and excellence.
> 2 Pet. 1:2b,3a
>
>


[web2py] web2py in the Pypi

2011-03-10 Thread contatogilson...@gmail.com
The web2py in the Pypi is old. When go to update? Need to help?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] [tip] Head JS script loader

2011-03-10 Thread contatogilson...@gmail.com
Very good!
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] [tip] Head JS script loader

2011-03-10 Thread contatogilson...@gmail.com
That's what I was looking for!
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/10 Martín Mulone 

> Very interesting
>
> 2011/3/10 Richard Vézina 
>
> Thanks to share Bruno
>>
>> Richard
>>
>>
>> On Wed, Mar 9, 2011 at 9:09 PM, Bruno Rocha wrote:
>>
>>>  Head JS script loader
>>>
>>> With Head JS your scripts load like images - completely separated from
>>> the page rendering process. The page is ready sooner. Always. This is
>>> guaranteed even with a single combined JavaScript file. See it yourself:
>>>
>>> Sample page with 5 SCRIPT SRC tags 
>>>
>>> Same scripts loaded with Head JS 
>>>
>>> Non-blocking loading is the key to fast pages. Moreover Head JS loads
>>> scripts in *parallel* no matter how many of them and what the browser
>>> is. The speed difference can be dramatic especially on the initial page load
>>> when the scripts are not yet in cache. It's your crucial first impression.
>>>
>>> Pages no longer "hang" and there is less or zero "flashing" between
>>> pages. User only cares when the page is ready. Unfortunately current
>>> networking tools don't highlight this crucial point. They focus on the
>>> overall loading of assets instead.
>>>
>>> Head JS can make your pages load 100% or even 400% faster. It can make
>>> the largest impact on client side optimization.
>>>
>>>
>>> http://headjs.com/
>>> --
>>> Bruno Rocha
>>> [ About me: http://zerp.ly/rochacbruno ]
>>>
>>>
>>
>
>
> --
> Pablo Martín Mulone (mar...@tecnodoc.com.ar)
> http://www.tecnodoc.com.ar/
>
> My blog: http://martin.tecnodoc.com.ar
> Expert4Solution Profile:
> http://www.experts4solutions.com/e4s/default/expert/6
>
>
>


Re: [web2py] Customizing Login

2011-03-08 Thread contatogilson...@gmail.com
I go testing. Thank you!
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/8 Richard Vézina 

> Oops auth.sett... ;-)
>
> Richard
>
>
> On Tue, Mar 8, 2011 at 3:21 PM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>>
>> Those line don't get you what you want if you place them in your user 
>> function?
>>
>>
>>
>> crud.settings.formstyle = 'table3cols' or 'table2cols' or 'divs' or 'ul'
>>
>> crud.messages.submit_button = 'Submit'
>>
>>
>> Richard
>>
>> On Tue, Mar 8, 2011 at 3:03 PM, contatogilson...@gmail.com <
>> contatogilson...@gmail.com> wrote:
>>
>>> Change formstyle, fields e text button.
>>>
>>> _
>>> *Gilson Filho*
>>> *Web Developer
>>> http://gilsondev.com*
>>>
>>>
>>>
>>> 2011/3/8 Richard Vézina 
>>>
>>>  What do you want to customize?
>>>>
>>>> Appearance or the fields?
>>>>
>>>> Richard
>>>>
>>>>
>>>> On Tue, Mar 8, 2011 at 1:37 PM, contatogilson...@gmail.com <
>>>> contatogilson...@gmail.com> wrote:
>>>>
>>>>> How customizing login form?
>>>>> _
>>>>> *Gilson Filho*
>>>>> *Web Developer
>>>>> http://gilsondev.com*
>>>>>
>>>>>
>>>>
>>>
>>
>


Re: [web2py] Customizing Login

2011-03-08 Thread contatogilson...@gmail.com
Change formstyle, fields e text button.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/8 Richard Vézina 

> What do you want to customize?
>
> Appearance or the fields?
>
> Richard
>
>
> On Tue, Mar 8, 2011 at 1:37 PM, contatogilson...@gmail.com <
> contatogilson...@gmail.com> wrote:
>
>> How customizing login form?
>> _
>> *Gilson Filho*
>> *Web Developer
>> http://gilsondev.com*
>>
>>
>


[web2py] Customizing Login

2011-03-08 Thread contatogilson...@gmail.com
How customizing login form?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: DAL tutorial video

2011-03-08 Thread contatogilson...@gmail.com
Cool! Congratulations! Submited by Twitter :)
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/8 mart 

> That' great thanks ! :)
>
> On Mar 8, 3:01 am, Massimo Di Pierro 
> wrote:
> > I will post that and more after the PyCon tutorial.
> > Tomorrow I am traveling and I am still catching up with work. :-(
> >
> > On Mar 7, 10:25 pm, mart  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Massimo, this is great! context is everything and nothing like audio
> > > to accompany the visual!
> >
> > > Thanks for that! :)
> >
> > > if possible, would you to see the output of those 200 and some lines
> > > to a text file or something? There were a few parts (well, maybe more
> > > than a few) in there that I really found interesting and that
> > > triggered an idea or 2 which I would love to look at closer but I can
> > > hardly see the code being printed to the screen... yeah, my eyes
> > > aren't very good. i would just like to blow up the font size to
> > > something familiar (like 24 + :( ) and read that while listening (if
> > > its ok to ask).
> >
> > > Anyways, really enjoyed it, thanks :)
> >
> > > On Mar 7, 8:02 pm, Massimo Di Pierro 
> > > wrote:
> >
> > > >http://vimeo.com/20760298
>


Re: [web2py] Re: DAL new syntax RFC

2011-03-08 Thread contatogilson...@gmail.com
URL (f = 'default ', c = 'home')

This is desnecessary. I'm not used. Buy like this:

URL('default','home')

This is clean.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/8 villas 

> Ideally there should just be one clear and convenient way of doing
> something, otherwise we can confused.
>
> Everytime we introduce a synonym we raise numerous questions on the
> list and add a paragraph to the book.  Ascribing a special meaning to
> a period is totally against the clarity of the code.  I believe we
> should avoid synonyms and short-cuts wherever possible.
>
> IMO if there is a clearer and more convenient way of doing something,
> we should clearly deprecate the old way and introduce and promote the
> new syntax. Maybe this will make us think carefully about introducing
> changes.
>
> -D


Re: [web2py] web2py recommended web hosting

2011-03-07 Thread contatogilson...@gmail.com
I recommend webfaction.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/7 rochacbruno 

> For shared hosts. The best, easiest and with a nice cost is webfaction.com
>
>
> Em 07/03/2011, às 06:12, Alejandro  escreveu:
>
> > Hello everyone,
> >
> > I am new in web2py and I am very impressed by their simplicity and
> > capabilities.
> > I would like to know which is the best/recommended web hosting to run
> > web2py.
> >
> > Thanks,
> >
> > Alejandro
>


Re: [web2py] explanation of corrections in version 1.93.2

2011-03-06 Thread contatogilson...@gmail.com
>
> - css3 buttons in welcome - What is This???


Foi inserido mais uma ferramenta para inserir botões estilizados com e sem
ícones com CSS 3. Um exemplo disso:

http://css3buttons.michaelhenriksen.dk/
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: should this be in the scaffolding app?

2011-03-03 Thread contatogilson...@gmail.com
Recommend this for plugin calendar:

http://jqueryui.com/demos/datepicker/

Att,
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/3/3 Martín Mulone 

> I like the idea, we can have it like plugins-widgets (plugins). So we can
> choose widgets, for example if I want jgrowl instead of flash, add buttons,
> menu, etc. How can we load the plugins in layout, but automaticaly without
> coding in controllers, or in views?. Starting from a "Hello World" page.
>
> 2011/3/2 Michele Comitini 
>
>> It is nice to have as much features as we like at disposal, but a more
>>
>> modular approach would be nice.
>>
>> Web2py should have a directory containing all js , css , artwork
>> like this buttons css framework.
>> When a new application is created there should be a way to choose only
>> the  needed pieces.  The chosen
>> parts are then copied to the new application (otherwise upgrading
>> web2py could break something)
>>
>> 2011/3/2 pbreit :
>> > That should be "thin" scaffold.
>>
>
>
>
> --
> Pablo Martín Mulone (mar...@tecnodoc.com.ar)
> http://www.tecnodoc.com.ar/
>
> My blog: http://martin.tecnodoc.com.ar
> Expert4Solution Profile:
> http://www.experts4solutions.com/e4s/default/expert/6
>
>
>


Re: [web2py] Quick SQLFORM.factory question

2011-02-28 Thread contatogilson...@gmail.com
if form.acceps(request.vars,session):
 (...)
else:
 (...)
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/28 Lennon 

> I think I must be missing something obvious.
>
> The form displays correctly and populates with the record/data that I
> want it to populate with.  But when I hit the submit button, it won't
> run the code under "if form.accepts".  It just reloads the page with
> the same form and record and no insert has been done or error message
> given.
>
> rows = db(db.traveler_template.user_id == session.user['id']).select()
> record = rows[0]
> form = SQLFORM.factory(db.traveler_template,record=record)
>
> if form.accepts(request.vars, session):
>#check whether the form had errors
>if form.errors:
>response.flash = 'Form has errors'
>return dict(form=form)
>else:
>   #insert the record
>   | Insert Code Omitted |
>
> return dict(form=form)
>
> I also tried
>
> if form.accepts(request.vars):
>
> to no avail.
>
> Also, I'm using the {{=form.custom.begin}} type syntax to display the
> form.  Could that have something to do with it?


Re: [web2py] should this be in the scaffolding app?

2011-02-28 Thread contatogilson...@gmail.com
Beautiful! +1
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/28 Albert Abril 

> Me too.
> +1
>
>
> On Mon, Feb 28, 2011 at 8:51 PM, Martín Mulone wrote:
>
>> Yes I like it,
>>
>> 2011/2/28 Massimo Di Pierro 
>>
>>> http://css3buttons.michaelhenriksen.dk/
>>
>>
>>
>>
>> --
>> Pablo Martín Mulone (mar...@tecnodoc.com.ar)
>> http://www.tecnodoc.com.ar/
>> Paraná, Entre Ríos, Argentina (CP 3100).
>>
>> My blog: http://martin.tecnodoc.com.ar
>> Expert4Solution Profile:
>> http://www.experts4solutions.com/e4s/default/expert/6
>>
>>
>>
>


Re: [web2py] IS_IN_DB no dropdown list

2011-02-11 Thread contatogilson...@gmail.com
We have a small problem in the use of IS_IN_DB. Only you can use this, and
if
want to use a IS_NOT_EMPTY for example, does not display the dropdown list.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


[web2py] Architecture we2py

2011-02-09 Thread contatogilson...@gmail.com
Hello guys,

This link has the architecture of the Linux kernel and found it interesting
that:http://www.makelinux.net/kernel_map

Just to make sure that must have a tool to automate. Does anyone know what it
is,because we could do this to show the architecture of web2py and
links in source
code.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] will jQuery UI work with web2py?

2011-02-09 Thread contatogilson...@gmail.com
Example with jQuery UI - http://gilsondev.com/marcado/

User: admin
Password: admin123
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/9 Tom Atkins 

> Yes it will work. (1.3.2+ means that version and any version higher)
>
>
> On 9 February 2011 19:40, Panupat  wrote:
>
>> The latest jQuery UI (1.8.9) says it supports jQuery 1.3.2+. Seeing
>> that web2py comes with jQuery 1.4.4, will jQuery UI work with this
>> version?
>
>
>


[web2py] Coding Dojo

2011-02-09 Thread contatogilson...@gmail.com
Como expliquei no email anterior, o coordenador da UNEB disponibilizou o
local e os materiais (projetor + computador) para o encontro. Antes de mais,
nada, o formulário de inscrição que foi disponibilizado, tem o total de 25
inscritos da comunidade.

Isso extrapola o limite recomendado de um Coding Dojo (que é de 15 a 17
pessoas). Além disso, o coordenador nos deu uma condição para aceitar o
nosso encontro: que os alunos podessem participar (se quiserem).

Então, o número de participantes vai aumentar, e com isso queria expor
algumas coisas:

1 - Essa é uma ótima oportunidade de divulgarmos a linguagem Python nas
faculdades (como na UNEB), sendo que isso é um dos princípios desse  grupos;

2 - Temos a escolha de aceitarmos ou não essa condição, mas sabendo que o
evento vai ser cancelado por falta de local adequado;

Sinceramente, não queria cancelar, porque seria uma forma de reunirmos e
praticarmos, além de juntar todos e nos conhecermos. O que proponho:

1 - Dependendo da quantidade de inscritos, dividir em grupos de 15 pessoas;
2 - Cada grupo estará em uma sala (com projetor + computador), além de um
couch, para coordenar o Dojo para seguirem as regras e não sairem do
propósito: resolver o desafio proposto dentro do horário;
3 - Os alunos que souberem Python (pelo menos o básico) vão participar, caso
contrário vão somente acompanhar;
4 - Os Dojo irão acontecer simultaneamente.

O que precisamos até então é de pessoas (da comunidade) que disponham em
serem couch, para que cada encontro seja organizado. Com isso quero saber
com quem posso contar para ser couch nesse encontro?

Att,

_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Hosting Web2py on Domain.com

2011-02-09 Thread contatogilson...@gmail.com
Recommend the webfaction.com
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/9 Ahmed Bani 

>
> Hello,
>
> I am new to the web2py community, and I am so exited to start on my first
> application.
>
> I have two questions:
>
> 1- Can I upload web2py to domain.com ? ( They have gave me some
> information about their CGI and python support which I posted below my
> questions, here)
>
> 2- What folders do I have to upload to the server to make it work (other
> than admin, examples, welcome folders) ?
>
> Best regards,
>
> Tazjel
>
>
> *The following information is from domain.com *
>
>
> The Common Gateway Interface is a way of connecting your web pages to other
> programs that are running on the server which visitors wouldn't normally
> have access to. Most corporate web sites on the Internet today make use of
> CGI programs or scripts to allow their visitors to browse online catalogues
> or keep track of their orders in real time.
>
> You have an ability to use CGI scripts on your website. The subdirectory
> "webspace/cgi-bin" located in your home directory is intended for storing
> your cgi files.
>
> Before testing that CGI really works, devote a couple of minutes to read
> the information you might find necessary.
> Paths and Versions:
> Perl Version5.8.1.
> Path to Perl/usr/bin/perl
> GID48
> Supported Extensions.pl, .cgi
>
> Python Version2.5.1
> Path to Python/usr/local/bin/python
> Supported Extension.py Supported ModulesBase Modules,
> MySQLdb
>
> Path to Sendmail/usr/sbin/sendmail
> Operating SystemRedHat Linux
>
> CGI Directory/cgi-bin/
>
> The URL to your CGIs is as follows: http://domainname/cgi-bin/cgi-script
> Replace the “domainname” with the real name of your domain and “cgi-script”
> with the script name.
>
> Here are some tips for you to bear in mind when using CGI:
> • Perl-scripts being transferred via FTP should be in “ASCII” code, not in
> “binary”.
> • All scripts are executed only in cgi-bin directory.
> • After uploading cgi-script change its permission to 755. Use the PEM File
> Manager to do this quickly.
>


Re: [web2py] Cloud hosting company

2011-02-07 Thread contatogilson...@gmail.com
How to the plan?
$$$
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/7 Bruno Rocha 

> I am running in dotcloud (but it is in beta)
>
> http://www.web2py.dotcloud.com/
>
>  also Pydra is announcing they will run
> web2py very soon.
>
> For now, I know only Google App Engine and Amazon ECM running well on a
> cloud.
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>
>
> 2011/2/7 stargate 
>
> Does anybody know of a hosting company that will run web2py in a cloud
>> hosting environment?
>>
>
>


Re: [web2py] Re: Roadmap

2011-02-02 Thread contatogilson...@gmail.com
http://code.google.com/p/web2py/wiki/Roadmap
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/2 Massimo Di Pierro 

> which roadmap?
>
> On Feb 2, 12:14 pm, "contatogilson...@gmail.com"
>  wrote:
> > Hello Massimo,
> >
> > I took a look at the roadmap, the repository and found it has web2py
> > some goals, and these, features for the framework. Voces
> > want to implement something from him?
> > _
> > *Gilson Filho*
> > *Web Developerhttp://gilsondev.com*


[web2py] Roadmap

2011-02-02 Thread contatogilson...@gmail.com
Hello Massimo,

I took a look at the roadmap, the repository and found it has web2py
some goals, and these, features for the framework. Voces
want to implement something from him?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Mixing/supporting CMS with Web2py

2011-02-02 Thread contatogilson...@gmail.com
Instant Press - http://code.google.com/p/instant-press/
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/2 Carl 

> has anyone direct experience of using Wordpress, SquareSpace or
> similar solution alongside Web2py?
>
> These solutions appeal for their maturity and I'd like to use one to
> do the "donkey" work and fall back to Web2py to do my site's specific
> functionality.
>
> Without them I feel like I'm reinventing needlessly.


Re: [web2py] Favicon on GAE

2011-02-01 Thread contatogilson...@gmail.com
Insert with "link" tag in the :


   - http://www.quotes.co.uk/favicon.ico";
   type="image/x-icon">
   - http://www.quotes.co.uk/favicon.ico";
   type="image/x-icon">

_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/1 Gary Bee 

> I have used a favicon (.png) to get a nice little icon for my website
> in the browser. This works on my local web2py installation but now I
> have uploaded it to GAE the favicon does not appear? Any ideas?


Re: [web2py] Pydiction - python autocomplete on VIM - web2py?

2011-02-01 Thread contatogilson...@gmail.com
I do no know
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/1 Bruno Rocha 

> 2011/2/1 contatogilson...@gmail.com 
>
>> I use Python Omni Completation. It's good:
>> http://www.vim.org/scripts/script.php?script_id=1542
>
>
> It permits you to customize the keywords dictionary to include web2py
> keywords? or it auto-detects web2py keywords?
>


Re: [web2py] Pydiction - python autocomplete on VIM - web2py?

2011-02-01 Thread contatogilson...@gmail.com
I use Python Omni Completation. It's good:
http://www.vim.org/scripts/script.php?script_id=1542
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/2/1 Bruno Rocha 

> Hi,
>
> I user Pydiction http://www.vim.org/scripts/script.php?script_id=850 to
> autocomplete Python code on VIM.
>
> I am playing with its complete-dict file, but I can' t find a way to
> include web2py keywords in there to have it autocompleted on VIM.
>
> I just want to add few web2py keywords as
>
> request. give me
> request.args(
> request.vars.
>
> db.
> db.define_table(
>
> Fie.
> Field(
>
> ret.
> return dict(
> return locals()
>
> Is there somebody who have this kind of stuff working for VIM ?
>
>
> --
> Bruno Rocha
> http://about.me/rochacbruno/bio
>


Re: [web2py] Relationship Tables in GAE

2011-01-26 Thread contatogilson...@gmail.com
Error:

(dp0 S'output' p1 S'' p2 sS'layer' p3
S'/base/data/home/apps/marcadodev/test.347905258160463819/applications/init/models/agenda.py'
p4 sS'code' p5 S' at 0x26bd1df6ae63a0d8, file
"/base/data/home/apps/marcadodev/test.347905258160463819/applications/init/models/agenda.py",
line 2>' p6 sS'snapshot' p7 (dp8 S'exception' p9 (dp10 S'__getslice__' p11
S"" p12 sS'text' p13 S'None' p14 sS'__str__' p15
S"" p16 sS'__reduce__' p17 S'' p18 sS'__dict__' p19
S'{}' p20 sS'__init__' p21 S"" p22 sS'__setattr__'
p23 S"" p24 sS'__reduce_ex__' p25 S'http://gilsondev.com*



2011/1/26 contatogilson...@gmail.com 

> Sorry, but it seems that the error is different:
> http://marcadodev.appspot.com/welcome/default/index
> _
> *Gilson Filho*
> *Web Developer
> http://gilsondev.com*
>
>
>
> 2011/1/26 Bruno Rocha 
>
>> Is there any traceback message on GAE datastore manager?
>>
>> I am not pretty sure, but I guess you are going to have problems with
>> datetime on GAE.
>>
>>
>> Bruno Rocha
>> http://about.me/rochacbruno/bio
>>
>
>


Re: [web2py] Relationship Tables in GAE

2011-01-26 Thread contatogilson...@gmail.com
Sorry, but it seems that the error is different:
http://marcadodev.appspot.com/welcome/default/index
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/26 Bruno Rocha 

> Is there any traceback message on GAE datastore manager?
>
> I am not pretty sure, but I guess you are going to have problems with
> datetime on GAE.
>
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>


Re: [web2py] Relationship Tables in GAE

2011-01-26 Thread contatogilson...@gmail.com
https://github.com/contatogilsonsbf/Marcado/blob/master/models/agenda.py
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/26 Bruno Rocha 

> Do you mean a query with a JOIN?
>
> GAE does not suport joins, but relations might works normally.
>
> can you share your piece of code?
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>
>
> 2011/1/26 contatogilson...@gmail.com 
>
> Hey guys,
>>
>> Did someone did a deploy any application which uses two models
>> relate? Because it gives error when I deploy an application that uses
>> this type of relationship.
>> _
>> *Gilson Filho*
>> *Web Developer
>> http://gilsondev.com*
>>
>>
>


[web2py] Relationship Tables in GAE

2011-01-26 Thread contatogilson...@gmail.com
Hey guys,

Did someone did a deploy any application which uses two models
relate? Because it gives error when I deploy an application that uses
this type of relationship.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: T-Shirts web2py

2011-01-26 Thread contatogilson...@gmail.com
We must take into consideration the Python logo. Can anyone
get permission?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/26 rochacbruno 

>
> > Cool idea!
> >
> > Suggestion:
> >
> > If this is to raise funds, then great, I'll take a couple.
>
> I think it is a great oportunity to discuss the need of the 'web2py
> foundation' and perhaps the money of t-shirts, stickers and other stuff can
> be used to start the foundation.
>
>
>


[web2py] Re: T-Shirts web2py

2011-01-25 Thread contatogilson...@gmail.com
Suggestions? :)
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/25 contatogilson...@gmail.com 

> Hello guys,
>
> Below is the link for a model of T-shirts for those who want to do:
>
> Image:
>
> https://docs.google.com/leaf?id=0B1L38RjwqS2cNzBhZDkwNTItZTMxZC00MzRiLWE4MzgtNDM4MmQ2OWI5OGE0&sort=name&layout=list&num=50
>
> SVG Format:
>
> https://docs.google.com/leaf?id=0B1L38RjwqS2cYjM2MzBkYzYtOWI5NC00NTU4LTlkYzctMDMxNzk4NTQ3MmM5&sort=name&layout=list&num=50
>
> Bye.
> _
> *Gilson Filho*
> *Web Developer
> http://gilsondev.com*
>
>


[web2py] T-Shirts web2py

2011-01-25 Thread contatogilson...@gmail.com
Hello guys,

Below is the link for a model of T-shirts for those who want to do:

Image:
https://docs.google.com/leaf?id=0B1L38RjwqS2cNzBhZDkwNTItZTMxZC00MzRiLWE4MzgtNDM4MmQ2OWI5OGE0&sort=name&layout=list&num=50

SVG Format:
https://docs.google.com/leaf?id=0B1L38RjwqS2cYjM2MzBkYzYtOWI5NC00NTU4LTlkYzctMDMxNzk4NTQ3MmM5&sort=name&layout=list&num=50

Bye.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Adding fields to the default register form;

2011-01-25 Thread contatogilson...@gmail.com
http://web2py.com/book/default/chapter/08#Customizing-Auth
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/25 David J. 

> How can I extend the default register form to add custom fields?
>
> I am not extending the Database; I just want to append more fields for
> validation.
>
> Thanks.
>
>
>


Re: [web2py] Re: Automated testing in web2py

2011-01-25 Thread contatogilson...@gmail.com
Thank you.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/25 rochacbruno 

> I like doctests to test my ajax callback controllers, but for more accurate
> tests you should take a look in
>
> http://packages.python.org/web2py_utils/test_runner.html
>
>
> Enviado via iPhone
>
> Em 25/01/2011, às 11:00, "contatogilson...@gmail.com" <
> contatogilson...@gmail.com> escreveu:
>
> What classes of web2py I can use to test user requests and
> responses of actions? I want to study them.
> _
> *Gilson Filho*
> *Web Developer
> http://gilsondev.com*
>
>
>
> 2011/1/25 cjrh < caleb.hatti...@gmail.com>
>
>> On Jan 25, 2:12 pm, "contatogilson...@gmail.com"
>>  wrote:
>>
>> > Where can I find examples or more information about these tests,
>>
>>  <http://docs.python.org/library/doctest.html>
>> http://docs.python.org/library/doctest.html
>>
>>
>>
>>
>>
>>
>


Re: [web2py] Re: Automated testing in web2py

2011-01-25 Thread contatogilson...@gmail.com
What classes of web2py I can use to test user requests and
responses of actions? I want to study them.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*



2011/1/25 cjrh 

> On Jan 25, 2:12 pm, "contatogilson...@gmail.com"
>  wrote:
>
> > Where can I find examples or more information about these tests,
>
> http://docs.python.org/library/doctest.html
>
>
>
>
>
>


[web2py] Automated testing in web2py

2011-01-25 Thread contatogilson...@gmail.com
Hello everyone,

I was researching this week in web2py automated testing, and
is recommended to use the docstrings. Only I found little about it.
Where can I find examples or more information about these tests,
because I do not want to implement a system without using TDD.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Re: web2pyslices migration

2011-01-21 Thread contatogilson...@gmail.com
This idea is better:)
_
*Gilson Filho*
*Web Developer
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho



2011/1/21 Bruno Rocha 

> 2011/1/21 contatogilson...@gmail.com 
>
>> What do you think of having a wiki on the framework and its libraries in
>> web2pyslices?
>
>
> I don't know if a wiki is needed, in web2pyslices we are planning to have a
> follow system, so people will be able to follow slices, and people will be
> able to fork slices, Slices can be anything (it is like a post), but it is a
> post specifically categorized and with exclusive features for each category.
>
> We can add the functionality to make a slice public, so anyone can edit a
> slice (option-able by the creator of the slice)
>
> Slices will be connected itself with other slices (slices follows slices),
> so we finish having a tree of related stuff.
>
> Imagine the workflow:
>
> Enter web2pyslices
> Search keyword 'form'
> results shows :
> 5 last people who recently have 'form' on his actions
> 5 latest recipes/tutorials tagged and with 'form' on content
> 5 lates plugins related to form
> 5 latest slices that follows any other slice related to 'form'
> plus:
> 5 results from web2py source with the 'form' keyword'
> 5 latest google groups threads related to form
> and so...
>
> The idea is ONE PLACE for web2py related stuff.
>
>
>
>


Re: [web2py] Re: web2pyslices migration

2011-01-21 Thread contatogilson...@gmail.com
What do you think of having a wiki on the framework and its libraries in
web2pyslices?
_
*Gilson Filho*
*Web Developer
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho



2011/1/20 Martin.Mulone 

> :O the rumors run fast


Re: [web2py] Re: JSON Data

2011-01-20 Thread contatogilson...@gmail.com
I want it to be rendered directly in the javascript:

...

events: [{{}} = jsonData]

_
*Gilson Filho*
*Web Developer
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho



2011/1/20 DenesL 

>
> You either return the json yourself or you let web2py do it.
>
> If you do it:
>
>  response.headers['Content-Type']='application/json'
>  return json.dumps(dict(id=ag.agenda.id, ...))
>
> or if you want web2py to do it:
>
>  return dict(id=ag.agenda.id, ...)
>
> and call it with .../index.json
> in this case you are using the generic.json view.
>
>
> On Jan 19, 6:51 pm, "contatogilson...@gmail.com"
>  wrote:
> > Hello guys,
> >
> > I'm wanting an action returns a json like this:
> >
> > {
> >
> > "start": "2011-01-27",
> >
> > "id": 4,
> >
> > "title": "Fulano Silva"
> >
> > }
> >
> > Only to send to the view he is being rendered thus:
> >
> > "{\n \"start\": \"2011-01-27\", \n
> > \"id\": 4, \n \"title\": \"Fulano
> > Silva\"\n}"
> >
> > The code I made to return the JSON looks like:
> >
> > import simplejson as json
> >
> > def index():
> >
> > # Consultando os servicos do usuario logado
> >
> > query = db.agenda.id > 0 and db.agenda.funcionario ==
> >
> > > session.auth.user.id and db.agenda.cliente == db.cliente.id
> >
> >  agenda = db(query).select(orderby = db.agenda.data)
> >
> > teste2 = list(agenda)
> >
> > for ag in agenda:
> >
> > teste =
> > json.dumps({"id":ag.agenda.id
> ,"title":ag.cliente.nome,"start":ag.agenda.data.strftime('%Y-%m-%d')},indent=4)
> >
> >
> >
> > return dict(teste = response.json(teste))
> >
> > What should I do?
> > _
> > *Gilson Filho*
> > *Web Developer
> > Blog:* blog.gilsondev.com
> > *Twitter:* twitter.com/gilsonfilho
>


[web2py] JSON Data

2011-01-19 Thread contatogilson...@gmail.com
Hello guys,

I'm wanting an action returns a json like this:

{

"start": "2011-01-27",

"id": 4,

"title": "Fulano Silva"

}



Only to send to the view he is being rendered thus:

"{\n \"start\": \"2011-01-27\", \n
\"id\": 4, \n \"title\": \"Fulano
Silva\"\n}"


The code I made to return the JSON looks like:

import simplejson as json

def index():

# Consultando os servicos do usuario logado

query = db.agenda.id > 0 and db.agenda.funcionario ==
> session.auth.user.id and db.agenda.cliente == db.cliente.id

 agenda = db(query).select(orderby = db.agenda.data)

teste2 = list(agenda)

for ag in agenda:

teste =
json.dumps({"id":ag.agenda.id,"title":ag.cliente.nome,"start":ag.agenda.data.strftime('%Y-%m-%d')},indent=4)
>

return dict(teste = response.json(teste))



What should I do?
_
*Gilson Filho*
*Web Developer
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho


[web2py] Reunião Coding Dojo

2011-01-17 Thread contatogilson...@gmail.com
Olá pessoal,

Para todos ficarem cientes, nessa semana eu vou me reunir como coordenador
da UNIP para acertamos o local e a data do evento.

Att,
_
*Gilson Filho*
*Desenvolvedor Web
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho


Re: [web2py] Re: Interview with Massimo published

2011-01-14 Thread contatogilson...@gmail.com
No, I understood yes. I did not feel offended not. Quite the contrary, I
thank
the tip. So much so that we could do for the same country. The staff of
Brazil
could encourage the use of the tool as the others in their places
of origin, for example. At first it would be great.
_
*Gilson Filho*
*Web Developer
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho



2011/1/14 VP 

> Sorry if my post was seen as a criticism.  it was meant as a feedback,
> but probably didn't come out right.
>
>
>
> On Jan 14, 5:15 am, "contatogilson...@gmail.com"
>  wrote:
> > Sorry if the translation was not very good. I'm studying English right?
> > Help are welcome:)
> > _
> > *Gilson Filho*
> > *Web Developer
> > Blog:* gilson-filho.blogspot.com
> > *Twitter:* twitter.com/gilsonfilho
> >
> > 2011/1/14 Martín Mulone 
> >
> > > "My main hobby is web2py but my doctor thinks I should get into
> jogging."
> > > :)
> >
> > > 2011/1/14 VP 
> >
> > > I am very suspicious that this interview is translated by something
> > >> like GoogleTranslate from (maybe) Italian.  It reads very rough.  May
> > >> not be a good thing.
> >
> > >> On Jan 13, 7:36 pm, Bruno Rocha  wrote:
> > >> >http://blog.gilsondev.com/2011/01/13/interview-creator-of-web2py/
> >
> > > --
> > > Pablo Martín Mulone (mar...@tecnodoc.com.ar)
> > >http://www.tecnodoc.com.ar/
> > > Paraná, Entre Ríos, Argentina (CP 3100).
> >
> > > My blog:http://martin.tecnodoc.com.ar
> > > Expert4Solution Profile:
> > >http://www.experts4solutions.com/e4s/default/expert/6
> >
> >
>


Re: [web2py] Re: Interview with Massimo published

2011-01-14 Thread contatogilson...@gmail.com
Of course, very good! :)
_
*Gilson Filho*
*Web Developer
Blog:* blog.gilsondev.com
*Twitter:* twitter.com/gilsonfilho



2011/1/14 johntynan 

> Wonderful!  What an excellent profile of Massimo.  I also like that
> there was credit for inspiration for parts of web2py from other
> frameworks and tools.  It's interesting to think of web2py as a "proof
> of concept"...  I might say it's safe to call web2py a proven, but
> evolving concept.  I am grateful for Massimo's and all the other
> excellent developers who make web2py what it is.
>
> And thank you Gilson.  Your English, and your choice of questions were
> very good.  If you would like to collaborate on a monthly interview
> with other developers, I would be glad to help.
>
> Best regards,  John T.
>
>
>
> On Jan 14, 12:15 pm, "contatogilson...@gmail.com"
>  wrote:
> > Sorry if the translation was not very good. I'm studying English right?
> > Help are welcome:)
> > _
> > *Gilson Filho*
> > *Web Developer
> > Blog:* gilson-filho.blogspot.com
> > *Twitter:* twitter.com/gilsonfilho
> >
> > 2011/1/14 Martín Mulone 
> >
> >
> >
> >
> >
> >
> >
> > > "My main hobby is web2py but my doctor thinks I should get into
> jogging."
> > > :)
> >
> > > 2011/1/14 VP 
> >
> > > I am very suspicious that this interview is translated by something
> > >> like GoogleTranslate from (maybe) Italian.  It reads very rough.  May
> > >> not be a good thing.
> >
> > >> On Jan 13, 7:36 pm, Bruno Rocha  wrote:
> > >> >http://blog.gilsondev.com/2011/01/13/interview-creator-of-web2py/
> >
> > > --
> > > Pablo Martín Mulone (mar...@tecnodoc.com.ar)
> > >http://www.tecnodoc.com.ar/
> > > Paraná, Entre Ríos, Argentina (CP 3100).
> >
> > > My blog:http://martin.tecnodoc.com.ar
> > > Expert4Solution Profile:
> > >http://www.experts4solutions.com/e4s/default/expert/6
>


Re: [web2py] Re: Interview with Massimo published

2011-01-14 Thread contatogilson...@gmail.com
Sorry if the translation was not very good. I'm studying English right?
Help are welcome:)
_
*Gilson Filho*
*Web Developer
Blog:* gilson-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho



2011/1/14 Martín Mulone 

> "My main hobby is web2py but my doctor thinks I should get into jogging."
> :)
>
>
> 2011/1/14 VP 
>
> I am very suspicious that this interview is translated by something
>> like GoogleTranslate from (maybe) Italian.  It reads very rough.  May
>> not be a good thing.
>>
>>
>> On Jan 13, 7:36 pm, Bruno Rocha  wrote:
>> > http://blog.gilsondev.com/2011/01/13/interview-creator-of-web2py/
>>
>
>
>
> --
> Pablo Martín Mulone (mar...@tecnodoc.com.ar)
> http://www.tecnodoc.com.ar/
> Paraná, Entre Ríos, Argentina (CP 3100).
>
> My blog: http://martin.tecnodoc.com.ar
> Expert4Solution Profile:
> http://www.experts4solutions.com/e4s/default/expert/6
>
>
>


Re: [web2py] Error form

2011-01-05 Thread contatogilson...@gmail.com
After days, I found the error. I enter "*.requires" instead of "*.label"
into two camps: P

Thanks for helping.
_
*Gilson Filho*
*Desenvolvedor Web
Blog:* gilson-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho



2011/1/5 Bruno Rocha 

> lazyT is used for internationalisation, are you using T() somewhere in your
> code?
>
> Helps if you share your app or show us your code for model and controller
>
> 
> - put the code here -
> 
>
> 
> - put the code here -
> 
>
> 2011/1/4 contatogilson...@gmail.com 
>
> I make a relationship one-to-many in the following way:
>>
>> Table 01: Customers;
>> Table 02: officials;
>> Table 03: Agenda
>>
>> Customers -> agenda and staff -> agenda
>>
>> In the form has a combobox fields of customers and employees, but when
>> After registration the following error occurs:
>>
>> TypeError: 'lazyT' object is not callable
>>
>> What am I forgetting to do?
>> _
>> *Gilson Filho*
>> *Web Developer
>> Blog:* gilson-filho.blogspot.com
>> *Twitter:* twitter.com/gilsonfilho
>>
>>
>
>
> --
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>


[web2py] Error form

2011-01-04 Thread contatogilson...@gmail.com
I make a relationship one-to-many in the following way:

Table 01: Customers;
Table 02: officials;
Table 03: Agenda

Customers -> agenda and staff -> agenda

In the form has a combobox fields of customers and employees, but when
After registration the following error occurs:

TypeError: 'lazyT' object is not callable

What am I forgetting to do?
_
*Gilson Filho*
*Web Developer
Blog:* gilson-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho


Re: [web2py] User Login

2011-01-04 Thread contatogilson...@gmail.com
Thank you.
_
*Gilson Filho*
*Desenvolvedor Web
Blog:* gilson-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho



2011/1/4 Bruno Rocha 

> {{=session.auth.user.first_name}}
> {{=session.auth.user.last_name}}
>
> session
>   auth :
>   expiration :
> 3600
>  last_visit :
> datetime.datetime(2011, 1, 4, 14, 0, 42, 458812)
>  user :
>   email :
> rochacbr...@gmail.com
>  first_name :
> bruno
>  id :
> 1
>  last_name :
> rocha
>  password :
> xxx
>  registration_key :
>  reset_password_key
>
>
>
>
> 2011/1/4 contatogilson...@gmail.com 
>
> How can I capture the name of the user logged in and put in the view,
>> without
>> links to Login, and Register Lose Password?
>> _
>> *Gilson Filho*
>> *Desenvolvedor Web
>> Blog:* gilson-filho.blogspot.com
>> *Twitter:* twitter.com/gilsonfilho
>>
>>
>
>
> --
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>


[web2py] User Login

2011-01-04 Thread contatogilson...@gmail.com
How can I capture the name of the user logged in and put in the view,
without
links to Login, and Register Lose Password?
_
*Gilson Filho*
*Desenvolvedor Web
Blog:* gilson-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho


  1   2   >