[web2py] Re: web2py slices down

2016-04-26 Thread rochacbruno

There were some changes in pythonanywhere mysql hosts name and access 
policies.

It is back now!

We really need volunteers to take care of web2pyslices.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2pyslices unsuable

2016-03-18 Thread rochacbruno

Hi, I just restored the website http://www.web2pyslices.com/home

There was a problem with database string configuration.

Or someone with admin access included the data on config database, or 
somebody accidentally ran the install script again replacing all the config 
data.

The code of w2pslices is in https://github.com/rochacbruno/Movuca

I am not able anymore to maintain this CMS neither the website.

So if someone wants to join forces and do a refactoring on the code, fix 
security issues etc, this is a nice time.

*Probably I am going to transfer the repo to Massimo (if he wants)


Bruno Rocha
http://brunorocha.org


On Thursday, March 17, 2016 at 1:04:45 PM UTC-3, zendevel wrote:
>
> Web2pyslices is down and all the content is missing. Is there any owner of 
> the site? It seems like it was hacked or something.  It was been a wealth 
> of knowledge for the community I hate to see it go to pot. I would be 
> willing to host it if needed.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py is "Badly designed framework" and "Does not scale"

2015-07-15 Thread rochacbruno
I edited my answer, I included more information and clarification about my 
CON points!

http://www.slant.co/topics/426/viewpoints/4/~what-are-the-best-general-purpose-python-web-frameworks-usable-in-production-sites~web2py#3

On Wednesday, July 15, 2015 at 2:20:11 PM UTC-3, Matheus Cardoso wrote:
>
> In Slant.com 
> 
>  we 
> have some Python Frameworks under criticism. One of them is web2py. But I 
> got stunned when I saw two great cons:
>
> - Badly designed framework
> - Does not scale
>
> The last one it concerned me more because was Rocha Bruno, a former web2py 
> contributor (i guess), that said that. What you guys have to say about it. 
> Are they are real two cons? Where truth and where is misconception?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-03-04 Thread rochacbruno
Hi Massimo,

You can remove my old (extinct) company 
   
   - Blouweb Consultoria Digital  (Brasil)

I am not working with this company anymore, and I also do not have the 
domain.


Thanks!

On Sunday, February 15, 2015 at 8:21:36 PM UTC-2, Massimo Di Pierro wrote:
>
> We need to update the list of companies that provide web2py consulting.
> This list is obsolete:
>
> http://web2py.com/init/default/support
>
> Some links are broke. Most pages do not even mention web2py. Some of them 
> have a design that is simply not acceptable for a web development company.
>
> That list will be eliminated. IF YOU WANT TO BE LISTED please update your 
> page to have a decent design and MENTION WEB2PY on the main site. Then 
> respond to this thread by providing an updated link and the country were 
> you incorporated. If you have a self-employed individual list your country 
> of residence.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: OT: movuca internal error on comment

2014-01-02 Thread rochacbruno
Hi Manuele,

Thanks for the report.

I will check the problem ASAP.

Alan (spametki), Anthony and Massimo are also able to access the 
web2pyslices admin.

BTW: web2pyslices needs more contributors, some things needs rewrite, if 
anybody wants to become a contributor feel free to contact one of us.

Any idea or improvement is very welcome.

On Thursday, January 2, 2014 8:01:46 PM UTC-2, Manuele wrote:
>
>  @rochabruno I guess...
>  Internal error Ticket issued:ᅵ
> init/94.36.44.58.2014-01-02.21-55-54.40671429-3f5a-47a1-9dac-f68a7103160b
>
> that's what I get trying to add a comment to a post of mine.
>
> Sorry but I didn't find a contact form on web2pyslices site.
>
> Cheers
>
> ᅵᅵᅵ Manuele
>  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: response.models_to_run in web2py 2.8.2

2013-12-20 Thread rochacbruno
If somebody can help ans test it there is an live app here:

https://web2admin.pythonanywhere.com/admin

password: 35c15f36

error: https://web2admin.pythonanywhere.com/welcome/web2admin
ticket: 
https://web2admin.pythonanywhere.com/admin/default/ticket/welcome/177.189.155.195.2013-12-20.11-35-10.50855933-8c61-4d91-b1d2-e765a803f698

But if url is changed it works:

https://web2admin.pythonanywhere.com/welcome/plugin_web2admin/index
user: ad...@example.com
password: admin

note that the problem only occurs  when using the shortcut 'web2admin' 
instead of 'plugin_web2admin'

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] response.models_to_run in web2py 2.8.2

2013-12-20 Thread rochacbruno
Hi,

I use web2admin in some applications, I was running older version of web2py 
and them I decided to upgrade to 2.8.2 for testing.

I found an issue with response.models_to_run and reported a ticket in 
web2admin repo: https://github.com/rif/web2admin/issues/9

web2admin uses a conditional model running implemented as:

if request.controller == 'web2admin':
request.controller = 'plugin_web2admin'
response.view = response.view.replace('web2admin', 'plugin_web2admin')
response.models_to_run.append("^plugin_web2admin/\w+\.py")


This is used to get rid of "plugin" prefix in urls, so users can access 
using /welcome/web2admin instead of /welcome/plugin_web2admin (which is a 
bit ugly)

That practice of checking request.controller and change response.view and 
response.controller and models_to_run worked very well until version "2.2.1"

Is that changed?

Thanks.

-- 

*Bruno Rocha - @rochacbruno*
http://github.com/rochacbruno
http://brunorocha.org
http://pythonhub.com

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Unknown Error

2013-10-18 Thread rochacbruno
Looks like a permission error

On Friday, October 18, 2013 12:22:15 AM UTC-3, __pyslan__ wrote:
>
> Hello erevydory!!
>
> After upgrade web2py with update-web2py.sh, the error is:
> (Internal error  ->  Ticket issued: unknown)
>
> [image: Inline image 1]
>
> I've restarted the nginx, uwsgi. Even the machine and does not work.
>
>
> Thanks!!! 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Rich text in text fields

2013-10-18 Thread rochacbruno
I forked PhreeStyle plugin and did some changes 
https://github.com/rochacbruno/web2py_ckeditor I dont know if still works 
with recent web2py versions, can somebody test it?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] How to pass web2py view python variable into javascript

2013-09-12 Thread rochacbruno
in the view.html


var x = {{="[86, 2, 31, 153, 192, 245, 435, 459]"}};


just call the x in your java Script window context now!

On Thursday, September 12, 2013 6:54:00 PM UTC-3, sonu kumar wrote:
>
> Hi Jason,
> Thanks for reply.
> But I don't want pass controller variable into view javascript.
> I have python variable defined in view itself and now want to pass this 
> variable to javascript.
>
> here is code:
> {{x = [86, 2, 31, 153, 192, 245, 435, 459]}}
>
> Now I want to call this x variable in javascript function 
> glmol01.defineRepresentation
>
> 
> var glmol01 = new GLmol('glmol01', true);
> glmol01.defineRepresentation = function() {
>var all = this.getAllAtoms();
> }; 
> function glmol(pdbid){
> uri = "http://www.pdb.org/pdb/files/"; + pdbid + ".pdb";
> $.get(uri, function(ret) {
> $("#glmol01_src").val(ret);
> glmol01.loadMolecule();
> });
> 
>
> Need suggestioin to solve this issue.
>
> Thanks
>
>
> On Wednesday, 4 September 2013 23:39:25 UTC-7, encompass wrote:
>>
>> If your meaning pass the data to the view you can do it like this:
>> def index():
>> var1= 12345
>> return dict(var1 = var1)
>>
>> and then in the view in your javascript:
>> var thingy_var = {{=var1}};
>>
>> But it gets different based on what you want to do.  For example you 
>> could create a JSON object or need to create an array of items.  Each could 
>> have it's own way of dealing with things.
>> BR,
>> Jason Brower
>>
>>
>> On Thu, Sep 5, 2013 at 9:16 AM, sonu kumar wrote:
>>
>>> Hi,
>>> How to pass view python variable into java script function?
>>>
>>> Thanks
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google 
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Table field isn't set to be unique, but results in error "title is not unique"

2013-09-12 Thread rochacbruno
Your "title" field was unique in the past, so you changed it to non-unique 
in model definition?

If so, the sad news is that SQLite does not support the "ALTER TABLE" 
command for columns, it means once defined, the column attributes cant be 
changed.

The only solution I know is to install an app called "SQLiteManager" then 
right click and edit the table properties there, that program does that by 
cloning in to a temporary table and do some renaming tricks to get it 
working.

or, you can backup/dump your data in some "json" or "csv", delete the 
database and create it again, then populate the data back.

-- 

*Bruno Rocha - @rochacbruno*
http://github.com/rochacbruno
http://rochacbruno.com.br
http://pythonhub.com

On Thursday, September 12, 2013 4:50:17 AM UTC-3, Andreas Wienes wrote:
>
> Hi,
>
> I got a problem with one of my database tables. The field 'title' isn't 
> set to be unique. But inserting a row using filter_fields() ends with error 
> "title is not unique".
>
> db.define_table('task',
>Field('title', unique=False),
>Field('description', 'text', notnull=True),
>  format='%(title)s')
>
> db.define_table('step',
>Field('title'),
>Field('description', 'text', notnull=True),
>format='%(title)s')
>
> db.task.insert(**db.task._filter_fields(step))
>
>  column title is not unique
>
> Any help would be great!
>
> - Andreas
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: Social media icons.

2013-03-29 Thread rochacbruno

  pure css icons http://zocial.smcllns.com/


On Friday, March 29, 2013 3:49:21 AM UTC-3, Annet wrote:
>
> I like the social media icons that come with web2py, are they part of a 
> larger set?
>
> I need icons for social media other than facebook, gplus and twitter.
>
>
> Kind regards,
>
> Annet
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: error in mysql ?

2013-01-09 Thread rochacbruno
I found the problem,

The problem is in Category basemodel

https://github.com/rochacbruno/Movuca/blob/master/modules/datamodel/article.py#L172

It has fixtures which runs if category table is empty, it is needed because 
a "default" general category is always needed, category has self references 
because category can be nested (subcategories)


I will try to solve the problem in a better way and commit with changes I 
have made in MOvuca core, now it is much simpler using the new DAL 
lazy_tables.

-- 





Re: [web2py] Re: Problem with .smartgrid on tables with links

2012-01-24 Thread rochacbruno
I just got the same error

 '_id'

Traceback (most recent call last):
  File "/home/bruce/projects/web2py/gluon/restricted.py", line 204, in 
restricted
exec ccode in environment
  File "/home/bruce/projects/web2py/applications/demo/controllers/appadmin.py" 
, line 
466, in 
  File "/home/bruce/projects/web2py/gluon/globals.py", line 172, in 
self._caller = lambda f: f()
  File "/home/bruce/projects/web2py/applications/demo/controllers/appadmin.py" 
, line 
313, in update
if form.accepts(request.vars, session):
  File "/home/bruce/projects/web2py/gluon/sqlhtml.py", line 1088, in accepts
hideerror=hideerror,
  File "/home/bruce/projects/web2py/gluon/html.py", line 1807, in accepts
status = self._traverse(status,hideerror)
  File "/home/bruce/projects/web2py/gluon/html.py", line 749, in _traverse
newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/bruce/projects/web2py/gluon/html.py", line 749, in _traverse
newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/bruce/projects/web2py/gluon/html.py", line 749, in _traverse
newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/bruce/projects/web2py/gluon/html.py", line 749, in _traverse
newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/bruce/projects/web2py/gluon/html.py", line 756, in _traverse
newstatus = self._validate()
  File "/home/bruce/projects/web2py/gluon/html.py", line 1572, in _validate
(value, errors) = validator(value)
  File "/home/bruce/projects/web2py/gluon/validators.py", line 549, in __call__
elif str(rows[0]._id) != str(self.record_id):
  File "/home/bruce/projects/web2py/gluon/dal.py", line 5466, in __getattr__
return self[key]
  File "/home/bruce/projects/web2py/gluon/dal.py", line 5457, in __getitem__
return dict.__getitem__(self, key)
KeyError: '_id'

with default auth_user table and some extra_fields added




[web2py] Re: Django urls to web2py

2011-11-21 Thread rochacbruno
For me it does not works wit Uppercase app name even in rocket server.

[web2py] Re: built-in lazy virtual fields

2011-08-19 Thread rochacbruno
Very good! Thank you

Re: [web2py] Re: Best way to return all users who have a specific role?

2011-03-19 Thread rochacbruno
In shell you need to fire db.commit() to persist changes. 


Em 19/03/2011, às 10:23, Tom Atkins  escreveu:

> Hmm - I spoke too soon.  Database changes work OK from controllers but not 
> from shell... 
> 
> On 19 March 2011 13:03, Tom Atkins  wrote:
> Oops - my mistake - I was using Navicat to look at my sqllite database and 
> had left it open.  hence sqllite db was locked.
> 
> 
> On 19 March 2011 10:41, Tom Atkins  wrote:
> Thanks Massimo - I was considering using accessible_query.
> 
> However, I've now got a problem before I try that - auth.add_permission 
> doesn't seem to be working:
> 
>  auth.add_permission(1, 'read', db.auth_user, 0)
> 1
> 
> but when I look in the auth_permission table there are no entries.  I've 
> tried this with alternative syntax:
> 
>  auth.add_permission(1, 'read', db.auth_user)
> 2
> 
> and tried other tables:
> 
>  auth.add_permission(1, 'read', db.post)
> 3
> 
> but still no entries in auth_permission.  Any ideas?
> 
> 
> On 18 March 2011 20:08, Massimo Di Pierro  wrote:
> If you have given explicit permission to the group:
> 
> group_id=auth.add_group('Super Admin')
> auth.add_permission(group_id, 'read', db.mytable)
> 
> then you can do:
> 
> for row in db(auth.accessible_query('read',
> db.mytable)).select(db.mytable.ALL): print row
> 
> in the case being discussed mytable is auth_user
> 
> On Mar 18, 2:38 pm, Tom Atkins  wrote:
> > Thank you - yes the double hit on the database was what made it seem
> > inelegant to me.
> >
> > Your  joined query works fine and I can work with the return data.  Any
> > further improvements gratefully received! Hoping Massimo has an undocumented
> > super 1 liner! ;-)
> 
> 
> 


Re: [web2py] Re: Proposals for New Tagline

2011-03-18 Thread rochacbruno
I notice that "enterprise" still appears in   http://twitpic.com/4awuyv 

Will it be removed? I am removing it from portuguese translation. 

Re: [web2py] web2py.com is down right now

2011-03-18 Thread rochacbruno
http://www.downforeveryoneorjustme.com/web2py.com


Em 19/03/2011, às 01:54, Marin Pranjic  escreveu:

> works for me :)
> 
> On Sat, Mar 19, 2011 at 5:07 AM, Anthony  wrote:
> 


Re: [web2py] Re: get vars from view to my def

2011-03-18 Thread rochacbruno
http://.../default/work?number=3

In controller

i = request.vars.number

> row=db(db.autos.id==i).select() 




Em 18/03/2011, às 08:16, cyber  escreveu:

> Massimo, thanks for your correction, but I need code like that:
> 
> **
> * def work(i):   *
> *row=db(db.autos.id==i).select() *
> *return dict(row=row)*
> **
> 
> In this case "i" is a variable from the view "default/new.html". The
> link is: "http://.../default/work?=3";. Figure 3 is an example.
> In this code I want to use "i" as argument for "work()" but the result
> is "invalid function(default/work)".
> 
> I hope my descriptions are clear for you :)
> How can I set the value of variable from the current view to my def in
> controller?
> Thank you in advance...
> _
> 
> 
> On 18 мар, 00:03, Massimo Di Pierro 
> wrote:
>> My code in controller:
>> ***
>> 
>> * def work():
>> *row=db(db.autos.id==20).select() < can be done with DAL
>> *return dict(row=row)
>> ***
>> 
>> My code in the view (new.html):
>> ***
>> 
>> * {{for r in rows:}} <-- rows not records
>> * {{=A(r.id,_href=URL('work', vars={'i':r.id}))}}
>> * {{pass}} <--- missing
>> ***
>> 
>> 
>> Anyway, your select returns at most one record.
>> 
>> On Mar 17, 3:55 pm, cyber  wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hi there!
>> 
>>> I need a hint of how to get variable value from view to my function in
>>> controller.
>> 
>>> My code in controller:
>>> *** 
>>> 
>>> * def work():
>>> *row=db.executesql('SELECT * FROM autos WHERE autos.id=20')
>>> *return dict(row=row)
>>> *** 
>>> 
>> 
>>> My code in the view (new.html):
>>> *** 
>>> 
>>> * {{for r in records:}}
>>> * {{=A(r.id,_href=URL('work', vars={'i':r.id}))}}
>>> *** 
>>> 
>> 
>>> As you see I can select one row from db by id but I want work function
>>> to get current id instead "autos.id=20"
>>> I have no ideas of how to use variable from view in my controllers
>>> def.
>> 
>>> So, any proposals!?! Please...


Re: [web2py] Re: Support for MS Access?

2011-03-17 Thread rochacbruno
I guess you need a DSN or ODBC connection pointing to ms access db. 


Em 17/03/2011, às 06:04, Philnext  escreveu:

> I don't understand : how, with a "DAL('mssql: ...')", will pyodbc send
> the good connection string to tSQLDriverConnect for MS Access
> databases ?
> May you give an example of DAL connection string for connect to a
> 'mybase.mdb' Access database ?
> 
> On 17 mar, 00:34, DenesL  wrote:
>> There is no DAL('msaccess: ...'), not yet anyway.
>> 
>> You have to test using DAL('mssql: ...') or
>> DAL('mssql2: ...').
>> 
>> On Mar 16, 7:15 pm, Philnext  wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> May you tell me the good connexion string for MS Access ?
>>> ( may be  like "db = DAL('msaccess://mybase.mdb')" ?)
>> 
>>> (Sorry if this message is 'doubled')
>> 
>>> On 12 mar, 18:08, Massimo Di Pierro 
>>> wrote:
>> 
 Nobody has tried byt the mssql adapter (pyodbc) should work withaccess. 
 The SQL is the same.
 Try and tel us know what problems you run into.
>> 
 On Mar 12, 9:43 am, Philnext  wrote:
>> 
> HelIo
> I saw in a last year post a question "do we have support forMS
> Access?" as I need it for my current projet I would know if there is
> any previous dev. for it.
> Thanks.


Re: [web2py] More WebSocket inquiries

2011-03-16 Thread rochacbruno
There is a workaround using flash to enable cross browser support. 

Enviado via iPhone

Em 16/03/2011, às 17:43, Gregory Hellings  escreveu:

> I see the websocket/comet discussion from December and the script in
> contrib. I was wondering if any further effort has gone into enabling
> this across more browsers using some of the available technologies
> which can be leveraged for that purpose.  Unless the acceptance is
> broader than just the 10% of us who use Chrome, a technology like that
> is unlikely to reach the mainstream.
> 
> While my knowledge on the client-side is better than the server-side
> for these technologies, I'd like to not just leverage the work once
> for myself if it can be avoided on further work integrating with
> client-side libraries (like socket.io or others) .
> 
> --Greg


Re: [web2py] plugin_datatable cells contents

2011-03-16 Thread rochacbruno
It is definded in truncate parameter   

Plugin_datatable(truncate=n)


Enviado via iPhone

Em 16/03/2011, às 07:23, Neveen Adel  escreveu:

> Hello,
> 
> The plugin_datatable   when the field has a big string it display part
> of  and append "" at the end.
> 
> 
> Is there  a way to display all content and remove the "...".
> 
> 
> 
> Thanks in Advance


Re: [web2py] Re: Proposals for New Tagline

2011-03-15 Thread rochacbruno
We were in the same issue to choose the new logo. Had a votation and from a 
list with 94 logos we ended with the most simple and compact. 

Today, I think everyone agrees that the logo is good enought. 

I really think we need to drop "enterprise" so what about just dropping it?

As simple enought as web2py is. 

I mean: lets drop it and leave just:
Web2py web framework. 

When a new phrase for tagline come up here naturally. It can be included. 

Re: [web2py] Re: Another jerk!

2011-03-14 Thread rochacbruno
I would like to drop the enterprise, because translated to portuguese this 
means "empresarial" which is "corporated" just like Java. 

I like just: 
Web2py - the web framework to get things done!



Enviado via iPhone

Em 14/03/2011, às 22:06, pbreit  escreveu:

> Agreed. "enterprise" is it bit odd here.


Re: [web2py] dotcloud admin disabled because unable to access password file

2011-03-14 Thread rochacbruno
You need to acces your dot intance via  ssh and run web2py from shell with -a 
passwd



Enviado via iPhone

Em 14/03/2011, às 19:12, stargate  escreveu:

> I just pushed web2py onto dotcloud but i get the following error.
> 
> admin disabled because unable to access password file
> 
> Not to sure how to fix this.


Re: [web2py] How to setup multiple application using multiple domains on webfaction?

2011-03-13 Thread rochacbruno
I do this using autoroutes I will post my autoroutes.py when I go to the 
computer. 

Enviado via iPhone

Em 13/03/2011, às 16:20, Tito Garrido  escreveu:

> Hi Folks!
> 
> I have two applications on my webfaction domain. One is "init" and another 
> one is "blog" I'd like to point a different domain to blog... would you know 
> how to do that?
> 
> Regards,
> 
> Tito
> 
> -- 
> 
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___


Re: [web2py] Re: After integrating Janrain, basic registration gone. How to have both ?

2011-03-12 Thread rochacbruno
A slice is a little part of web2py world, in theory everything related to 
web2py development is a slice. 

But in practice this become a slice when posted in web2pyslyces.com as a tip, 
recipe, tutorial, app, snippet, plugin or anything else. 

I mean that I will share some step by step instruction and post it in 
web2pyslices.com

Re: [web2py] After integrating Janrain, basic registration gone. How to have both ?

2011-03-12 Thread rochacbruno
I have this working, Albert also asked me about it and I will create a slice 
about it. 

Enviado via iPhone

Em 12/03/2011, às 16:24, PlanetUnknown  escreveu:

> Just integrated Janrain and it works perfectly, however that has taken
> away the option for basic register e.g. email/password.
> 
> I want to give both options to users. Is it possible ? and how to go
> about it ?
> 
> Any link/reference would be great, Thanks !


Re: [web2py] Image serving performance

2011-03-07 Thread rochacbruno
I know there is a way to config apache for serve static/* but I did not find 
how to do it in webfaction yet. 

But certainly putting images under static is much faster than download 
function. 

Em 07/03/2011, às 16:36, pbreit  escreveu:

> I saw over on web2py-developers that Bruno raised a question about image 
> serving performance through the "download" function. I was curious about this 
> myself as my app will be serving an excessive amount of imagery. I was 
> surprised that images weren't just served statically. What exactly would I be 
> giving up by not using the download function? One thing I am guessing is 
> authentication which I don't really need.
> 
> I suspect I will probably do what Bruno suggested and switch to statically 
> served images. I think at some point I will move images over to Amazon S3 or 
> RackSpace Files anyhow so this will be a good first step.


Re: [web2py] web2py recommended web hosting

2011-03-07 Thread 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] Re: How to accept credit card payments (video)

2011-03-06 Thread rochacbruno
I found a utility called Festival that runs on ubuntu. 

sudo apt-get festival

That sounds good too. 

Em 06/03/2011, às 19:16, Massimo Di Pierro  
escreveu:

> OSX comes a os utility called say
> 
> example:
> 
> $ say hello world
> 
> speaks better than me.
> 
> On Mar 6, 4:10 pm, rochacbruno  wrote:
>> What did you use for the voice sintetization?
>> 
>> Enviado via iPhone
>> 
>> Em 06/03/2011, às 14:57, Massimo Di Pierro  
>> escreveu:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> http://www.youtube.com/watch?v=xW5xOdDk-BE
>> 
>>> Here are the steps:
>> 
>>> # let us go into our web2py folder
>>> cd /Users/mdipierro/Desktop/demo/web2py
>> 
>>> # and we create a new app called pos (point of sale)
>>> cd applications
>>> mkdir pos
>>> rm -r pos/*
>> 
>>> # we make it a clone of the scaffolding application
>>> cp -r welcome/* pos/
>>> cd pos
>> 
>>> openhttp://127.0.0.1:8000/admin/default/design/welcome
>> 
>>> # lets get janrain working!
>>> edit models/db.py
>>> # -*- coding: utf-8 -*-
>>> # this file is released under public domain and you can use without
>>> limitations
>> 
>>> #
>>> ## This scaffolding model makes your app work on Google App Engine too
>>> #
>> 
>>> if request.env.web2py_runtime_gae:# if running on Google
>>> App Engine
>>>db = DAL('gae')   # connect to Google
>>> BigTable
>>>  # optional DAL('gae://
>>> namespace')
>>>session.connect(request, response, db = db) # and store sessions
>>> and tickets there
>>>### or use the following lines to store sessions in Memcache
>>># from gluon.contrib.memdb import MEMDB
>>># from google.appengine.api.memcache import Client
>>># session.connect(request, response, db = MEMDB(Client()))
>>> else: # else use a normal
>>> relational database
>>>db = DAL('sqlite://storage.sqlite')   # if not, use SQLite or
>>> other DB
>>> ## if no need for session
>>> # session.forget()
>> 
>>> #
>>> ## Here is sample code if you need for
>>> ## - email capabilities
>>> ## - authentication (registration, login, logout, ... )
>>> ## - authorization (role based authorization)
>>> ## - services (xml, csv, json, xmlrpc, jsonrpc, amf, rss)
>>> ## - crud actions
>>> ## (more options discussed in gluon/tools.py)
>>> #
>> 
>>> from gluon.tools import *
>>> mail = Mail()  # mailer
>>> auth = Auth(globals(),db)  # authentication/
>>> authorization
>>> crud = Crud(globals(),db)  # for CRUD helpers
>>> using auth
>>> service = Service(globals())   # for json, xml,
>>> jsonrpc, xmlrpc, amfrpc
>>> plugins = PluginManager()
>> 
>>> mail.settings.server = 'logging' or 'smtp.gmail.com:587'  # your SMTP
>>> server
>>> mail.settings.sender = '...@gmail.com' # your email
>>> mail.settings.login = 'username:password'  # your credentials or
>>> None
>> 
>>> auth.settings.hmac_key = ''   # before
>>> define_tables()
>>> auth.define_tables()   # creates all needed
>>> tables
>>> auth.settings.mailer = mail# for user email
>>> verification
>>> auth.settings.registration_requires_verification = False
>>> auth.settings.registration_requires_approval = False
>>> auth.messages.verify_email = 'Click on the link
>>> http://'+request.env.http_host+URL('default','user',args=['verify_email'])+ 
>>> '/%(key)s
>>> to verify your email'
>>> auth.settings.reset_password_requires_verification = True
>>> auth.messages.reset_password = 'Click on the link
>>> http://'+request.env.http_host+URL('default','user',args=['reset_password

Re: [web2py] How to accept credit card payments (video)

2011-03-06 Thread rochacbruno
What did you use for the voice sintetization?

Enviado via iPhone

Em 06/03/2011, às 14:57, Massimo Di Pierro  
escreveu:

> http://www.youtube.com/watch?v=xW5xOdDk-BE
> 
> Here are the steps:
> 
> 
> # let us go into our web2py folder
> cd /Users/mdipierro/Desktop/demo/web2py
> 
> # and we create a new app called pos (point of sale)
> cd applications
> mkdir pos
> rm -r pos/*
> 
> # we make it a clone of the scaffolding application
> cp -r welcome/* pos/
> cd pos
> 
> open http://127.0.0.1:8000/admin/default/design/welcome
> 
> # lets get janrain working!
> edit models/db.py
> # -*- coding: utf-8 -*-
> # this file is released under public domain and you can use without
> limitations
> 
> #
> ## This scaffolding model makes your app work on Google App Engine too
> #
> 
> if request.env.web2py_runtime_gae:# if running on Google
> App Engine
>db = DAL('gae')   # connect to Google
> BigTable
>  # optional DAL('gae://
> namespace')
>session.connect(request, response, db = db) # and store sessions
> and tickets there
>### or use the following lines to store sessions in Memcache
># from gluon.contrib.memdb import MEMDB
># from google.appengine.api.memcache import Client
># session.connect(request, response, db = MEMDB(Client()))
> else: # else use a normal
> relational database
>db = DAL('sqlite://storage.sqlite')   # if not, use SQLite or
> other DB
> ## if no need for session
> # session.forget()
> 
> #
> ## Here is sample code if you need for
> ## - email capabilities
> ## - authentication (registration, login, logout, ... )
> ## - authorization (role based authorization)
> ## - services (xml, csv, json, xmlrpc, jsonrpc, amf, rss)
> ## - crud actions
> ## (more options discussed in gluon/tools.py)
> #
> 
> from gluon.tools import *
> mail = Mail()  # mailer
> auth = Auth(globals(),db)  # authentication/
> authorization
> crud = Crud(globals(),db)  # for CRUD helpers
> using auth
> service = Service(globals())   # for json, xml,
> jsonrpc, xmlrpc, amfrpc
> plugins = PluginManager()
> 
> mail.settings.server = 'logging' or 'smtp.gmail.com:587'  # your SMTP
> server
> mail.settings.sender = 'y...@gmail.com' # your email
> mail.settings.login = 'username:password'  # your credentials or
> None
> 
> auth.settings.hmac_key = ''   # before
> define_tables()
> auth.define_tables()   # creates all needed
> tables
> auth.settings.mailer = mail# for user email
> verification
> auth.settings.registration_requires_verification = False
> auth.settings.registration_requires_approval = False
> auth.messages.verify_email = 'Click on the link
> http://'+request.env.http_host+URL('default','user',args=['verify_email'])+'/%(key)s
> to verify your email'
> auth.settings.reset_password_requires_verification = True
> auth.messages.reset_password = 'Click on the link
> http://'+request.env.http_host+URL('default','user',args=['reset_password'])+'/%(key)s
> to reset your password'
> 
> #
> ## If you need to use OpenID, Facebook, MySpace, Twitter, Linkedin,
> etc.
> ## register with janrain.com, uncomment and customize following
> from gluon.contrib.login_methods.rpx_account import RPXAccount
> auth.settings.actions_disabled=['register','change_password','request_reset_password']
> api_key = open('/Users/mdipierro/
> janrain_api_key.txt','r').read().strip()
> auth.settings.login_form = RPXAccount(request,
> api_key=api_key,domain='web2py',
>url = "http://localhost:8000/%s/default/user/login"; %
> request.application)
> ## other login methods are in gluon/contrib/login_methods
> #
> 
> crud.settings.auth = None  # =auth to enforce
> authorization on crud
> @@END@@
> 
> open http://127.0.0.1:8000/admin/default/peek/welcome/models/db.py
> 
> # then we create a custom model
> edit models/db_pos.py
> # we need a table to store products
> db.define_table('product',
>   Field('name',notnull=True,unique=True),
>   Field('price','double'),
>   Field('description','text'),
>   Field('image','upload'),
>   Field('sortable','integer'),
>   auth.signature,
>   format='%(name)s')
> 
> # and one table to store sales of products to users
> db.define_table('sale',
>   Field('invoice'),
>   Field('creditcard'),
>   Field('buyer',db.auth_user),
>   Field('product',db.product),
>   Field('quantity','integer'),
>   Fi

Re: [web2py] powertable question about get_category_name

2011-02-26 Thread rochacbruno
That function was used in the example just because there was a bug with 
represent for referenced fields, I guess that bug is fixed and this function is 
now useless. 

The case is that a SQLTable (which is the base of powerTable) was not showing 
format or representation, instead it was showing None or the referenced ID. 

I will make some tests to see if the reference bug is fixed. 



Em 27/02/2011, às 00:09, tomt  escreveu:

> Hi,
> 
> I was trying to learn more from the powertable example, specifically
> how the represent options in the field definitions work.
> 
> db.define_table('products',
> 
> Field('category',db.category,label=T('CategoryW'),represent=lambda
> c:get_category_name(c)),
> 
> I deleted the get_category_name function definition to see what would
> happen  and I was surprised to see no difference, and no error was
> generated. I don't understand this and I was wondering if there was
> any explanation?


Re: [web2py] stumbling on shell

2011-02-24 Thread rochacbruno

This is what you need to use instead of. Gluon/shell

$python web2py.py -S test_rv -M -P



Em 24/02/2011, às 06:14, darkblue_b  escreveu:

> from the linux command line, in web2py/
>  python gluon/shell.py -S test_rv
> 
> where test_rv is my small working app
> I get ipython, but I cant find any app context (?)
> for example, whos whows nothing
> 
> ??
> 
>-Brian
> 


Re: [web2py] Add Web2py to Wingware IDE How-To

2011-02-22 Thread rochacbruno
There is already 

http://www.wingware.com/doc/howtos/web2py

I dont know if something changed in the new version. 

I am using 3.x I'll update soon to see if web2py runs well or if there are some 
improvement




Em 22/02/2011, às 07:49, James Hancock  escreveu:

> Hello,
> I just got an email about the new Wingware IDE release. I noticed that it has 
> some specific features added for Django, and when I looked on the site I 
> found some how-to's on how to use Wing with libraries/frameworks and such. I 
> thought, "hmmm... it would be nice to have a webpy how-to up there" and so I 
> thought I would ask:
> 
> 1) Does anyone here use Wingware IDE for web2py development? 
> 
> 2) Is there any merit creating a how-to to give to them to post online?
> 
> Cheers,
> James Hancock


Re: [web2py] Re: powertable: howto adjust table width

2011-02-15 Thread rochacbruno
> -
> {{extend 'layout.html'}}
> .tablewrapper{
> width:400px !important;
> }

> {{=table}}

> --


I guess it works. 

Em 15/02/2011, às 00:49, tomt  escreveu:

> Thanks for the response, but I had limited success. I can control the
> width of the scroll area, but not the header or trailer. I used the
> following options:
> 
>table = plugins.powerTable
>...
>table.dtfeatures['bAutoWidth'] = False
>table._width='700'
> 
> (I wasn't quite sure what you meant by
> plugins.powerTable._width='400' )
> 
> I wasn't aware that I could put css in the view and the following
> attempt failed:
> 
> --
> {{extend 'layout.html'}}
> .powerTable{
> width:400px !important;
> }
> {{=table}}
> --
> 
> Any pointers?
> 
> 
> On Feb 13, 10:50 pm, Bruno Rocha  wrote:
>> If you dont like to use CSS you can set it directly to the table.
>> 
>> plugins.powerTable._width='400'


[web2py] [+-off topic] Rails vulnerability issue (are we protected?)

2011-02-11 Thread rochacbruno
I just read about Rails vulnerability, just  thinking if we are protected 
against the same kind of thing?

http://lists.webappsec.org/pipermail/websecurity_lists.webappsec.org/2011-February/007533.html



Re: [web2py] changing default page?

2011-02-10 Thread rochacbruno
The simple way is renaming your app to 'init' 

Or you can use autoroutes or create your own route definition in routes.py

Enabling routes.py you can simply change the default_application to your app

Take a look at routes in /book or rename your app folder to 'init' 



Em 11/02/2011, às 01:11, Panupat  escreveu:

> I'm sorry for this very simple questions but I can't seem to find the
> answer. How do I change the default page from welcome/default/index to
> my own applications?


Re: [web2py] how does the default login page work?

2011-02-10 Thread rochacbruno
The layout is defined in views/default/user.html


Em 11/02/2011, às 01:13, Panupat  escreveu:

> Trying to learn how it works. I can't seem to find the layout or any
> code associated to it. Which files should I look at?


Re: [web2py] Howto populate table with data

2011-02-10 Thread rochacbruno
note that db.commit() is needed only in shell or external modules. 

Under web2py environment it is implícit executed. 

It can be simplified as:

[db.tag.insert(name=t) for t in TAGS if not db(db.tag).count()]

(guess it works, not tested)



Em 10/02/2011, às 22:41, Vinicius Assef  escreveu:

> Try  something like this: http://pastebin.com/6yWksPAU
> 
> 
> On Thu, Feb 10, 2011 at 9:36 PM, Marin Pranjic  
> wrote:
>> Add this after define_table
>> for t in TAGS:
>> ... db.tag.insert(name = t)
>> 
>> run once and then comment / delete the lines.
>> 
>> On Thu, Feb 10, 2011 at 10:57 PM, Sascha Peilicke  wrote:
>>> 
>>> Hi guys,
>>> 
>>> I'd like to know how to best populate a table with a given set of default
>>> values. I could add them manually via the shell, but I'd like it to be
>>> done
>>> when the table is created. Let's consider the following table:
>>> 
>>> db.define_table('tag',
>>>Field('name'),
>>>format='%(name)s')
>>> 
>>> And assume I got some tags:
>>> 
>>> TAGS = ['nice','great','awesome']
>>> 
>>> So, how's the most appropriate way in getting those tags into the table?
>>> --
>>> Mit freundlichen Grüßen,
>>> Sascha Peilicke
>>> http://saschpe.wordpress.com
>> 
>> 


Re: [web2py] Re: custom form without using database?

2011-02-10 Thread rochacbruno
I use __ because I like to return locals() instead of a dict()



Em 10/02/2011, às 18:53, pbreit  escreveu:

> Why do you use all the underscores? Is it because those variables are 
> reserved words? Does it make the variables private or something?


Re: [web2py] powerTable.extrajs question

2011-02-01 Thread rochacbruno
The problem is in 
art_id = request.vars['dt_1'].split('.')[-1]

For the first row it will be called dt_1 but for the second it will be dt_2 and 
so on. 

Another possibility is that when you call the second. It mess up the 
JavaScript. 

Can you pastebin your whole code or attach your w2p app?




Re: [web2py] Re: web2pythonic way

2011-01-29 Thread rochacbruno
The WEP 8 says that it depends on the size of your application. 

In a small app keep everything in models. 

A bigger app put it in modules. 

That is my view. 



Em 29/01/2011, às 07:15, walter  escreveu:

> Is there something like PEP for web2py?


Re: [web2py] Re: T-Shirts web2py

2011-01-26 Thread 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. 




Re: [web2py] Re: Automated testing in web2py

2011-01-25 Thread 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" 
 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 
> 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
> 
> 
> 
> 
> 
> 


Re: [web2py] using plugin_wiki for a blog

2011-01-23 Thread rochacbruno
Http://web2pybrasil.com.br is only plugin wiki (outdated)


Em 23/01/2011, às 02:18, Plumo  escreveu:

> http://web2py.com/book/default/chapter/13#plugin_wiki
> The welcome app plus the plugin_wiki can be thought of as a development 
> environment in itself that is suitable for building simple web applications 
> such as a blog.
> Is there an example that uses plugin_wiki to make a blog?
>  


Re: [web2py] mysql integration with web2py

2011-01-20 Thread rochacbruno
Can you show the traceback or any other message you are getting?

Em 20/01/2011, às 07:31, jgp  escreveu:

> I have developed a portal in web2py that uses sqlite and now i want to
> shift the database to mysql.
> I am trying to integrate mysql with web2py, but i am getting tickets
> related to inconsistency issues.
> Please help me in this regard.
> 
> Thanks in advance
> JGP


Re: [web2py] returning from a controller and escaping the html...

2011-01-20 Thread rochacbruno
def return_dis():
   return XML(" there ", escape=True|False)


Em 20/01/2011, às 06:27, encompass  escreveu:

> I have a control function as follows:
> 
> def return_dis():
>return " there "
> 
> Of course it returns it just fine except that I would like to escape
> the < > and any other html stuff.
> Is there something special in web2py for that or should I make my own
> method for that?
> I could make a blank page but I figure there has to be a better way
> then just making a blank .html file.
> 
> BR,
> Jason Brower


Re: [web2py] Re: Why the need of return dict() in controller?

2011-01-14 Thread rochacbruno
In this case will be a good pratice to use _ and __ to name that variables 
which you dont want to be used in views. 

I see that if you have too many local vars the dict send to the view will be 
bigger. 

What is the better aproach in a matter of memory usage. A bigger dict available 
to the view or duplicating vars in cobtrollers?

Enviado via iPhone

Em 14/01/2011, às 09:21, Kenneth Lundström  
escreveu:

> Only thing that comes to my mind is that you can´t rename a variable. With 
> dict() method you can "rename" them. I don´t know if people do that.
> 
> Traditional way, if you want to rename variable:
> total_exposure_at_day_light_time = 365
> return dict(teadlt = total_exposure_at_day_light_time)
> 
> new way:
> total_exposure_at_day_light_time = 365
> teadlt = total_exposure_at_day_light_time
> 
> return locals()
> 
> you double the memory usage of variables. 
> 
> Kenneth
> 
>> It's interesting, while I usually don't use so many variables in each 
>> controller.
>> 
>> 
>> 
>> 2011/1/14 Bob 
>> I see no downsides and seems that Massimo confirmed that. I already
>> tried using return locals() and it works without issues.
>> 
>> On 14 Ян, 07:37, pbreit  wrote:
>> > Wait, so are you saying that instead of return dict(items=items, blah=blah,
>> > etc) we can just use return locals() on most or all controllers? What's the
>> > downside, memory? Implicitness?
>> 
>> 
>> 
>> -- 
>> Atenciosamente
>> 
>> 
>> Alexandre Andrade
>> Hipercenter.com Classificados Gratuitos e Inteligentes
> 


Re: [web2py] plugin_powertables: is this expected behavior?

2011-01-12 Thread rochacbruno
Hi,

I need to improve that, the fact is that details table runs in a different 
thread because it is called by ajax. So it have no access to the DAL instance 
used in main table's datasource. 

So in model It assign a new variable pointing to the instance of DAL in commom 
case it is db. But you can name it differently or have múltiple dbs. And that 
the only way I found to have the DAL instance 

In the top of model I referenced DAL again. Simply doing 
powertabledb = plugins.powertable.get('db', db )

I'll change that so it will assume db as default and you can pass a parameter 
if you want to use another db. 

I am rewriting the plugin from the scratch to implement server/json processing 
in a better way. 

Thank you for testing and reporting this issues. 

Bruno



Enviado via iPhone

Em 13/01/2011, às 00:58, mart  escreveu:

> I guess this is for Bruno,
> 
> I wanted try your tables plugin, and it seemed to have create
> duplicate copies of each and every table if the database with itself
> as prefix.
> 
> Example:
> 
> db.p4NewUserRequest
> 
> has been duplicated to
> 
> plugin_powertablesdb.p4NewUserRequest
> 
> And ALL tables are now like this.
> 
> Not a big deal, since it was just one of these throw away test apps.
> But just wanted to see if I didn't mis-configure something, or if this
> is expected, or  a bug, etc...
> 
> Anyways, has this happened t anyone else?
> 
> Thanks
> Mart :)


Re: [web2py] ADVOCACY: "every single other Python program ever written uses imports"?

2011-01-06 Thread rochacbruno
Nobody advise me that I need to write some PEP proposal to be elegible to join 
the Python Conmunity. 

Lets start to write a PEP right now. LOL

Re: [web2py] [OT] Drupal alternatives in Python or web2py

2011-01-06 Thread rochacbruno
I just can see Instant Press as alternative to cms and blog. 

There are toomuch work to do in InstantPress and I am sure Martin are open to 
contributions. 

Just need to gather some people and start using, testing and extending it. 

I hope to contribute more to instant press as I get more free time. 

This is IMO the best open source ready to use w2p app we had and it needs more 
people working on it. 

Btw I am testing Pymantis which seems to be very interesting. 

Enviado via iPhone

Em 06/01/2011, às 23:21, Luther Goh Lu Feng  escreveu:

> Even though it is in php, with the release of Drupal 7, I am tempted
> to give it a spin just to see what's the fuss all about. Drupal seems
> extremely popular, looking at some of the well known organisations
> that have used it. But are there any python, or hopefully, web2py
> alternatives to it?


Re: [web2py] why not PHP?

2011-01-05 Thread rochacbruno
Zend released a security service pack

http://bit.ly/he53vN


Enviado via iPhone

Em 05/01/2011, às 10:23, Branko Vukelić  escreveu:

> On Wed, Jan 5, 2011 at 2:00 AM, Kuba Kucharski  
> wrote:
>>> Comments below the original post for full explanation.
>> 
>> ok, I thought there is smth more there that I missed ;)
> 
> Well, I just thought some have missed the fact that this bug is
> platform-specific. What I absolutely hate about PHP is that the
> default tools for database handling don't take advantage of 64-bit
> platforms (they always return string regardless of the data type in
> the database columns).
> 
> PHP is a really good platform though. Not at all as bad as most Python
> and Ruby coders claim.
> 
> 
> 
> 
> -- 
> Branko Vukelic
> 
> stu...@brankovukelic.com
> http://www.brankovukelic.com/


Re: [web2py] Change Favicon css

2011-01-05 Thread rochacbruno
This is not in base.css this is defined in views/layout.html


Enviado via iPhone

Em 05/01/2011, às 08:36, dederocks  escreveu:

> Hello,
> 
> Sorry for this probably very beginner question -- how & where can you
> change the layout for the favicon (e.g. favicon.png in the
> application's static folder) that shows up on the top left of the
> example application for example? My knowledge in css is limited, but
> in any case I can't find in base.css where apple-touch-icon specifics
> for example are defined.
> Thanks in advance for a cue on this.
> BR, Andre


Re: [web2py] Slickgrid - a table or data grid designed for MVC

2010-12-30 Thread rochacbruno
Very nice!

I cant find any documentation about it, but I am testing by the examples. Looks 
really great. 

I never imagine they has jqueryui. 

I am curious about what they are using to play and stream the files, I noticed 
a remaining dependency on flash to play the songs. 

Bruno. 

Sent by iPhone

Em 30/12/2010, às 07:36, Tom Atkins  escreveu:

> https://github.com/mleibman/SlickGrid/wiki
> 
> looks interesting.  Grooveshark uses it, see here:
> 
> http://blog.jerodsanto.net/2010/12/the-tech-behind-the-new-grooveshark/


Re: [web2py] Re: Powertable remarks

2010-12-30 Thread rochacbruno

> Hello,
> my opinion is that is great , but for normal use, i think the programmer 
> should not try to reinvent the wheel every time he needs a table.
> So my suggestion is that you could make a widget to permit the creation of 
> the table in a snap.
> 
> Best regards
> 
> António

Antônio, thank you for the comment and suggestion.

Every option has a default behavior, so the only two lines needed to have a 
table is:

plugins.powerTable.datasource = Table or Query or Set or Rows or List or Dict 
or URL
return plugins.powerTable.create()

If needed to override default values, it can be defined in a model for every 
table. 

Is it easy to create a helper for that,

at model. 

def power_table(datasource=None, features={}, attrs={}):
tbl = plugins.powerTable
tbl.datasource = datasource
tbl.dtfeatures = features
for k in attrs: tbl[k] = attrs[k]
return tbl.create()

so in view or controller

{{=power_table(db.table)}}


Is that what you mean by widget?

I'll try to include it as a default helper in plugin. 

Thank you

Bruno. 



> 
> 
> 2010/12/30 Bruno Rocha 
> Here is a complete list of working powerTable options:
> https://bitbucket.org/rochacbruno/powertable/src/e80ed190dea5/controllers/default.py#cl-52
> 


Re: [web2py] Re: Powertable remarks

2010-12-29 Thread rochacbruno
Hi,

Thank you for testing, it is more updated in bitbucket. Now it has search by 
column and a test version of server side processing. 

If you want to change the pager do: 

plugins.powerTable.dtfeatures['sPaginationType'] = 'full_numbers' 

Here is a demo:
http://powertable.blouweb.com/products?pager=full_numbers

Bruno. 


Em 29/12/2010, às 02:49, tomt  escreveu:

> Hi Bruno,
> 
> I've just tried using your powertables plugin and I love it. The
> general appearance is great and the default search function is exactly
> what I was looking for.  I'm looking forward to trying out the
> features you've planned.
> 
> One small concern I have is the example I implemented allows me to
> page to 'next' and 'previous' but there is not a link for 'first' or
> 'last' page.  It would be great if this was possible.
> 
> Keep up the good work.  - Tom
> 
> 
> On Dec 18, 3:38 pm, Bruno Rocha  wrote:
>>>  jqGrid also supports progressive loading (without paging , it
>>> does ajax to load while scrolling down).
>> 
>>> I do not see those features exist in datatables.
>> 
>> Just got progressive loading working on powerTable plugin
>> 
>> powerTable.dtfeatures['bScrollInfinite'] = True
>> powerTable.dtfeatures['iScrollLoadGap'] = 10 #number of rows to load by time
>> 
>> I am still working hard to make server side load to work well.
>> 
>> (I am having a good time with datatables library, the community in
>> datatables.net forum is very helpful)
>> 
>> Will update the plugin soon.
>> 
>> --
>> 
>> Bruno Rochahttp://about.me/rochacbruno/bio


Re: [web2py] How to deploy on gae with example.appspot.com directly map to my application?

2010-12-26 Thread rochacbruno
The easiest way is renaming your app to 'init'  or changing default app in 
routes.py



Enviado via iPhone

Em 26/12/2010, às 07:17, jinlin  escreveu:

> I saw the py2web.appspot.com directly map to the reddish application,
> and I want to do the same for my deployment.
> 
> I already deployed the cookbook application tutorial to
> http://tempappz.appspot.com/cookbook/test , how do I shorten the url
> so my application is mapped directly from http://tempappz.appspot.com/
> 
> Is the changes in the app.yaml url mapping or in the py2web routing?
> 
> Thanks


Re: [web2py] Re: Custom form

2010-12-24 Thread rochacbruno
Em 24/12/2010, às 16:38, mdipierro  escreveu:

> please no more links in code. :-(

I always copy the code from traceback in tickets page and it is copied 
formated. 

We need an option to copy raw text from the code in errors page. 

Most syntax highliters can do that, so I think this could be easy with JS to 
create a raw copy button. 

This would be useful for peeking code in admin/pluginwiki too. 

I mentioned that here before ( sometime when I pointed the Thadeu's weblog 
which has this feature)

I'll try to include (raw, copy, print) buttons as options to highlight.py CODE 
helper and send a patch to explain better what I am saying. 

Bruno

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread rochacbruno
You need to edit /static/CSS/base.css

The form and imputs width is defined there. 

Enviado via iPhone

Em 23/12/2010, às 09:38, Sahil Arora  escreveu:

> I used the following code to generate a form in attached image.
> Is it possible to change the size of the fields in the form.
> I want to decrease size of input field of Estimated time and the dropbox 
> field to the right of it 
> 
> 
> {{=form.custom.begin}}
> 
> 
> 
> Type :{{=form.custom.widget.type}}
> 
> Title :{{=form.custom.widget.title}}
> 
> Description 
> :{{=form.custom.widget.description}}
> 
> Estimated Time 
> :{{=form.custom.widget.estimated_time}}{{=form.custom.widget.estimated_time_unit}}
>  
> 
> 
> {{=form.custom.submit}}
> 
> 
> 
> {{=form.custom.end}}
> 
> -- 
> Sahil Arora
> B.Tech 2nd year
> Computer Science and Engineering
> IIT Delhi
> Contact No: +91 9871491046
> 


Re: [web2py] Pagination, memory usage and grids(jqgrid, powerTable, webgrid)

2010-12-22 Thread rochacbruno
I am working on server side pagination/sorting/search for powerTable. 

Hope to finish soon. 

Enviado via iPhone

Em 22/12/2010, às 08:24, Johann Spies  escreveu:

> I work with tables of hundreds of thousands of records.  Although jqgrid 
> seems faster than the other grids mentioned in the Subject-line it still 
> works too long when a large table is selected.  All the abovementioned grids 
> have their own pagination but it seems that they do not use that while 
> querying the database. The result is that it uses large chunks of RAM. 
> 
> Now my question: is it possible to combine the easy pagination options 
> available in the abovementioned grids with smaller queries to the backend or 
> is the only option for me to use my own pagination (like the example in the 
> book) in combination with SQLTABLE?
> 
> 
> Regards
> 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
> 


Re: [web2py] Re: NameError: global name 'ktable' is not defined

2010-12-19 Thread rochacbruno
I always test trunk, but I think there are users who has some difficult using 
hg to pull trunk. 

If possible to include a .zip version of trunk available to download I guess 
more people would test it. 

Google code has a download tab. 

Maybe the commit script could zip and upload it just after the commit ?



Enviado via iPhone

Em 19/12/2010, às 19:06, mdipierro  escreveu:

> Fixing in 1.90.4. I apologize and wish people had tested this more on
> trunk but looks like very few users test trunk.
> 
> Massimo
> 
> On Dec 19, 2:38 pm, pandaluv  wrote:
>> Traceback (most recent call last):
>>   File "/home/felix/Desktop/web2py/gluon/restricted.py", line 188, in
>> restricted
>> exec ccode in environment
>>   File "/home/felix/Desktop/web2py/applications/SGE/controllers/
>> incidents.py", line 174, in 
>>   File "/home/felix/Desktop/web2py/gluon/globals.py", line 95, in
>> 
>> self._caller = lambda f: f()
>>   File "/home/felix/Desktop/web2py/gluon/tools.py", line 2289, in f
>> return action(*a, **b)
>>   File "/home/felix/Desktop/web2py/applications/SGE/controllers/
>> incidents.py", line 7, in create
>> form = SQLFORM(db.incident,field=['contact', 'event_id',
>> 'location', 'phone', 'reported_by', 'synopsis', 'started_at',
>> 'severity'])
>>   File "/home/felix/Desktop/web2py/gluon/sqlhtml.py", line 792, in
>> __init__
>> inp = self.widgets.options.widget(field, default)
>>   File "/home/felix/Desktop/web2py/gluon/sqlhtml.py", line 205, in
>> widget
>> options = requires[0].options()
>>   File "/home/felix/Desktop/web2py/gluon/validators.py", line 424, in
>> options
>> self.build_set()
>>   File "/home/felix/Desktop/web2py/gluon/validators.py", line 405, in
>> build_set
>> fields = [f for f in self.dbset.db[ktable]]
>> NameError: global name 'ktable' is not defined
>> 
>>  (global name 'ktable' is not defined)
>> 
>> --
>> if self._and:
>> self._and.record_id = id
>> 
>> def build_set(self):
>> if self.fields == 'all':
>> fields = [f for f in self.dbset.db[ktable]]
>> 
>> else:
>> fields = [self.dbset.db[ktable][k] for k in self.fields]
>> if self.dbset.db._dbname != 'gae':
>> orderby = self.orderby or reduce(lambda a,b:a|b,fields)
>> 
>> 
>> 
>> def create():
>> form = SQLFORM(db.incident,field=['contact', 'event_id',
>> 'location', 'phone', 'reported_by', 'synopsis', 'started_at',
>> 'severity'])
>> # check submited form (custom insert if ok)
>> if form.accepts(request.vars, session, dbio=False):
>> incident_id = db.incident.insert(**form.vars)
>> response.flash = T("Incident %s created!") % incident_id
>> elif form.errors:
>> response.flash = T("Incident not saved! (correct errors!)")
>> else:
>> response.flash = T("Complete the form")
>> return dict(form=form)
>> 
>> ---
>> 
>> Version 1.90.3 (2010-12-19 16:48:26)
>> 
>> =) help


Re: [web2py] Powertable remarks

2010-12-17 Thread rochacbruno
>  I noticed a scroll bar activated on the right side of the form and sure 
> enough if you scroll down there it is. I don't know how difficult it would be 
> to expose the part that opened if it is out of the current view area.

I'll try to bring it up to the viewport. 

Thank you for mentioning. 

Re: [web2py] Powertable remarks

2010-12-17 Thread rochacbruno
> WIth jqgrid even without paging , i had successfully loaded 40k records  
> within 6 - 8 secs . 

That is because jqgrid loads limited amount of data per request, i am doing 
this with datatables. And I am working to incorporaye it to the plugin. 

http://www.datatables.net/examples/server_side/pipeline.html

Take a look at other server side examples 

> supports progressive loading (without paging , it does ajax to load while 
> scrolling down). I do not see those features exist in datatables.

Datatables has API events for pagination, its  just a matter of javaScript 
scrolling events calling pagination events. Can be done with datatables.

http://www.datatables.net/development/pagination

As I said, I just started a plugin 6 days ago, this was released soon to be in 
WAE. It is pre-alpha version. Too much work in progress. 

I hope this could be quickly as jqgrid. 

Bruno

Re: [web2py] Powertable remarks

2010-12-17 Thread rochacbruno
Hi, thank you for testing the plugin.

I am writing the documentation explaining every option of the API. 

In this First alpha release only client side is available, the table is 
entirely loaded to the client, which is really not usable if you has more than 
500 rows.

I am working right now on Json/XML parser, the table will render only visible 
columns on the first load and take the rest of the data from the server via 
ajax callback (in the same way jqgrid does). Server side processing will be 
available for searching, sorting and pagination too. 

I hope to finish this soon.

In my TODO is:

Server Side processing. 
Inline editings
Nested powertables( now you can only have a simple sqltable, a div or a form as 
details)
Fixed headers and columns. 
More from datatables.net API

Thank you for testing, your feedback will help me so much to continue this 
development. I appreciate every help or suggestion to this plugin. 

I will create a project on Google code to track the issues and host the docs. 

Thank you

Bruno



Em 17/12/2010, às 08:11, Johann Spies  escreveu:

> I have downloaded Powertable and like most of what I see.
> 
> What I like:
> 
> *  The ability to use more datasources than just a table and a single-column 
> query.
> *   The layout which is more readable and understandable than jqgrid from 
> plugin_wiki
> 
> I have certain questions and concerns though:
> 
> * Is there documentation somewhere explaining the options?  I could only see 
> the demo-code.  Some of the links on the page referring to the API does not 
> work.
> 
> * I have tested it this morning on a table with more  just over 8200 entries 
> and it took 70-90  seconds on Firefox and 30-35 secondes no Chrome to reload 
> the page from localhost.  That is not usable.  Plugin_wiki's jqgrid does this 
> in less than a second.
>   It seems that it loads the whole table and does not make use of paging 
> while executing the query.  
> 
> I have used the following settings:
> 
> 
> powerTable = plugins.powerTable
> powerTable.dtfeatures['sScrollY'] = '338'
> powerTable.dtfeatures['sScrollX'] = '100%' 
> #powerTable.virtualfields = Virtual()
> powerTable.headers = 'fieldname:capitalize'
> powerTable.showkeycolumn = True
> powerTable.dtfeatures['bJQueryUI'] = request.vars.get('jqueryui',True)
> powerTable.uitheme = request.vars.get('theme','redmond')#'smoothness' / 
> 'redmond' /'cupertino'
> powerTable.dtfeatures['sPaginationType'] = 
> request.vars.get('pager','scrolling') # two_button scrolling
> powerTable.datasource = db.joernaal
>
> 
> Regards
> 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
> 


Re: [web2py] Re: SQLTABLE with joined data, but without repeats?

2010-12-12 Thread rochacbruno
Carlos, the only solution I see is using a virtual field, or removing repeats 
in Java Scripts.

Enviado via iPhone

Em 12/12/2010, às 14:17, Carlos  escreveu:

> Hi Denes,
> 
> That's clear to me, my question is not about getting the data (I got
> it ok), but instead showing the data in an html table (SQLTABLE) with
> unique (no repeated) "one" data, as per my examples above.
> 
> Maybe I'm not explaining clearly? - sorry :-)
> 
> Thanks!,
> 
>   Carlos
> 
> 
> On Dec 12, 9:41 am, DenesL  wrote:
>> Hi Carlos,
>> 
>> inside the select you can specify which fields to bring back, I think
>> you want:
>> 
>> rows = db(db.one.id==db.many.one).select(db.many.id, db.many.xx,
>> db.many.yy, db.many.zz, db.one.aa, db.one.bb, db.one.cc)
>> 
>> On Dec 12, 9:58 am, Carlos  wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hi Massimo,
>> 
>>> What do you mean?, that shows the same result (with repeated 'one'
>>> data) in the SQLTABLE, doesn't it?.
>> 
>>> Thanks,
>> 
>>>Carlos
>> 
>>> On Dec 12, 1:23 am, mdipierro  wrote:
>> 
 You can do, for example:
>> 
 rows =
 db(db.one.id==db.many.one).select(db.many.id,db.many.one,db.many.xx,db.many
  .yy,db.many.zz,db.one.aa,db.one.bb,db.one.cc)
>> 
 On Dec 11, 12:27 pm, Carlos  wrote:
>> 
> Hi,
>> 
> I need to show a SQLTABLE with joined data but without repeated
> information (like grouping but showing all rows).
>> 
> Let's say I have the following model:
>> 
> db.define_table('one', Field('aa'), Field('bb'), Field('cc'),
> format='%(aa)s')
> db.define_table('many', Field('one', 'reference one'), 
> Field('xx'),
> Field('yy'), Field('zz'))
>> 
> And the following function:
>> 
> def join():
> rows = db(db.one.id==db.many.one).select()
> return dict(rows=rows)
>> 
> This shows all rows correctly but with repeated data for 'one':
>> 
> many.id many.onemany.xx many.yy many.zz one.id  one.aa  one.bb  
> one.cc
> 1   a1  a1_x1   a1_y1   a1_z1   2   a1  b1  c1
> 2   a1  a1_x2   a1_y2   a1_z2   2   a1  b1  c1
> 3   a2  a2_x1   a2_y1   a2_z1   3   a2  b2  c2
> 4   a2  a2_x2   a2_y2   a2_z2   3   a2  b2  c2
> 5   a3  a3_x1   a3_y1   a3_z1   4   a3  b3  c3
>> 
> How can I show this same view (with the same number of rows) but only
> showing the 'one' data once (for the first occurrence) as follows?.
>> 
> many.id many.onemany.xx many.yy many.zz one.id  one.aa  one.bb  
> one.cc
> 1   a1  a1_x1   a1_y1   a1_z1   2   a1  b1  c1
> 2   a1  a1_x2   a1_y2   a1_z2   2
> 3   a2  a2_x1   a2_y1   a2_z1   3   a2  b2  c2
> 4   a2  a2_x2   a2_y2   a2_z2   3
> 5   a3  a3_x1   a3_y1   a3_z1   4   a3  b3  c3
>> 
> Note the empty spaces in order to show the 'one' data once only (on
> first occurrence).
>> 
> Thanks,
>> 
>Carlos


Re: [web2py] Deployment of web2py on an intranet

2010-12-07 Thread rochacbruno
Firewall ?

Are you using Windows? Windows firewall is enabled?

Enviado via iPhone

Em 07/12/2010, às 09:28, Rupesh Pradhan  escreveu:

> I have two computers networked together using LAN cable with name
> 'server'(192.168.0.1) and 'machine01'(192.168.0.2)
> 
> I have installed web2py on the 'server'. After running the
> 'web2py_no_console' on the server (the http://localhost:8000 shows the
> welcome page), I tried to access the webpage through machine01 by
> typing http://server:8000 OR http://192.168.0.1:8000.
> 
> It does not work.
> 
> What am I missing here?


Re: [web2py] How to call a function in an other controller?

2010-12-01 Thread rochacbruno
Depending on the function, you can call client side via ajax without the need 
to redirect the user. ( but it is not safe )

I prefer to put my commom code in /modules and import when it is needed. 

Enviado via iPhone

Em 01/12/2010, às 05:54, Dan  escreveu:

> Hi,
> 
> is there any way to execute a function in an other controller?
> 
> controller1.py
>func():
>do something
> 
> controller2.py
>func():
>do something else
>call func() of controller1.py
>do some more things
>return
> 
> I don't want to redirect the user.


[web2py] Autoroutes and.static files

2010-11-29 Thread rochacbruno
HI, I am trying to use autoroutes for the first time, what I want is my site 
running in127.0.0.1:8080/index instead of127.0.0.1:8080/app/default/index

I tried the autoroutes and routes.conf explained in another thread here but i 
didn't figure out how to make the access to static files. 

I am using web2py 1.89.5 all functions as /index and /user  are working well, 

 But my static files are unreachable.

127.0.0.1:8080/index works ok, but show no images that I included with 

127.0.0.1:8080/static/image.png does not works too, and I cannot access in old 
way /app/static/image.png

Something is missing in routes_out?

My routes.conf is

START CODE 
127.0.0.1 /blouweb/default
---END CODE 

My routes.py is

---START CODE---

try: config=open('routes.conf','r').read()
except: config=''

def auto_in(apps):
routes=[
('/robots.txt','/blouweb/static/robots.txt'),
('/favicon.ico','/blouweb/static/favicon.ico'),
('/admin$anything','/admin$anything'),
]
for a,b in [x.strip().split() for x in apps.split('\n') if x.strip() and 
not x.strip().startswith('#')]:
if not b.startswith('/'): b='/'+b
if b.endswith('/'): b=b[:-1]
app = b.split('/')[1]
routes+=[
('.*:https?://(.*\.)?%s:$method /' % a,'%s' % b),
('.*:https?://(.*\.)?%s:$method /static/$anything' % 
a,'%s/static/$anything' % app),
('.*:https?://(.*\.)?%s:$method /appadmin/$anything' % 
a,'%s/appadmin/$anything' % app),
('.*:https?://(.*\.)?%s:$method /$anything' % a,'%s/$anything' % 
b), 
]
return routes

def auto_out(apps):
routes=[]
for a,b in [x.strip().split() for x in apps.split('\n') if x.strip() and 
not x.strip().startswith('#')]:
if not b.startswith('/'): b='/'+b
if b.endswith('/'): b=b[:-1]
app = b.split('/')[1]
routes+=[
('%s/static/$anything' % app,'/static/$anything'),
('%s/appadmin/$anything' % app, '/appadmin/$anything'),
('%s/$anything' % b, '/$anything'),
]
return routes

routes_in=auto_in(config)
routes_out=auto_out(config)
---END CODE ---

How to access static files?

-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Enviado via iPhone

Re: [web2py] Re: Parsing thru XML and Json

2010-11-19 Thread rochacbruno
Nice! 

Its one more récipe to be included somewhere in the book. 

Enviado via iPhone

Em 19/11/2010, às 20:57, mdipierro  escreveu:

> a="""
> 
> OK Status>
> 
> 123456 ID>
> 
> J01 ID>
> Brochure Template Name>
>  Job>
> 
> 412 ID>
> Design & Layout Name>
>  Task>
> 
> 1 ID>
> Chris Spence  Name>
>  Staff>
> 2008-10-29T00:00:00 Date>
> 240 Minutes>
> > 
> true Billable>
> 
> 13:00 Start>
> 17:00 End>
>  Time>
>  Response>
> """
> 
> html=TAG(a)
> print html.element('status')[0]
> print html.element('task id')[0]
> 
> 
> 
> On Nov 19, 4:31 pm, Steve Shepherd  wrote:
>> Hi Folks
>> 
>> Can someone post a code example or somewhere I can look for examples on :
>> 
>> 1. Reading an XML stream that is returned from an API call.
>> For example:http://api.workflowmax.com/time.api/get/123456?apiKey=[your API
>> key]&accountKey=[WorkflowMax account key]
>> 
>> This returns a xml string like this:
>> 
>> Example Response:
>> 01.
>> 02.OK
>> 03.
>> 04.123456
>> 05.
>> 06.J01
>> 07.Brochure Template
>> 08.
>> 09.
>> 10.412
>> 11.Design & Layout
>> 12.
>> 13.
>> 14.1
>> 15.Chris Spence 
>> 16.
>> 17.2008-10-29T00:00:00
>> 18.240
>> 19.
>> 20.true
>> 21.
>> 22.13:00
>> 23.17:00
>> 24.
>> 25.
>> 
>> How can I read this into Web2py and display it or add it to my own tables.


Re: [web2py] experts4solutions.com again

2010-11-17 Thread rochacbruno
In the expert profile/bio the top title where expert name are shown is all 
lowecase. 

Is that a matter of style?

Enviado via iPhone

Em 18/11/2010, às 01:23, mdipierro  escreveu:

> I have implemented an endorsement mechanism. Existing members can see
> and endorse new applicants. New applications should contact existing
> members by email and request an endorsement.
> 5 endorsements qualify for acceptance as an expert. Endorsements can
> be withdrawn. Endorsements are confidential. I can override this and I
> will for known web2py contributors.
> 
> You apply by simply logging in into the system.
> 
> I am happy to say that at least 3 members of the group have already
> been contacted with job offers.
> 
> Please DO NOT ENDORSE users who did not post a decent picture or
> profile, even if you know they are good web2py programmers.
> 
> If you have already been approved because you are a web2py contributor
> but you have posted no picture, a scary picture (yes you!), or no
> profile, please correct it.
> 
> Everybody can register a new affiliated company, a new project and/or
> a new skill. But they I will have to approve them. I do not want to
> make the list of skills too long. Projects must be based on web2py,
> tested and deployed. Companies but say in the web site that they
> provide web2py support (although not exclusively).
> 
> Massimo


Re: [web2py] French Speakers Group

2010-11-15 Thread rochacbruno
Groups are created voluntary by the community. 

If somebody create a new group wherever. Just have to report the link to 
Massimo to be included in /usergroups page. 

Is it important to create a google group  because the mainsite just has the 
ability to fetch rss on google. 

Or, somebody have to patch feeds_reader.py on examples app. Including the 
reader for Yahoo or another kind of group. 

Are you french? So if the group does not exists yet. Create this and send the 
link. 

The idea is to translate the main website too. 


Enviado via iPhone

Em 15/11/2010, às 10:47, lannick  escreveu:

> Hi,
> 
> Is it possible to create a French Speakers group ?
> 
> The main purpose of this group will be to work on the translation of
> Web2py.
> 
> Regards,
> Lannick


Re: [web2py] Re: web2py organization - important for consultants !!!

2010-11-14 Thread rochacbruno
Nice theme,

The expert name at the top should be capitalized. 

http://www.experts4solutions.com/e4s/default/expert/2

Would be good to have a badge for linking this. 


Enviado via iPhone

Em 14/11/2010, às 20:51, Branko Vukelic  escreveu:

> On Sun, Nov 14, 2010 at 11:37 PM, Stefaan Himpe  
> wrote:
>> Stefaan Himpe wrote:
>>> 
>>> Could it be that the corrected version is not online yet ?
>> 
>> To be clear: I'm referring to the spelling corrected version.
> 
> Oh that. Massimo gave me the application files before the spelling
> corrections were implemented, so I think they will need to be
> corrected again (along with any new mistakes I might have introduced
> while editing the text).
> 
> 
> -- 
> Branko Vukelić
> 
> bg.bra...@gmail.com
> stu...@brankovukelic.com
> 
> Check out my blog: http://www.brankovukelic.com/
> Check out my portfolio: http://www.flickr.com/photos/foxbunny/
> Registered Linux user #438078 (http://counter.li.org/)
> I hang out on identi.ca: http://identi.ca/foxbunny
> 
> Gimp Brushmakers Guild
> http://bit.ly/gbg-group


Re: [web2py] Re: Problem with RPX - janrain engage

2010-11-11 Thread rochacbruno
I did it, registration is working, but login form was replaced with janrain, I 
am trying to get both login forms. 

Otherwise I will create a custom form and a controller for that. 

Tks


Enviado via iPhone

Em 11/11/2010, às 21:49, Albert Abril  escreveu:

> I guess you should comment second line of the janrain auth in db.py
> 
> As said at 
> http://web2py.com/book/default/chapter/08#Integration-with-OpenID,-Facebook
> 
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> from gluon.contrib.login_methods.rpx_account import RPXAccount
> 
> auth.settings.actions_disabled=['register','change_password','request_reset_password']
> 
> auth.settings.login_form = RPXAccount(request,
> 
> api_key='...',
> domain='...',
> 
> url = "http://localhost:8000/%s/default/user/login"; % request.application)
> The first line imports the new login method, the second line disables local 
> registration, and the third line asks web2py to use the RPX login method. 
> 
> 
> 
> 
> On Thu, Nov 11, 2010 at 10:46 PM, Bruno Rocha  wrote:
> Somebody knows how can I use RPX and Normal Login form in the same way that 
> web2pyslices are using here:
> http://web2pyslices.com/main/default/user/login
> 
> ???
> 
> 
> 
> 2010/11/11 Bruno Rocha 
> It is a commom mistake, so I think is a good idea to include a note in /book 
> and in db.py for scaffold app.
> 
> 
> 
> 2010/11/11 Albert Abril 
> 
> hehe.. it happens to me too.
> 
> you should write only the name of the subdomain.
> if you have http://web2pyapp.rpxnow.com , you have to write only 'web2pyapp' .
> I hope this help to others.
> 
> Regards!
> 
> 
> On Thu, Nov 11, 2010 at 10:02 PM, Bruno Rocha  wrote:
> SOLVED!
> 
> It was an error on configuration, domain parameter on RPXAccount expect just 
> a domainname, I was providing full URL.
> 
> Thanks
> 
> 2010/11/11 Bruno Rocha 
> 
> HI,
> 
> I am trying to activate janrain as the loggin method, and I want to keep the 
> normal login method too.
> 
> but I am getting this error: "This frame was blocked because it contains 
> insecure content."
> 
> http://natalanimal.com.br/init/default/user/login
> 
> Any idea?
> 
> 
> 
> -- 
> 
> http://rochacbruno.com.br
> 
> 
> 
> 
> -- 
> 
> http://rochacbruno.com.br
> 
> 
> 
> -- 
> 
> http://rochacbruno.com.br
> 


Re: [web2py] simple table div

2010-11-10 Thread rochacbruno
Nice! I want to use it. 

I am thinking in a way to create a inline editable table. 

Enviado via iPhone

Em 10/11/2010, às 20:08, "Martin.Mulone"  escreveu:

> I decided to start to make my own implementation of table maker. The
> diference with sqltable or TABLE(), it use div (more flexible), accept
> web2py helpers as values and is very simple to use.
> 
> Example:
> 
> http://web2pytesting.appspot.com/tablediv/
> 
> Code:
> 
> table =
> SIMPLE_TABLE_DIV(fixedwidth=True,maxwidth=500,name="simplet1",number_list=True)
> table.add_header([{'caption':'Header 1', 'width': 200},
>  {'caption':'Header 2', 'width': 100},
>  {'caption':'Header 3', 'width':
> 100},
>  ])
> table.add_row(['Value 1','Value 2', 'Value 3'])
> table.add_row(['Value 4','Value 5', 'Value 6'])
> table.add_row(['Value 7','Value 8', 'Value 9'])
> 
> If anyone is interested in this or want to contribute, i will put in
> bitbucket.


Re: [web2py] Re: plugin wiki on older aps?

2010-11-10 Thread rochacbruno
You can try web2py.com/layouts


Enviado via iPhone

Em 10/11/2010, às 16:04, mart  escreveu:

> Works great! double thanks! she'll be thrilled, now I just need to
> change the blueish-green header/footer to purple, then I can walk
> away :)
> 
> On Nov 10, 12:51 pm, mart  wrote:
>> ah, i see it! :) Great! I must have declined the "replace file?" while
>> dropping an updated filesset.
>> 
>> thank you very much for that! :)
>> 
>> On Nov 10, 12:35 pm, Bruno Rocha  wrote:
>> 
>>> The newest 
>>> versionhttp://code.google.com/p/web2py/source/browse/applications/welcome/vi...
>> 
>>> 2010/11/10 Bruno Rocha 
>> 
 You have to replace web2py_ajax.html to a new version.
>> 
 web2py_components depends on some things in web2py_ajax.html!
>> 
 2010/11/10 mart 
>> 
 Hi,
>> 
> Helping my daughter with a school project and she loves the look of
> web2py in the "Example minimalist wiki with versioning and
> authentication". She 's making a "memory game" (not sure how, but she
> is ;) ).  Since she knows how to use the widget builder in
> plugin_wiki, she installed it, has the pages menu item and everything
> seem to be good.
>> 
> But some of the widgets like "comments" and "action_load" just stay
> seem to be stuck on "loading" (doesn't resolve to a widget).
>> 
> Assuming something is  missing, would anybody know what that is ? I
> added everything I could think of, but no go yet.
>> 
> Thanks,
> Mart :)
>> 
 --
>> 
 http://rochacbruno.com.br
>> 
>>> --
>> 
>>> http://rochacbruno.com.br
>> 
>> 


Re: [web2py] Re: Interesting developments...

2010-11-07 Thread rochacbruno
I am a Pylons user too, at our company the main product is made with Pylons. 

We had extra work migrating from 0.9 to Pylons 1.0 because they broke 
compatibility. 

After all the months of work, we are now lost with this new change. 

Even creators saying that Pylons API will be always there, what we can expect 
for the evolution of our actual work?

Maybe we decide to write our own layer for the GeoMaps (actually done with 
Pylons) and migrate the whole front end from Pylons+WTForms to web2py & DAL

The backwards conpatibility compromisse really matters!



Em 07/11/2010, às 20:28, Branko Vukelic  escreveu:

> On Sun, Nov 7, 2010 at 5:20 PM, mdipierro  wrote:
>> thought you may enjoy this discussion...
>> 
>> http://www.reddit.com/r/Python/comments/e22ol/pyramid_is_a_small_fast_downtoearth_python_web/c14omr0
> 
> Discussion about the "MV" framework was really interesting, though.
> And Massimo is absolutely right in pointing out that intellectual
> masturbation is just that: masturbation. It doesn't do anyone any
> favors, and as a result you get reactions like "Wait, what am I
> missing? Controllers or Templates?" Doesn't do Pyramid devs any
> service either. It'll take some time even for devs to get over the
> terminology hump, let alone the user.
> 
> When I started using web frameworks 2 years ago (as a non-programmer,
> mind you), I had much trouble getting used to MVC. Then I had trouble
> wrapping my mind around MTV in Django. I can imagine what it might
> look like to existing Pylons users: "What?! No more C?!" :D
> 
> 
> -- 
> Branko Vukelić
> 
> bg.bra...@gmail.com
> stu...@brankovukelic.com
> 
> Check out my blog: http://www.brankovukelic.com/
> Check out my portfolio: http://www.flickr.com/photos/foxbunny/
> Registered Linux user #438078 (http://counter.li.org/)
> I hang out on identi.ca: http://identi.ca/foxbunny
> 
> Gimp Brushmakers Guild
> http://bit.ly/gbg-group


Re: [web2py] RFC

2010-11-05 Thread rochacbruno
bio wiki will be a Markmin represent?

I think it is a good idea, but , if mixed with the normal sintax, will it work?

Some users, specially students, will try to mix for example:

> db.define_table('person','name unique, address, married boolean, bio
> wiki',Field('foo','text'), format=' ' , migrate=' ' , compute= ' ' , 
> signature)


This could difficult the learning curve of DAL


Enviado via iPhone

Em 06/11/2010, às 00:53, mdipierro  escreveu:

> We could easily provide this alternative syntax:
> 
> db.define_table('person','name unique, address, married boolean, bio
> wiki')
> form = SQLFORM.factory('name unique, address, married boolean, bio
> wiki')
> 
> by taking it out of the wizard and moving into the DAL (sql.py). Is it
> a good idea?
> 
> 


Re: [web2py] Where's the applications directory on OSX filesystem?

2010-11-04 Thread rochacbruno
.app are packages, right click or command click on that and select "show 
content" or something like this 

Enviado via iPhone

Em 05/11/2010, às 02:43, Tom  Campbell  escreveu:

> I'm changing to OSX from Windows and can't browse to the applications
> directory.  If I search for the view file customer.html from the
> command line I see it easily:
> 
> 
> $ find . -name customer.html
> ./osx/1.88.2/web2py/web2py.app/Contents/Resources/applications/
> scheduler/views/customer.html
> 
> However I can't see my Web2py applications folder in the Finder. (And
> therefore can't copy my old Windows project there.) web2py.app seems
> to be the application that launches web2py, and it's not clear to me
> how it's a containing directory as well.


Re: [web2py] Re: Book Edit Suggestion

2010-11-04 Thread rochacbruno
Sorry I didnt test this way. 

I also didnt know that search returns a select. 

Enviado via iPhone

Em 05/11/2010, às 01:58, mdipierro  escreveu:

> Just:
> 
> search, rows = crud.search(table)
> 
> search returns a tuple.
> 
> On Nov 4, 10:29 pm, Bruno Rocha  wrote:
>> It is ok to do
>> 
>> search, rows = crud.search(table), crud.select(table)
>> 
>> Edited!
>> 
>> 2010/11/4 villas 
>> 
>> 
>> 
>>> http://www.web2py.com/book/default/chapter/07#CRUD
>> 
>>> I noticed this example in the book which does not seem correct:
>> 
>>> def manage():
>>>table=db[request.args(0)]
>>>form = crud.update(table,request.args(1))
>>>table.id.represent = lambda id: \
>>>   A('edit:',id,_href=URL(args=(request.args(0),id)))
>>>search, rows = crud.select(table)# <<<--
>>>return dict(form=form,search=search,rows=rows)
>> 
>>> May I suggest replacing the marked line:
>>>search, rows = crud.select(table)
>> 
>>> with these two lines:
>>>search = crud.search(table)
>>>rows = crud.select(table)
>> 
>>> -D
>> 
>> --
>> 
>> http://rochacbruno.com.br


Re: [web2py] Re: Straw poll on the learning curve of markmin for the layman

2010-11-04 Thread rochacbruno
I am a markmin fan, I wrote An. Entire book in markmin. 

Very rapid 

Enviado via iPhone

Em 04/11/2010, às 20:15, Christopher Steel  escreveu:

> We love Markmin. It is tiny, easy to use and logical. It is similar to
> Markdown which is pretty nice, but Markmin covers what people actually
> use in a way that makes markup look good in itself.
> 
> As an added bonus it is totally readable as a text file so everyone,
> including one of our board members who happens to be blind, can edit,
> create and update markmin documents.
> 
> I think it has world changing possibilities...
> 
> and Massimo(?) just posted an example app -> http://www.web2py.com/markmin
> 
> 
> On Nov 4, 3:20 pm, Luther Goh Lu Feng  wrote:
>> Has anyone had experience implementing markin as part of text area
>> input? Do end users find markmin difficult? Personally, I find it very
>> user friendly, especially withhttp://www.web2py.com/markminBut then
>> again, I am a biased developer.
>> 
>> Any feedback on this?


Re: [web2py] Re: \sample markmin app

2010-11-04 Thread rochacbruno
Very Nice!

I am a markmin fan

Would be good to render it live with ajax. 

Enviado via iPhone

Em 04/11/2010, às 17:35, mdipierro  escreveu:

> oops. please try againa.
> 
> On Nov 4, 2:10 pm, David Marko  wrote:
>> I cant download  the app using the provided 
>> link:http://www.web2py.com/markmin/static/web2py.app.markmin.w2p
>> 
>> David
>> 
>> On 4 lis, 20:02, mdipierro  wrote:
>> 
>>> you can use plugin_wiki instead.
>>> Of you can use markmin and define your own syntax. For example you can
>>> do
>> 
>>> extra = {'youtube': lambda code: ">> height="385">http://www.youtube.com/v/%s?
>>> fs=1&hl=en_US">>> value="true">>> param>http://www.youtube.com/v/%s?fs=1&hl=en_US";
>>> type="application/x-shockwave-flash" allowscriptaccess="always"
>>> allowfullscreen="true" width="640" height="385">" %
>>> (code,code)}
>> 
>>> text = """
>> 
>>> # here is a video
>> 
>>> ``l7AWnfFRc7g``:youtube
>> 
>>> """
>> 
>>> html=MARMIN(text,extra)
>> 
>>> On Nov 4, 1:31 pm, Luther Goh Lu Feng  wrote:
>> 
 Very nice. How can one embed videos from youtube, vimeo, using
 markmin?
>> 
 On Nov 5, 2:25 am, mdipierro  wrote:
>> 
> it has been included for some time. You can use it via the MARKMIN
> helper.
>> 
> On Nov 4, 12:34 pm, villas  wrote:
>> 
>> That looks like a great combination with the editor!
>> Is Markitup going to be included as standard?
>> 
>> -D
>> 
>> 


Re: [web2py] Error in trunk with admin layout?

2010-11-04 Thread rochacbruno
+1

Enviado via iPhone

Em 04/11/2010, às 11:33, Seeker  escreveu:

> Hi,
> 
> In trunk:
> Not sure if i have done something wrong, but admin seems to be without
> a layout ...
> Anyone else experiencing this?
> 
> Thanks.


Re: [web2py] Web2py Application Exhibition ( Version 2.0 )

2010-11-03 Thread rochacbruno
Nice! Until december I will finish one of my open projects. 

Enviado via iPhone

Em 03/11/2010, às 19:18, NetAdmin  escreveu:

> Web2py Application Exhibition Version 2.0
> 
> Do you have a Web2py app that you'd like to show the world?
> If so, you may be interested in the Web2py Application Exhibition.
> 
> The WAE is a way to...
> 1. Demonstrate what can be done with Web2py.
> 2. Share and learn about useful web2py, python, Javascript, jQuery
> etc. techniques.
> 3. Earn some money toward that new  you've been craving.
> 
> Projects will be judged in the following areas.
> 
> Ease of use
> Usefulness
> Visual Appeal
> 
> The Rules
> 1. Applications must be submitted no later than December 15, 2010
> 2. Source must be included with your submissions.
> 3. If the application is written by a team, Massimo can NOT be part of
> the team.
> 4. After a 2 week review period, on December 31, 2010, the winners
> will
> be announced on the web2py-users list.
> 5. The 1st place winner will receive $100 US Dollars, 2nd place will
> receive $50
> 6. You must enjoy using Web2py!
> 7. Previous winners must wait 365 days before being eligible to win
> again.
> 
> Martin Mulone, the winner of the last Exhibition with his entry titled
> "Instant Press", has volunteered to help tally your votes using an
> application
> he wrote. ( Using Web2py of course! )
> 
> 
> Submissions must be mailed to mr.netad...@gmail.com
> 
> Good Luck!
> 
> Mr.NetAdmin at gmail.com
> 
> 
> 


Re: [web2py] [Tip] How to get people who does not follow you on twitter

2010-11-03 Thread rochacbruno
Do you mean showing who follows @web2py? 

I think it is a good idea, even to create some kind of web2pyers network based 
on twitter. 

Enviado via iPhone

Em 03/11/2010, às 18:18, Michele Comitini  escreveu:

> Don't you think some components using this on web2py.com home page
> would be nice?
> 
> 
> 
> 2010/11/3 Bruno Rocha :
>> Maybe it can be usefull for someone building a twitter app with web2py,
>> I take this form an example posted by @gwidion on twitter.
>> 
>> # -*- coding: utf-8 -*-
>> import urllib, json
>> # Author: João S. O. Bueno
>> # License: LGPL V 3.0
>> def get_people_set(method, id, update=None):
>> url = "http://api.twitter.com/1/statuses/%s/%s.json";  % (method, id)
>> people = set()
>> cursor = "-1"
>> while True:
>> data = json.loads(urllib.urlopen(url + "?cursor=%s" %
>> cursor).read())
>> cursor = data["next_cursor"]
>> if update:
>> update(cursor)
>> these_people = set(person["screen_name"] for person in
>> data["users"])
>> people.update(these_people)
>> if not cursor  or not these_people :
>> break
>> return people
>> 
>> As it returns a set, it is easy to get its intersection/union and rest.
>> 
>> friends = get_people_set("friends", id, self.status)
>> followers = get_people_set("followers", id, self.status)
>> 
>> To get who does not follow you, simple do:
>> 
>> noFollowers = sorted(friends - followers)
>> 
>> I am building my own twitter client, using @michelecomitini example,
>> including some more options as this one.
>> 
>> Bruno Rocha
>> http://flavors.me/rochacbruno
>> 
>> 
>> 
>> 


Re: [web2py] Re: new welcome app in trunk but minor problem...

2010-11-03 Thread rochacbruno
Cool! And much easier than I tought. 
I can simply create my own helper if I need position and other JS 

BTW. Its a good idea to promote flash in to a built in helper and the mode arg.



Enviado via iPhone

Em 03/11/2010, às 16:27, mdipierro  escreveu:

> One thing we can do is a FLASH helper that allows:
> 
> response.flash=flash('test',mode='warn')
> 
> This is already in the new welcome app but we could promote flash to a
> FLASH helper.  Pros? Cons?
> It would link a helper to some image static files that may not be
> there.
> 
> We could add some JS code insider that can reposition it but I do not
> think that is a good idea. The position should be fixed and determined
> by the CSS.
> 
> Massimo
> 
> 
> On Nov 3, 12:09 pm, rochacbruno  wrote:
>> Would be a good idea to have more options for flash.
>> 
>> I.e: response.flash('hello world',position='top-right')
>> 
>> Enviado via iPhone
>> 
>> Em 03/11/2010, às 14:56, Martín Mulone  escreveu:
>> 
>>> Massimo I think welcome is broken in trunk, there no files in views/ :O
>> 
>>> Often the user does not notice that something has just appeared in the 
>>> flash box
>> 
>>> Perhaps a variation of flash 'silen', that goes like an application 
>>> statusbar, on bottom and thin.
>> 
>>> 2010/11/3 mdipierro 
>>> I think this is fixed and layouts now work with both old welcome and
>>> new welcome.
>> 
>>> Can somebody try it please?
>> 
>>> Just install one random layout (old welcome and new welcome) and use
>>> firebug to make sure superfish.js is found.
>> 
>>> Massimo
>> 
>>> On Nov 3, 4:37 am, Branko Vukelic  wrote:
>>>> On Wed, Nov 3, 2010 at 6:00 AM, mdipierro  wrote:
>>>>> We have two solutions:
>>>>> 1) change all layouts w2p files to look for superfish in static/ or in
>>>>> static/js
>>>>> 2) move all the current static files in static/ and our of static/css,
>>>>> static/js, static/images/.
>> 
>>>>> Probably 1) is a better option.
>> 
>>>> If you can customize it anyway you want in a custom template, I really
>>>> see no problem with 1).
>> 
>>>> --
>>>> Branko Vukelić
>> 
>>>> bg.bra...@gmail.com
>>>> stu...@brankovukelic.com
>> 
>>>> Check out my blog:http://www.brankovukelic.com/
>>>> Check out my portfolio:http://www.flickr.com/photos/foxbunny/
>>>> Registered Linux user #438078 (http://counter.li.org/)
>>>> I hang out on identi.ca:http://identi.ca/foxbunny
>> 
>>>> Gimp Brushmakers Guildhttp://bit.ly/gbg-group
>> 
>>> --
>>> My blog:http://martin.tecnodoc.com.ar
>>> My portfolio *spanish*:http://www.tecnodoc.com.ar
>>> Checkout my last proyect instant-press:http://www.instant2press.com
>> 
>> 


Re: [web2py] Re: new welcome app in trunk but minor problem...

2010-11-03 Thread rochacbruno
Would be a good idea to have more options for flash.

I.e: response.flash('hello world',position='top-right')


Enviado via iPhone

Em 03/11/2010, às 14:56, Martín Mulone  escreveu:

> Massimo I think welcome is broken in trunk, there no files in views/ :O
> 
> Often the user does not notice that something has just appeared in the flash 
> box
> 
> Perhaps a variation of flash 'silen', that goes like an application 
> statusbar, on bottom and thin.
> 
> 2010/11/3 mdipierro 
> I think this is fixed and layouts now work with both old welcome and
> new welcome.
> 
> Can somebody try it please?
> 
> Just install one random layout (old welcome and new welcome) and use
> firebug to make sure superfish.js is found.
> 
> Massimo
> 
> On Nov 3, 4:37 am, Branko Vukelic  wrote:
> > On Wed, Nov 3, 2010 at 6:00 AM, mdipierro  wrote:
> > > We have two solutions:
> > > 1) change all layouts w2p files to look for superfish in static/ or in
> > > static/js
> > > 2) move all the current static files in static/ and our of static/css,
> > > static/js, static/images/.
> >
> > > Probably 1) is a better option.
> >
> > If you can customize it anyway you want in a custom template, I really
> > see no problem with 1).
> >
> > --
> > Branko Vukelić
> >
> > bg.bra...@gmail.com
> > stu...@brankovukelic.com
> >
> > Check out my blog:http://www.brankovukelic.com/
> > Check out my portfolio:http://www.flickr.com/photos/foxbunny/
> > Registered Linux user #438078 (http://counter.li.org/)
> > I hang out on identi.ca:http://identi.ca/foxbunny
> >
> > Gimp Brushmakers Guildhttp://bit.ly/gbg-group
> 
> 
> 
> -- 
> My blog: http://martin.tecnodoc.com.ar
> My portfolio *spanish*: http://www.tecnodoc.com.ar
> Checkout my last proyect instant-press: http://www.instant2press.com
> 
> 
> 


Re: [web2py] Hyperlink urls in comments

2010-11-03 Thread rochacbruno
You can use MARKMIN()


Enviado via iPhone

Em 03/11/2010, às 06:12, Luther Goh Lu Feng  escreveu:

> This probably isn't a web2py specific question but I thought I should
> ask anyway in case there is something relevant in web2py that I have
> missed.
> 
> I have a comments form that is used to create comments based on user
> input. I would like to parse this user input such that any URLs
> included will be clickable, ie enclosed by  
> 
> Any tips?


Re: [web2py] Standalone DAL, what's the correct uri for the database location ?

2010-10-31 Thread rochacbruno
What about the folder atribute?

DAL('sqlite://db.db',folder='D://...')


Enviado via iPhone

Em 31/10/2010, às 19:30, Stef Mientki  escreveu:

> On 31-10-2010 22:01, Thadeus Burgess wrote:
>> 
>> Have you tried without the file:/// ?
> I thought I did, but probably I had other bugs then,
> indeed it works without the "file///' prefix,
> both with forward  and with backward slashes.
> 
> thanks,
> Stef
>> 
>> On linux you don't need to specify file:/// you can just give the full path.
>> 
>> --
>> Thadeus
>> 
>> 
>> 
>> 
>> On Sun, Oct 31, 2010 at 3:19 PM, Stef Mientki  wrote:
>> hello,
>> 
>> Standalone DAL,  what's the correct uri for the database location ?
>> 
>> This works:
>>  Database_Name = 'ID_TO_Beheer_DAL.db'
>>  DB = DAL_DB ( 'sqlite://' + Database_Name )
>> 
>> 
>> This gives an error, saying couldn;'t find a database after 5 tries
>>  Database_Name = r'D:/Data_Python_25/Beheer/ID_TO_Beheer_DAL.db'
>>  DB = DAL_DB ( 'sqlite://file:///' + Database_Name )
>> 
>> A workaround is to use os.chdir()
>> 
>> thanks,
>> Stef Mientki
>> 
> 


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-31 Thread rochacbruno
We can start a votation to decide if we need a new logo votation.

LOL

Enviado via iPhone

Em 31/10/2010, às 14:13, Albert Abril  escreveu:

> Finally it's going to be a 2n Round logo contest as said at this thread?
> Just curious.
> 
> On Tue, Oct 26, 2010 at 9:28 PM, Albert Abril  wrote:
> +1 to Branko again.
> 
> ( mailist should have a comment voting system :D )
> 
> 
> On Tue, Oct 26, 2010 at 8:50 PM, Branko Vukelic  wrote:
> Please don't even try to imagine a graphic designer that would turn
> abstract ideas like Stability and Ease of use into a useful graphic.
> That's impossible. In reality, it's the reverse. You have a memorable
> image that you can associate with the qualities you discover in a
> product. And only then does the image 'obtain' those qualities.
> 
> Does a 3-pointed star represents German high-precision engineering,
> and luxury? I doubt that. Yet, Benz is using that shape. And people
> have come to associate those qualities with exactly the kind of
> 3-pointed star Benz uses, and no other. You can put just any kind of
> 3-pointed star on your car and expect it to look well-made and
> comfortable. It only works if it's the Mercedes-Benz 3-pointed star.
> 
> When Arch Linux community had it's logo design contest, we run into
> this very problem: discussion about the qualities that a logo should
> represent. And, of course, you can't find those qualities in the logo
> that's currently being used unless you've associated them with the
> image yourself. But the discussion dragged on for days, and the whole
> community was divided in a flame war. There were even some
> 'professionals' who claimed a logo really can speak 1000 words. That's
> so far from truth. You'd really have to draw a painting of a logo to
> pull that off.
> 
> So, what are the notable exceptions to the above? Concrete imagery. In
> other words, mascots. And only those mascots that have some root in
> the culture. Lions, Tigers, Crane, Frogs, etc. Those animals have
> traditionally lots of characteristics associated with them. So using
> such images definitely can tell a story. What about that ship? Well,
> it's a 50-50 bet.
> 
> To some it may speak, to others it may not. And here's a good test of
> this. How many of you had the following ideas when seeing that ship:
> 
> * Ability to carry a huge amount of load: scalability
> * A graceful voyage across a vast ocean: stability
> * Took a lot of manpower to build: great community
> 
> How many of you got those ideas upon seeing it? I suspect most had
> other thoughts. I seriously doubt there is a unified and universal
> graphical language that you can use reliably to relay abstract
> messages. IOW: Graphic design still hasn't got it's HTTP. ;)
> 
> So, before this turns into a pointless discussions, let's just stop
> wasting time on abstract ideas. Stability, Speed, Scalability, et al.
> those are for the product itself to achieve, not the logo. Logo can be
> colorful, sharp, cute, dull, crap... Let's focus on what the logo CAN
> be, please.
> 
> On Tue, Oct 26, 2010 at 6:36 PM, mwolfe02
>  wrote:
> > Excellent points.
> >
> > On Oct 26, 12:04 pm, Anthony  wrote:
> >> Also:
> >> 3. Easy (to learn and use)
> >> 4. Open/welcoming/friendly/helpful (this refers to the community)
> >> 5. Active development (i.e., constantly being enhanced and improved)
> >>
> >> As for the logo, I'm sure opinions will differ on all-text vs. image
> >> logos (and will probably depend a lot on the particular design), but
> >> I'm not sure a highly literal physical object image (e.g., boat,
> >> train, animal, etc.) will work that well for web2py. Those kinds of
> >> images certainly make sense when they represent something directly in
> >> the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
> >> has a gear; Flask has a flask), but can be confusing otherwise. That's
> >> not to say we shouldn't have an image, but if we do, something more
> >> abstract may work better (e.g., like the old logo).
> >>
> >> Anthony
> >>
> >> On Oct 26, 11:27 am, mwolfe02  wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > I really like the idea of a bold, simple image to represent the
> >> > framework.  I'm just not convinced a ship is the right image.
> >>
> >> > Maybe it would be more helpful to the few good logo designers on this
> >> > list (of which Branko is certainly one), for us to propose different
> >> > images.  I'll list what I feel (personally) are the strengths of the
> >> > framework that an image would ideally represent:
> >>
> >> > 1a. Speed (of development)
> >> > 1b. Security
> >> > 2.  Reliability/Stability (ie, promise of backwards
> >> > compatibility...the one thing that *truly* distinguishes web2py from
> >> > other frameworks; most others don't even try)
> >>
> >> > Some quick image ideas off the top of my head (that may or may not be
> >> > practical as logos):
> >> > - 'bullet' train
> >> > - sailfish
> >> > - catamaran sailboat (a bit more modern-looking/faster than Br

Re: [web2py] Re: web2py 1.88.1 is OUT

2010-10-30 Thread rochacbruno
At my company we started to use this 

http://www.reviewboard.org/

Integrated with hg

I suggest to start using this integrated with the main web2py repository. 

Enviado via iPhone

Em 30/10/2010, às 21:33, mart  escreveu:

> BTW - have you seen Mondrian? - is built on Perforce.
> 
> http://video.google.com/videoplay?docid=-8502904076440714866#
> 
> Mart
> 
> 
> On Oct 30, 7:24 pm, mart  wrote:
>> Hey,
>> 
>> Would it make sense not to pull the apps that get built against #head
>> revision (unless the goal is to test the apps themselves) and
>> preferably just pull the code line it self @ #head revision? (follow
>> up on this in next paragraph) And also, I don't know where things
>> stand wrt bug tracking, but an important consideration are the bug
>> fixes ("does this build contain the fix for Bug X?"). Typically when
>> bugs get resolved/closed, they get verified on a clean slate, then
>> once validated & blessed (or rejected), the fix can be made public.
>> 
>> I think the process is pretty close to what Thadeus mentioned, but
>> would add the integration to bug tracking (this data is usually made
>> part of the release notes specifically instead of a description typed
>> in @ commit time). if the desire is automation (smoke tests) that I
>> would store the raw data of the "generic app" in some dedicated
>> tables, then re-populate the all-encompassing app with current data.
>> By always grabbing latest_row, you keep the previous data for the
>> previous build/release intact and in the correct place (so you don't
>> need to change the test process from release to release, and you have
>> the the build process insert a new set of records @ build time
>> referencing the current build. With this, you also have
>> reproducibility if needed.
>> 
>> Last point, and I know I am persistently annoying with this, but
>> mercurial, IMHO, sucks, sucks a lot. Personally I would use nothing
>> less then the best out there, Perforce, specially if considering
>> automated testing (again IMHO, but at least a fairly well supported
>> statement :)). web2py is Open source, Perforce does give additional
>> user licenses to open source projects (I'm sure Massimo would only
>> need to make the request (which is online @ perforce .com btw). I
>> mention that here because, good testing processes should be well
>> integrated to source control. and for the web2py user, offering time
>> for testing, a local instance of the perforce server can be installed,
>> absolutely free of charge (with a max of 2 user licenses per server -
>> more than enough for "remote workers" who can very easily keep in sync
>> with the "main web2py" server (I work from home (Quebec, Canada), work
>> for an American based company (HQ in Sunnyvale) - and that is how I do
>> my work, with my local p4D. works like a charm). Anyways, enough of
>> that, just thought I'd find another reason to slide that in ;)
>> 
>> regards,
>> Mart :)
>> 
>> On Oct 30, 2:58 pm, Luther Goh Lu Feng  wrote:
>> 
>>> It is reasonable to suggest a universal test app that will assist in
>>> the quality assurance of web2py. But I wonder if this will always have
>>> 100% test coverage, given that bugs may appear even when writing test
>>> cases. This is still a good idea compared to not having a test suite.
>> 
>>> However, I think I would have a greater sense of security if I am able
>>> to test the apps I have written against the nightly/trunk build.
>> 
>>> On Oct 31, 1:46 am, Thadeus Burgess  wrote:
>> 
 Where should the list of apps come from? I think this is the biggest
 question.
>> 
 --
 Thadeus
>> 
 On Sat, Oct 30, 2010 at 12:46 PM, Thadeus Burgess 
 wrote:
>> 
> Someone writes a script to automate the process. Have a list of apps that
> we want to be sure are tested and working. The script will download web2py
> testing, copy the apps to the downloaded version, fire a process fork to
> start that web2py, use urllib or httplib to navigate to each of the apps
> pages to verify that things are working. If a response code of 500 is ever
> received then go get the error ticket and store it somewhere central
> including which app it came from.
>> 
> --
> Thadeus
>> 
> On Sat, Oct 30, 2010 at 9:25 AM, Luther Goh Lu Feng 
> wrote:
>> 
>> On Oct 30, 7:05 am, mdipierro  wrote:
>>> Normally it goes to the nightly build, perhaps not exactly the latest
>>> but something very close. The bug in question has been there for about
>>> one week. The problem is that nobody tests the nightly build.
>> 
>>> Massimo
>> 
>> I would love to have a way to test non stable builds easily with my
>> existing apps. How does one do so besides downloading the trunk/
>> nightly build, and then exporting the apps from stable web2py and then
>> import to the trunk/nightly web2py?
>> 
>> 


Re: [web2py] Stand Alone DAL and migrations (again)

2010-10-30 Thread rochacbruno
Look this simple example:

http://bitbucket.org/rochacbruno/dal_on_flask/src/tip/dalFlask.py


I have a PyGTK app running very well, I will put the code online soon.



Em 30/10/2010, às 06:33, Stef Mientki  escreveu:

> Interesting ...
> as I want to migrate to web2py
> and want to have some kind of DAL for my desktop applications,
> this sounds very good.
> 
> Can you give me some guide lines, how to use the web2py DAL for desktop 
> applications ?
> 
> thanks,
> Stef Mientki
> 
> 
> On 19-10-2010 05:44, Bruno Rocha wrote:
>> 
>> I know DAL was not made for that, but I'm using the DAL in a desktop 
>> application with PyGTK, and it is working very well :-)
>> 
>> It is a simple application that monitors the presence of employees   in 
>> a company and reads small CSV files from a time clock,
>> people has cards that open the gates/doors of the company factory, I use a 
>> stream to read the track from serial port of time clock,
>> then, I take the information serialized as CSV, I parse and write it into 
>> SQLite db, after that , the Janitor uses a PyGTK app to access that 
>> information.
>> 
>> already been running for about 6 months, So far everything is working fine, 
>> but I can not run the automatic migrations.
>> 
>> Does anyone know a way to make migration work automatically with DAL Stand 
>> Alone?
>> 
>> I'm importing sql.py I'm connecting with SQLite, setting tables, accessing 
>> and doing out any crud operation.
>> 
>> The only thing missing is to make migration works.
>> 
>> I already set migrate='Mytable.table' and I tried with migrate=True
>> 
>> 
>> An example of what I have working in my 
>> 
>> "connect.py"
>> >>> from gluon.sql import *
>> >>> db = DAL('sqlite://timeclock1.db')
>> >>> Track = 
>> >>> db.define_table('track',Field('regnumber','integer'),Field('action','integer'),Field('timestamp','datetime'),migrate='track.table')
>> 
>> "Form_workflow.py"
>> >>> Track.insert(regnumber=123,action=2,timestamp='2010-10-19')
>> 1
>> >>> Track.insert(regnumber=124,action=2,timestamp='2010-10-19')
>> 2
>> >>> db.commit
>> 
>> Until here, its ok.
>> 
>> But now I am wanting to change the model, and including Field('department')
>> 
>> "connect.py"
>> >>> Track = 
>> >>> db.define_table('track',Field('regnumber','integer'),Field('action','integer'),Field('timestamp','datetime'),Field('department'),migrate='track.table')
>> 
>> Traceback (most recent call last):
>>   File "", line 1, in 
>>   File "/bin/DAL/gluon/sql.py", line 1346, in define_table
>> raise SyntaxError, 'invalid table name: %s' % tablename
>> SyntaxError: invalid table name: track
>> >>> 
>> 
>> 
>> 
>> If this is not possible, I'll have to create new fields in SQLite and then 
>> update my model.
> 


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread rochacbruno
Nice, this the actual logo idea in lower case. Excelent.

I like more the one with a ship

Enviado via iPhone

Em 26/10/2010, às 08:49, Branko Vukelic  escreveu:

> On Tue, Oct 26, 2010 at 2:00 AM, mdipierro  wrote:
>> I have no strong opinion one way or another.
> 
> How about this one?
> 
> 
> 
> -- 
> Branko Vukelić
> 
> bg.bra...@gmail.com
> stu...@brankovukelic.com
> 
> Check out my blog: http://www.brankovukelic.com/
> Check out my portfolio: http://www.flickr.com/photos/foxbunny/
> Registered Linux user #438078 (http://counter.li.org/)
> I hang out on identi.ca: http://identi.ca/foxbunny
> 
> Gimp Brushmakers Guild
> http://bit.ly/gbg-group
> 


Re: [web2py] Hosting service for web2py

2010-10-23 Thread rochacbruno
I am having good experience with webfaction 

Enviado via iPhone

Em 23/10/2010, às 00:43, José Luna Venezuela  escreveu:

> Hi i whant to know what hosting provider offer suport for web2py or i
> need to have a vps if i whant to make a web page?
> 
> Thx


Re: [web2py] Re: Powered by web2py

2010-10-22 Thread rochacbruno
Thumbalizer has an API , REST and sample code for PHP but we can fork to 
Python. 

Enviado via iPhone

Em 22/10/2010, às 20:59, mdipierro  escreveu:

> This thread contains lots of really nice sites. Others are listed
> here:
> 
> http://web2py.com/poweredby
> 
> If one of you had some spare time were to send me screenshots scaled
> 200x150 names www.domain.com.png etc for all web2py powered sites, I
> would use the template of http://web2py.com and make a nice showroom
> with an ajax gallery.
> 
> Massimo
> 
> 
> 
> 
> On Oct 22, 4:50 pm, Anthony  wrote:
>> Very cool. Though it has some major display problems in IE7 (and some
>> minor problems with the home page in IE8). Also, you should probably
>> change the site's favicon -- it's actually using the new web2py
>> favicon.
>> 
>> Anthony
>> 
>> On Oct 22, 5:24 pm, Bruno Rocha  wrote:
>> 
>>> One more Brazilian site developed with WEB2PY
>> 
>>> http://campus.visie.com.br/default/index
>> 
>>> This is the site where one of the most importants creative design agency of
>>> São Paulo are giving online courses, they used web2py and Amazon with boto
>>> library for video streaming.
>> 
>>> This website was develop during an event with the help of all developers
>>> attending, "something like a Coding Dojo"
>> 
>>> 2010/10/10 Bruno Rocha 
>> 
 A student of one of my classes of web2py training in Brazil, research the
 web and made a list of websites powered by web2py.
>> 
 he separates in categories: Populars, Great Ones, Good ones and which keeps
 scaffold layout.
>> 
 I found good designed websites in that list.
>> 
 http://www.elizabethscanvas.org/
 http://www.qakit.com/
 http://ru.ly/( an URL shortener)
>> 
 Forwarded is the entire list, do you know someone else?
>> 
 ---
 -- Forwarded message --
 From: Rene Guerrero 
 Date: 2010/10/10
 Subject: Sites que utilizam web2py
 To: rochacbr...@gmail.com
>> 
 Bruno
>> 
 Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
 agosto em São Paulo.
 Desde aquela data até hoje tenho me dedicado a estudar o web2py.
 Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
 web2py.
 Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
 desenvolvidos, mais complexos ou mais bonitos.
 Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
 evangelizadora deste framework.
 Para alguns deles não indico a página inicial, porque a mencionada me
 pareceu mais esclarecedora.
 Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos só
 indicam sua origem em algum lugar dentro dos respectivos blogs (da empresa
 ou do autor).
>> 
 Conhecidos:
 http://web2pyslices.com/main/default/index
 http://www.pyforum.org/
 http://www.qualitysystems.com/qs/
 http://www.tenthrow.com/home/
 http://radbox.me/
 https://us.pycon.org/2009/register/default/about
 https://us.pycon.org/2010/register/default/about
>> 
 Bons:
 http://www.latnblack.com/
 http://auctionall.info/hausstand
 http://www.qakit.com/
 http://www.epysoft.com/
 http://www.healthscapes.org/welcome/default/index
 http://www.whitepeaksoftware.com/
 http://hipercenter.com/
 http://www.corraleslamagdalena.com.ar/lamagdalena/
 http://www.norterural.com.ar/norterural/default/noticias/2
 http://rockiger.com/
 http://www.elizabethscanvas.org/
 http://site.quadraforte.com/
 http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/co...
 http://www.nzacap.org.nz/welcome/folders/public/1/1
 http://www.throngly.com/
 http://www.klasproducts.com/
 http://ru.ly/
 http://www.justindressel.com/
 http://web2pybrasil.com.br
>> 
 Algo menos:
 http://ga2arch.appspot.com/
 https://backdoorhiding.appspot.com/
 http://laurendickey.com/
 http://www.wedo-group.com/welcome/statement/vision
 http://danielkrol.com/welcome/default/diffeqmunchers/
 http://diarywiz.com/dw/default/index
 http://wavedirectory.appspot.com/
 http://openshare.emotionull.com/
 http://projectkintaro.appspot.com/
 http://www.spinyc.com/
 http://ronluppers.nl/ronluppers/default/index
 http://www.sitescraper.net/
 http://www.opensvc.com/
 http://www.igeejo.com/blog/default/projects
 http://equimindfinancial.appspot.com/equi/default/index
 http://www.professionalit.com.br/
 http://favr.appspot.com/
 http://web2py.appspot.com/metacryption
>> 
 http://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation...
 http://fightalzheimers.appspot.com/init/default/wiki/main
 http://www.jwfind.net/
 http://rheum.huh.harvard.edu/pgdemo/stree/view/4
 http://valmivolpato.appspot.com/villeveneteacaerano/default/villa
 http://web2py.appspot.com/
 http://www.semanticsbml.org/a

Re: [web2py] Re: Instant Press in beta

2010-10-18 Thread rochacbruno
Martin, a suggestion is to include the option of writing in Markmin format.

I will try to do a test here.

Do you have a clone in BitBicket or Mercurial in Google ?

Great work

Thanks 


Enviado via iPhone

Em 18/10/2010, às 20:56, "Martin.Mulone"  escreveu:

> ckeditor
> 
> On 18 oct, 19:11, Stef Mientki  wrote:
>>  looks fantastic !!!
>> which html editor did you include ( can't remember having a so extended 
>> editor in a web2py
>> application) ?
>> thanks,
>> Stef
>> 
>> On 18-10-2010 17:09, Martin.Mulone wrote:
>> 
>> 
>> 
>>> After almost 3 month of heavy development, i think its mature enough
>>> to move to beta phase. Well for me was a proof of concept, of what can
>>> i do in web2py, i have to thank to massimo and the community to
>>> answered my littles questions. What's new in beta, well i suggest to
>>> see the page and watch new tour in instant press video, because I made
>>> a lot of changes, and i test it a lot. What you can do for instant
>>> press? Test. I know there some little issues, and some others I don't
>>> know. I made the code clear enough for who's like to read source code,
>>> and want to start medium size project in web2py.
>> 
>>> new video in:
>>> http://www.youtube.com/watch?v=gtdJ5JCxiJQ
>> 
>>> http://code.google.com/p/instant-press/
>> 
>>> Instant Press is an open source CMS developed in Web2py Framework.
>>> Instant Press is simple, easy to use and attractive. Upload to your
>>> web2py framework or to Google Application Engine and you are ready to
>>> start!
>> 
>>> thanks,
>> 
>>> Martin.


Re: [web2py] Re: Instant Press in beta

2010-10-18 Thread rochacbruno
I like Instant Press. This makes me think about "rapid publishing" which means 
"easy to publish" or something "Agile"  like that.


Enviado via iPhone

Em 18/10/2010, às 14:42, "Martin.Mulone"  escreveu:

> I already have the domain instant2press.com
> 
> On Oct 18, 1:36 pm, mdipierro  wrote:
>> press2py, word2py, py2press, press4web, word4web, etc.
>> 
>> On Oct 18, 11:05 am, Jonathan Lundell  wrote:
>> 
>> 
>> 
>>> Here's an idea, free for nothing, for this or some other application: name 
>>> it Web Press. (I haven't checked for conflicts.)
>> 
>>> The reason I especially like it is that a "web press" has an old meaning: 
>>> the large, high-volume roll-fed presses used by newspapers and the like. 
>>> You've probably seen them in the movies.


Re: [web2py] Who made this? It is great!

2010-10-17 Thread rochacbruno
He is brazilian, Lucas. I know him from web and brazilian group.

Enviado via iPhone

Em 17/10/2010, às 19:14, mdipierro  escreveu:

> http://vimeo.com/15886413
> 
> I can see lots of uses for it.
> 
> I have some questions: does it store meta-info in the db? Or does it
> uses something like YAML? Where can we get it?
> 
> Some suggestions for improvement:
> - a checkbox for [use auth]
> - allow adding fields for auth_user
> - have a checkbox [use janrain] and seup janrain key/domain
> - use the same interface that you use to create tables to create
> controller actions (even if initially empty) (perhaps allows adding
> widgets from plugin_wiki)
> - It would be nice to have a way to display graphically the structure
> of an app as a tree. Two main branches: tables, pages
> - merge with http://web2py.com/layouts/plugin_layouts/index (perhaps
> just pick best layouts)


Re: [web2py] Re: Vote for a new logo

2010-10-14 Thread rochacbruno
The app needs some improvements that will be done today.

1 order logos by number of votes
2 allow users to delete 

I am working on this 

Enviado via iPhone

Em 14/10/2010, às 06:58, Michele Comitini  escreveu:

> How logos are presented?  The order can interfere with the vote...
> 
> 
> 2010/10/14 weheh :
>> If anyone can delete 22, 23, and 24, please, you have my permission to
>> do so.


  1   2   >