2011/1/26 rif feric...@gmail.com
Even if there are multiple web servers, there must be one, and only
one, database server.
Where did you find this phrase? what context?
which imports the file from module.
in models/importator.py
myfile = local_import('/.../myfile')
now, you can access myfile.myvar in any place you want.
Bruno Rocha
http://about.me/rochacbruno/bio
You have to change ['bSort'] and ['aSorted'] properties on
datatables.netjavascript, the plugin datatables has not an API to deal
with
datatables.net properties.
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/26 mmartinez alexra...@gmail.com
My question is this, as I do to sort
response.title = XML('copy; Copyright 2011')
2011/1/26 David J. da...@styleflare.com
How do I display HTML entities;
ie; copy; Copyright
I am doing response.title = 'copy; Copyright 2011';
I see that text exactly in the title bar;
I should see © Copyright 2011
Thanks
I posted the issue to pyGravatar and it has been accepted,
https://bitbucket.org/gridaphobe/pygravatar/src/bd0f796264e6/gravatar.py
Now, I think it needs to do the same for urllib on GAE?
Bruno Rocha
http://about.me/rochacbruno/ http://about.me/rochacbruno/bio
The right tool for favicon http://tools.dynamicdrive.com/favicon/
http://tools.dynamicdrive.com/favicon/--
Bruno Rocha
http://about.me/rochacbruno/bio
the output of
SQLFORM and it is pure HTML.
If you want to change that output later, you can navigate using
form.elements and use jquery syntax for doing that.
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/27 pbreit pbreitenb...@gmail.com
web2py.com seems down for me at the moment. 7:24pm california time.
It is up and running well here in Brazil (1:37 AM)
Simple check is: http://www.downforeveryoneorjustme.com/web2py.com
http://www.downforeveryoneorjustme.com/web2py.com--
Bruno Rocha
, which I think it is possible
to implement, but I don't know the caveats,
---
Bruno Rocha
http://about.me/rochacbruno/bio
goes to web2py project (it needs a web2py foundation?)
Or, if Massimo agree, each one of us can use the same default image and
build your own t-shirt on that sites.
--
Bruno Rocha
http://about.me/rochacbruno/bio
Link fix : http://www.vitrinepix.com.br/
Bruno Rocha
http://about.me/rochacbruno/bio
Nice,
this could be useful for admin too.
it is annoying to login for admin in localhost sometimes.
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/21 selecta gr...@delarue-berlin.de
http://www.web2pyslices.com/main/slices/take_slice/118
if you have an application that has access control
) will then be performed as required.
This can be useful for grouping rows together.
powerTable.dtfeatures['aaSortingFixed'] = [ [0,'asc'] ]
---
So sorry, I need to fix a lot of issues and make a better documentation for
powerTable plugin.
---
Bruno Rocha
http://about.me/rochacbruno/bio
In this link http://datatables.net/usage/options you can find the
datatables.net options, and that options are defined in
powerTable.dtfeatures[option]
Bruno Rocha
http://about.me/rochacbruno/bio
/p/web2py/source/detail?r=71968b09fb51c3c0a612ec4f1421a84955887f96
http://code.google.com/p/web2py/source/detail?r=71968b09fb51c3c0a612ec4f1421a84955887f96Anyone
else having problems with reference fields and SQLTABLE?
---
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/21 contatogilson...@gmail.com contatogilson...@gmail.com
What do you think of having a wiki on the framework and its libraries in
web2pyslices?
I don't know if a wiki is needed, in web2pyslices we are planning to have a
follow system, so people will be able to follow slices, and people
In controller
def mypage():
people = db(db.people.id0).select()
return dict(people=people)
In view
div id=*accordion*
{{ for person in people: }}
h3a href=#{{=person.name}}/a/h3
div{{=person.comments}}/div
{{ pass }}
/div
Include JqueryUI in the view.
Bruno Rocha
for referenced tables you can use this:
http://web2pyslices.com/main/slices/take_slice/102
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/21 Lennon lpru...@hotmail.com
I have two reasons for not wanting to use SQLFORM factory. First, I
can't figure out or find how to use SQLFORM factory
You can download any of the web2py layouts - http://web2py.com/layouts
http://web2py.com/layoutsanalyse and understand how the layouts were
created, and create your own layout plugin.
Then you will be able to include that for any web2py app you want.
I always work with layouts as plugins.
Bruno
See autoroutes.py in the scripts folder.
You need this: http://snipt.net/rochacbruno/routesconf/
and this: http://snipt.net/rochacbruno/routespy/
--
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/20 walter wdv...@gmail.com
Is there possibility to change the standard URL of the form
http
(db.userinfo.user_id==foo).select().first()
name = userlist.user_id.first_name
email = userlist.user_id.email
...
You need to query just the second table to get the data on the first one,
and you dont need to redefine the auth_user model.
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/20
Everything is a '*Slice*' of web2py so we want to create a place where these
slices have a meeting.
People, Plugins, Articles, Links, Apps, Projects etc, All in one place.
We just started the work, hope to release the alpha.web2pyslices.com in few
days
Bruno Rocha
http://about.me/rochacbruno
But, if you want a customized auth_user table, here is a good example
https://bitbucket.org/hc/scanme/src/743ed270faae/models/db_scanme.py
Bruno Rocha
http://about.me/rochacbruno/bio
'
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/19 Massimo Di Pierro massimo.dipie...@gmail.com
No. You can only access the models.
I wonder if it is possible to start web2py in Shell mode, execute a
controller under the web2py environment.
inspect the controllers 'return' or use template.py to evaluate a view file
passing the
{}
request.vars.num = 4
request.vars
Storage {'num': 4}
other =
exec_environment('applications/welcome/controllers/default.py',request=request)
other.soma()
5
/shell
The same can do with views parsing it using template.py
--
Bruno Rocha
http://about.me/rochacbruno/bio
Simply:
exec_environment('applications/welcome/controllers/default.py',request=request).sum()
5
Bruno Rocha
http://about.me/rochacbruno/bio
Is that?
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/18 walter wdv...@gmail.com
but the problem is that you have two controllers. Perhaps you should have
only one.
I have thought about it. Unfortunately, I need sometimes show all our
customers but at the next time I need view all them
to use
LOAD() to load the content for each panel)
--
Bruno Rocha
http://about.me/rochacbruno/bio
WOW, Exactly what I need, downloading the source!
I never knew about it. Thank you
Bruno Rocha
http://about.me/rochacbruno/bio
continue working until when we're
ready to migrate all the existing content to the new site.
For now we are working to establish the foundations of this new
application and any hint, suggestion, idea will be thoroughly evaluated.
Thanks and sorry if it goes off for some time.
---
Bruno Rocha
http
Eventually, until it is offline, you can access with this temporary domain
http://slices.blouweb.com/main/default/index
http://slices.blouweb.com/main/default/indexThanks
Bruno Rocha
http://about.me/rochacbruno/bio
Just for curiosity, and to highlight the benefit of being backwards
compatible.
Nathan was running a different version of web2py (I think an old stable
one), I simply grabbed the .w2p package and deployed to the latest version
of web2py, everything running well out of the box :)
Bruno Rocha
http
2011/1/19 pbreit pbreitenb...@gmail.com
For starters, I wouldn't get so hung up on DRY. Are the pages you are
creating very nearly identical but with different data sets?
Jonathan's suggestion sounds good:
http://app/default/show/t http://app/default/show/tablenamerips
It has a 2.0 version http://www.trilancer.com/jpolite2/
This is a social network built with web2py - http://tymr.com/
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/17 yarden...@gmail.com yarden...@gmail.com
Hi,
I am developing a social network with web2py.
I will be using freelancer to do the work for me.
However I lack an overall
@francisco, Tymr should be worldwide events+places social network, don't be
only in Portugal, I liked so much your idea, let me know if you want to
expand the idea, may be we can work together, I can try something in
Brazil.
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/17 Francisco Costa
Great!
I am testing, silently since you commited it in to bitbucket. Very nice
plugin.
Bruno Rocha
http://about.me/rochacbruno/bio
a new layout and main areas of the site
['snippets','plugins','applications','tips','recipes'], everything on the
same site.
Nathan Freeze gave me the app + database dump, and I am already working on
it.
any ideas?
Bruno Rocha
http://about.me/rochacbruno/bio
have a lot of 'private' control
vars this will pollute response._vars.
I saw that that BEAUTIFY() ignores that private vars, but in a matter of
memory usage? I don't know how to test this.
Bruno Rocha
http://about.me/rochacbruno/bio
May be VirtualFields
http://www.web2py.com/book/default/chapter/06#Virtual-Fields
http://www.web2py.com/book/default/chapter/06#Virtual-Fields
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/14 Lorin Rivers lriv...@mosasaur.com
Controller:
export_optimizer_records =
dbset
():
if request.args(0) == 'logout':
db(db.nao.userid==session['myuser_id']).update(db.nao.ipadress=)
return dict(form=auth())
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/13 pk peter.kirch...@youngdesigners.de
hi
one question:
def user():
if request.args(0) == 'logout
']
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/13 Bruno Rocha rochacbr...@gmail.com
Include it in your model, after the auth=Auth(...)
model
def define_session(user_id):
session['myuser_id'] = user_id
auth.settings.login_onaccept.append(lambda form:define_session(
auth.user.id
Put your libraries under app/modules an use local_import()
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/13 Lorin Rivers lriv...@mosasaur.com
That's exactly the kind of user experience I want to avoid.
On Jan 13, 2011, at 13:34 , Alexandre Andrade wrote:
try to import, and if fails
http://blog.gilsondev.com/2011/01/13/interview-creator-of-web2py/
I fund this useful script: http://eternal-todo.com/var/scripts/geoloc
Bruno Rocha
http://about.me/rochacbruno/bio
will delete something in
a db table) if
user get logged out? where can i do this?
thanks peter
--
Bruno Rocha
http://about.me/rochacbruno/bio
Ops, Sorry, Copy Paste mistake!
forget my last mail.
This the code
code in default.py
def user():
if request.args(0) == 'logout':
#do something here
db(query).delete()
return dict(form=auth())
/code
--
Bruno Rocha
http://about.me/rochacbruno/bio
FORM(INPUT(_type='submit',_value='Click here'))
2011/1/12 dederocks dediro...@gmail.com
If you have
FORM(INPUT(_type='submit'))
just to display a button, is it possible to change the button label
value?
://www.google.com/accounts/TOS - Otros
términoshttp://www.google.com/google-d-s/terms.html
--
Bruno Rocha
http://about.me/rochacbruno/bio
(http://gettingreal.37signals.com)
--
Bruno Rocha
http://about.me/rochacbruno/bio
another email adress which my app reads and extracts the PDF
from it
Has anybody made anything like this? Where should I start? I guess it
should be some kind of pop/imap client polling the postbox and reading and
extrating everything from it.
Kenneth
--
Bruno Rocha
http://about.me
:
plugins.powerTable.datasource = URL('a_funtion_which_returns_xml_or_json')
I am looking throught webgrid and Jqgrid code to take some ideas and it is
on the way.
For now, you have to go with webgrid or jqgrid if you need server side
processing.
--
Bruno Rocha
http://about.me/rochacbruno/bio
) to decrease loading time.
Can the web2py server be set to serve zipped content based on the incoming
browser? Also, can we set the browser to cache certain reusable aspects like
CSS, images, etc?
-Sebastian
--
Bruno Rocha
http://about.me/rochacbruno/bio
to use GAE for hosting, but there are some
limitations to going that route. I understand that Webfaction offers
hosting, but it's just normal shared hosting, right? It would be great
if there was a fire-and-forget application hosting option for web2py
just like Heroku or Engine Yard.
--
Bruno
%A9ployer_une_application_web2pya
little outdated, needs to test if this still works.
--
Bruno Rocha
http://about.me/rochacbruno/bio
This post helps too: http://forum.alwaysdata.com/viewtopic.php?id=1081 (google
translate it)
2011/1/9 Bruno Rocha rochacbr...@gmail.com
hello Bruno,
do have an easy recipy to setup a web2py site on alwaysdata ?
(deploying is one of the scaring tasks for beginners)
thanks,
Stef
Its
and pay $1.3 a day. Or I can pay only for the
'uptime' of the machine.
--
Bruno Rocha
http://about.me/rochacbruno/bio
to develop a financial system for
one of the São Paulo stock-exchange companies.
I think web2py is very good for 'Corporate' and 'Enterprise', but perhaps we
need to be less pretentious and change the slogan for something like:
web2py - the getting things done web framework
--
Bruno Rocha
http
/lucasdavila
--
Bruno Rocha
http://about.me/rochacbruno/bio
, they
asnswered that they are going to support web2py.
http://stable.io/
http://stable.io/http://www.ep.io/
http://www.ep.io/I am in contact with the owners of nodegrid to include
web2py deployment, would be great to push my mercurial repository directly
into a running app.
--
Bruno Rocha
http
/#!/jacobian/status/23138026796355584--
Bruno Rocha
http://about.me/rochacbruno/bio
#
https://docs.google.com/document/d/1hJI0Jk4vQMIoyrfqFpWhYODHXBtxpMHHeR2hjQ9NyXY/edit?ndplr=1pli=1#
--
Bruno Rocha
http://about.me/rochacbruno/bio
that. :)
Best regards
António
2011/1/5 Vidul Petrov vidul.r...@gmail.com
Brilliant plugin! Thank you.
On Jan 5, 6:20 am, Bruno Rocha rochacbr...@gmail.com wrote:
Video about powerTable on Vimeo (no audio)http://vimeo.com/18447603
--
Bruno Rochahttp://about.me/rochacbruno/bio
datatables released version 2 of table Tools,
I am going to add it to the powerTable plugin, take a look:
http://datatables.net/release-datatables/extras/TableTools/
http://datatables.net/release-datatables/extras/TableTools/
--
Bruno Rocha
http://about.me/rochacbruno/bio
datatables released version 2 of table Tools,
I am going to add it to the powerTable plugin, take a look:
http://datatables.net/release-datatables/extras/TableTools/
I did not mention, but this is about the ability to export data to Excel,
PDF, CSV, Copy and Print
A new web2py Job
http://www.startuply.com/Jobs/Web_Py_Web_Developer_1856_1.aspx
/tutorials-announced-pycon-2011/
http://us.pycon.org/2011/blog/2011/01/05/tutorials-announced-pycon-2011/
--
Bruno Rocha
http://about.me/rochacbruno/bio
In the future there will be only one browser engine: webkit
--
Bruno Rocha
http://about.me/rochacbruno/bio
-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho
--
Bruno Rocha
http://about.me/rochacbruno/bio
Thanks! this will ne very usefull for me too.
2011/1/4 mdipierro mdipie...@cs.depaul.edu
In trunk.
- Deploy the latest admin
- edit file applications/admin/models/0.py and set
MULTI_USER_MODE = True
--
Bruno Rocha
http://about.me/rochacbruno/bio
: 'lazyT' object is not callable
What am I forgetting to do?
_
*Gilson Filho*
*Web Developer
Blog:* gilson-filho.blogspot.com
*Twitter:* twitter.com/gilsonfilho
--
Bruno Rocha
http://about.me/rochacbruno/bio
Video about powerTable on Vimeo (no audio)
http://vimeo.com/18447603
--
Bruno Rocha
http://about.me/rochacbruno/bio
'),
Field('value', 'integer'))
...My problem is that I don't know how to automatically add the number
to this form:
form = SQLFORM(db.input, fields=['value'])
Thanks in advance for help.
--
Bruno Rocha
http://about.me/rochacbruno/bio
to automatically add the number
to this form:
form = SQLFORM(db.input, fields=['value'])
Thanks in advance for help.
--
Bruno Rocha
http://about.me/rochacbruno/bio
--
Bruno Rocha
http://about.me/rochacbruno/bio
=None))
File /home/vinicius/www/web2py/gluon/html.py, line 219, in URL
for (key, vals) in sorted(vars.items()):
AttributeError: 'NoneType' object has no attribute 'items'
ERROR SNAPSHOT
type 'exceptions.AttributeError'('NoneType' object has no attribute
'items')
--
Bruno Rocha
http
2011/1/3 Jason Brower encomp...@gmail.com
What is the web2py comet thing for? Can you explain?
Best Regards,
Jason
I just made a video of comet messaging
http://vimeo.com/18399381
--
Bruno Rocha
http://about.me/rochacbruno/bio
/
--
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/3 Luther Goh Lu Feng elf...@yahoo.com
The video says that the demo works only in Chrome. Any idea why
websockets do not work in Firefox and Safari.
That works in Safari too
A workaround for those browsers that don't yet have native WebSocket support
is with this implementation that
Mientki
--
Bruno Rocha
http://about.me/rochacbruno/bio
implemented and it will make lives
a little easier for people who target different platforms.
Thanks.
--
Bruno Rocha
http://about.me/rochacbruno/bio
://code.google.com/p/web2py/issues/list
--
Bruno Rocha
http://about.me/rochacbruno/bio
Nice app, is that a modified version of Instant Press?
2011/1/3 mdipierro mdipie...@cs.depaul.edu
http://hackerwithin.org/thw/
--
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/1 mdipierro mdipie...@cs.depaul.edu
Congratulations to the winners!
Thanks! and I thank everyone who voted and helped test the plugin.
--
Bruno Rocha
http://about.me/rochacbruno/bio
Hello,
In-line editing is listed as a feature of powertable. Would it be
possible for you to include a working example of this in your demo?
Yes, I am working to finish some features and the most important (server
side processing)
In my plan is a tutorial, documentations and a video.
I
update the online demo and release some
documentation.
https://bitbucket.org/rochacbruno/powertable/downloads
--
Bruno Rocha
http://about.me/rochacbruno/bio
2011/1/2 mdipierro mdipie...@cs.depaul.edu
its is a known problem that the automatic upgrade button does not work
on windows
Is there a way to detect that is running on Windows to disable the upgrade
buttom?
--
Bruno Rocha
http://about.me/rochacbruno/bio
database, and want to access it with web2py.
One table is called another_name in the database (mysql).
But I want to use it in web2py as:
db.define_table('person', Field('name'))
I read docs, but could not figure this out
Thanks for any help...
Marcello
--
Bruno Rocha
http
do to have tornado.websocket?
--
Bruno Rocha
http://about.me/rochacbruno/bio
options.pyc template.pyc wsgi.pyc
autoreload.py escape.py httpserver.py ioloop.py locale.py
s3server.py web.py
autoreload.pyc escape.pychttpserver.pyc ioloop.pyclocale.pyc
s3server.pyc web.pyc
2010/12/31 Bruno Rocha rochacbr...@gmail.com
I tried
rochacbr
1.1 appears to be current: http://www.tornadoweb.org/
I used apt-get in ubuntu 10.10 and it instals tornado 0.2
I take websocket from here
https://github.com/finiteloop/tornado/raw/master/tornado/websocket.py
https://github.com/finiteloop/tornado/raw/master/tornado/websocket.pyand
now it is
Updated to tornado 1.1 and it is working very well, thank you so much!
I will use this on my new system of inventory control, receiving
new requests for products and a feeding a table with powerTable.
Very cool!
--
Bruno Rocha
http://about.me/rochacbruno/bio
2010/12/31 mdipierro mdipie...@cs.depaul.edu
can you make a video of powertable?
OK, nice idea,
I'll finish some functions in plugin then test the comet queue as datasource
and I'll create a screencast soon.
guys. I wish you a productive and
satisfying year!
--
Branko Vukelic
stu...@brankovukelic.comhttp://www.brankovukelic.com/
--
Bruno Rocha
http://about.me/rochacbruno/bio
/
modules/
gdata/
atom/
test.py
test.py imports gdata, which in turn imports atom. Running test.py directly
works fine.
But within a web2py app I get *ImportError: No module named atom*
*
*
How can I import this module?
--
Bruno Rocha
http://about.me/rochacbruno/bio
(datasource=db.products,
attrs={'bjQueryUI':True,'showkeycolumn':False},
features={'sScrollY:'300px'},
extra={autoresize=True})
}}
--
Bruno Rocha
http://about.me/rochacbruno/bio
this with SQLTABLE or TABLE and TR?
Kenneth
--
Bruno Rocha
http://about.me/rochacbruno/bio
return dict(table=tbl.create())
/controller
Code: http://rochacbruno.pastebin.com/xE5kXKHF
Screenshot here: http://twitpic.com/3la1fl
--
Bruno Rocha
http://about.me/rochacbruno/bio
how this can be done?
Thanks in advance.
Maurice Ling
--
Bruno Rocha
http://about.me/rochacbruno/bio
any code i
can return a update/insert FORM, a TABLE, a UL list.
Now I am trying to include tabs within details to return multiple
objects.
--
Bruno Rocha
http://about.me/rochacbruno/bio
--
Bruno Rocha
http://about.me/rochacbruno/bio
1601 - 1700 of 2316 matches
Mail list logo