Totally insane! I'm astonished!
This could be really useful for a project I'm working on, it's really
what I'm looking for!
Thank you!
2011/12/10 Massimo Di Pierro massimo.dipie...@gmail.com:
I wrote this code which could be used to create a CMS.
The app basically asks for the URL of any
How do I add a new button in a user's profile page that redirects to
another view?
I have solved it. The current version didn't offer support for auth.
But now it should have support for every option except connecting without a
database.
I have only tested auth, but it uses
http://www.mongodb.org/display/DOCS/Connections mongodb uri as connection
string. So all options should
Thanks for this Bruno. Is the source code for
http://labs.blouweb.com/movuca2/article/show/1/how-to-use-modules-in-web2py
publicly available so we can see it in context.
Peter
On Dec 10, 4:55 am, Bruno Rocha rochacbr...@gmail.com wrote:
On Sat, Dec 10, 2011 at 12:32 AM, Massimo Di Pierro
I have a function which queries a number of tables to render business
cards. Depending on an organizations subscription there are five
possible dictionaries to return. Since I always try to have one return
statement in my functions I now have:
def details():
I'd like the full pdf version, but apparently it is not available in
lulu.com yet
Regards
On 9 dic, 16:04, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
Here is a free PDF version including the first 130 pages:
web2py.com/examples/static/web2py_manual_4th.cut.pdf
Massimo
On Dec 9,
Are you using the default view for the /default/user action? If so, in that
view, you could do something like:
{{if request.args(0) == 'profile':}}
{{=BUTTON('Click Me', _onclick='window.location=%s;' % URL('other',
'page'))}}
{{pass}}
As an alternative to the button tag, you could also use a
Do you guys know of any geoprocessing tools that work with web2py? I'm
using i3geo, but it's php and I'd like, if possible that the tool
was designed to work with web2py or even django... I've heard there was
something made for django, but couldn't find it... saw something about one
called
The system requires mongodb installed. If not, web2py throws this
I mean pymongo installed.
Will set it up during the next couple of days. Sorry.
On Dec 10, 6:37 am, Alan Etkin spame...@gmail.com wrote:
I'd like the full pdf version, but apparently it is not available in
lulu.com yet
Regards
On 9 dic, 16:04, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
Here is a
Would be really nice if you could hack the jeditable in inject.js so
that when clicking on an image one could edit the src and when
clicking on a link one could edit the href as well as the content.
Although this could also be handled via some server-side re.sub.
On Dec 10, 2:12 am, Angelo
I thought I posted this trying again...
http://web2py.com/examples/static/web2py_manual_4th.cut.pdf
The first 130 pages of the book in pdf
On Dec 9, 11:30 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote:
The book 4th edition (in print) is available here:
Hi,
i've defined the following relations:
db.define_table('users_dictionaries',
Field('user_id', db.auth_user, requires =
IS_IN_DB(db,'auth_user.id', db.auth_user._format)),
Field('dictionary_id', db.dictionary,
Does it work if you make the following change in line 1808 of sqlhtml.py:
A(callable(rep) and rep(id) or id, _href=...
Anthony
On Saturday, December 10, 2011 11:29:41 AM UTC-5, Vincenzo Ampolo wrote:
Hi,
i've defined the following relations:
db.define_table('users_dictionaries',
notice that every edited page gets its own new url... with minor
changes one could make it edit its own pages and display a list of
pages edited by the same user:
Example of workflow:
1. point it to a page you like
2. clone it
3. edit it
4. clone the clone
5. edit it and add links to the other
Massimo, I'll hack on this, but first I prefer to give a finishing
touch to mobile admin, there are still som rough edges!
2011/12/10 Massimo Di Pierro massimo.dipie...@gmail.com:
I thought I posted this trying again...
http://web2py.com/examples/static/web2py_manual_4th.cut.pdf
The
On 12/10/2011 05:44 PM, Anthony wrote:
Does it work if you make the following change in line 1808 of sqlhtml.py:
A(callable(rep) and rep(id) or id, _href=...
Anthony
Thanks! it fixed the problem but i've found another error which could be
related: the id in the table is not linked to the
LightDot escribió:
I'm browsing trough the new web page a bit and I can report a glitch:
div class sixteen columns announce gets thrown to the right, so I
get a horizontal scroll bar even on a 1920px wide screen. Tested on
linux, Firefox 8 and Opera 11.60 (screenshot attached).
Chromium 15
Assuming you have the record id of the current user from the 'user_table'
table, maybe something like:
Field('x', default=db.user_table[id of current user].default_x)
You cannot just refer to the field (which doesn't identify the specific
user) -- you have to select the specific value for
Nik Go escribió:
How do I add a new button in a user's profile page that redirects to
another view?
(assuming that you're using the default 'user' function in 'default'
controller)
...you can edit the view /default/user.html
We could not call it 1.100 because it would break the old automatic
upgrade mechanism (1 comes before 9, yikes).
Why not make the upgrade from old version a two-step process? Or is
this too high a price to pay for being absolutely clear that the API
not been broken?
I know bumping major
Massimo Di Pierro massimo.dipie...@gmail.com wrote:
The new web site layout needs work but we put it out there hoping for
more feedback.
The announcement 2011 BOSSIE AWARD FOR OPEN SOURCE DEVELOPMENT
SOFTWARE is cut off and too far on the right in Firefox 9.0 Beta
on Mac OS X 10.6.
Haven't
I set the:
auth.settings.registration_requires_verification = False
I tested several hours but now it pops up:
'Registration needs verification'
How to remove it?
Thanks,
--Constantine
Hi Vineet,
Thank you! Absolutely - you understood my question properly.
It seems that solution is very simple, I am so overwhelmed
with this porting that sometimes I oversee the simplest
solutions ;)
So if I put it under site-packages like this:
site-packages/models
site-packages/definitions
I
One of the reasons to use web2py mentioned in the book is the following:
web2py has a small footprint and is very fast. It uses the Rocket WSGI web
server developed By Timothy Farrell. It is 30% faster than Apache with
mod_proxy.
I don't really understand the second sentence. Should it say
Can you emailed me the fixed layout.html?
On Dec 10, 6:02 pm, Stefan Scholl ste...@no-spoon.de wrote:
Massimo Di Pierro massimo.dipie...@gmail.com wrote:
The new web site layout needs work but we put it out there hoping for
more feedback.
The announcement 2011 BOSSIE AWARD FOR OPEN SOURCE
Good catch. That sentence is there since the second edition. Yes, I
meant mod_wsgi but this needs to be tested again since there are newer
versions of mod_wsgi.
On Dec 10, 6:59 pm, rif feric...@gmail.com wrote:
One of the reasons to use web2py mentioned in the book is the following:
web2py has
You should be able to do the same from the application's /modules folder.
Use site-packages if it's a module that needs to be accessed by multiple
applications (or possibly by other Python programs).
Anthony
On Saturday, December 10, 2011 7:09:32 PM UTC-5, Constantine Vasil wrote:
Hi Vineet,
Hallo guys, I'm a newbie in Web2py, but I like it a lot. I didn't
want to post for a such stupid question but I'm stuck and don't know
how to resolve it.
I moved an application from rails to Web2py. basically a dynamic photo
gallery, and everything is working fine on my desktop. But on mobile
I just put my classes in site-packages/models.py
and the 'from models import *' made the classes available globally.
So if I put them in /modules/models.py it would be the same?
How to change the message 'value already in database or empty' in Register?
Thanks,
Regards,
--Constantine
What's your mobile browser? How big are the images? It is possible
there is a problem with chunked encoding with rocket. Other users have
mentioned this and we are working on it. Meanwhile, can you try using
apache or another web server? (look into web2py/anyserver.py)
On Dec 10, 8:12 pm, Mchurch
I am getting user_id = str(auth.user.id), form a link to be clicked later.
When clicked on to the browser bar looks like like /user?user_id=9
That is insecure. How to encrypt it to look like /user?user_id=10iksmwu0
(something like that)
and decrypt later when extracting from the request_vars?
33 matches
Mail list logo