Hi there.
I'm working with Bernardo.
Finally we wrote the form with SQLFORM and worked.
The 'compute' argument at the model wasn't correctly interpreted by
crud.create(db.model),
and crud didn't show the computed field at the form.
We wrote it with SQLFORM and there's not problem now.
On Sat
I don't recommend to use ports 9090, you have to use port 80 in
production. If you are testing it's ok
On 27 sep, 01:39, Rahul wrote:
> By the way, Just curious if anyone was able to access the site and the
> application contained using this
> url.http://www.flockbird.com:9090/web2py/Flockbird
>
Hey Martin,
I totally agree with you. I am working out towards achieving
that thing. I myself am not comfortable to use different ports. BTW,
did you try out my site and app? What ya suggest?
Thanks, Rahul
On Sep 27, 3:22 pm, "Martin.Mulone" wrote:
> I don't recommend to use ports 9090, y
massimo, i need to be able to redirect the user after registration,
not login. But only when the user has clicked on an invitation link -
i.e. not always. It seems to me the auth.settings.register_next is
not working (or i do not understand how it works).
I see in the default user controller t
Hi!
I'd like to add new fields to SQLFORM.factory, but I don't know in
advance how many fields are there and their names.
So I'd like to create something as tuple with field names and then use
for command to cycle through the tuple and create Fields to add to
SQLFORM.factory.
Can something like t
I do not understand the problem.
On Sep 27, 1:58 am, annet wrote:
> I have a table in which users can insert css declarations to customize
> a page. In a controller I retrieve these declarations, and in a view I
> would like them to be inserted in the head section.
>
> This is what the rows objec
fields=[]
fields.append(Field(...))
form=SQLFORM.factory(*fields)
On Sep 27, 3:37 am, b0j3 wrote:
> Hi!
>
> I'd like to add new fields to SQLFORM.factory, but I don't know in
> advance how many fields are there and their names.
> So I'd like to create something as tuple with field names and then
I think it is better if you use .join() to concatenate the selectors, or
create a function in a model file to return the properties.
file models/css.py
def return_css(company_id):
rows = db(==company_id).select(..)
oldselector = None
css = []
for row in rows:
if ro
On 27 sep, 00:29, mdipierro wrote:
> ajax calls do not execute js in views but you can return any js code
> from a web2py controller as in
>
> response.js="activate_slider();"
>
> and it should do it.
>
This does not work. What it does is call activate_slider () before you
load the target div.
Jquery has .ready() method
http://api.jquery.com/ready/#fn
I think you can do
jQuery(document).ready(function($) {
// Code using $ as usual goes here.
//this code is executed after the whole document is loaded and ready
});
2010/9/27 Jose
>
>
> On 27 sep, 00:29, mdipierro wrote:
> >
You can use just
$('#mydiv').ready(function() {
//do things here
});
2010/9/27 Jose
>
>
> On 27 sep, 00:29, mdipierro wrote:
> > ajax calls do not execute js in views but you can return any js code
> > from a web2py controller as in
> >
> > response.js="activate_slider();"
> >
> > and it
Hi
so, I have this table:
db.define_table('p4users',
SQLField('p4_user'),format='%(p4_user)s')
which gives me a nice dropdown :)
then I have this one, where I want to update the Status field.
db.define_table('p4users_all',
SQLField('Name', db.auth_user, default=auth
Would you update status manualy or automatically?
Richard
On Mon, Sep 27, 2010 at 11:12 AM, mart wrote:
> Hi
>
> so, I have this table:
>
> db.define_table('p4users',
>SQLField('p4_user'),format='%(p4_user)s')
>
> which gives me a nice dropdown :)
>
>
> then I have this one, whe
On 27 sep, 12:10, Bruno Rocha wrote:
> You can use just
>
> $('#mydiv').ready(function() {
> //do things here
>
> });
>
Excellent work!
Thank you very much
Jose
Hello,
I am under web2py 1.83.2 and I have those error :
Hyphen "-" :
raise error(explanation)
InvalidOperation: Invalid literal for Decimal: '5-'
Comma "," :
raise error(explanation)
InvalidOperation: Invalid literal for Decimal: '5,00'
Degree sign "°" :
raise error(explanation)
InvalidOp
This
row = db.p4users_all(request.args(0))
form = SQLFORM(db.p4users_all, row, deletable=True)
in your code should not create a new db.p4users_all unless row is
None. Check the value of row. If it is none you are passing something
wrong for request.args(0). Hard to tell without the rest of
manually, users are invited to tell us what they know about other
users' status (many have come and gone over time where no real effort
has been made to update the info over the years :)
so the idea is, I have a jqgrid listing all users (+ those xtra fields
in table p4users_all). then there is a l
Alright :) it may be "not good looking" right now, but I'll gladly
post my novice web2py code :) Which parts would be useful?
thanks,
Mart :)
On Sep 27, 12:10 pm, mdipierro wrote:
> This
>
> row = db.p4users_all(request.args(0))
> form = SQLFORM(db.p4users_all, row, deletable=True)
>
> i
please do the check I suggested and print log or {{=row}} the value of
row. Is it None?
On Sep 27, 11:23 am, mart wrote:
> Alright :) it may be "not good looking" right now, but I'll gladly
> post my novice web2py code :) Which parts would be useful?
>
> thanks,
> Mart :)
>
> On Sep 27, 12:10 pm,
here I go (hope there is enough room here...), and yes, I know it
looks sad ;):
Controller:
## -*- coding: utf-8 -*-
#
## This is a samples controller
## - index is the default action of any application
## - user is requir
You are very correct, my row is None (and I should have checked this
before sending all those lines of sad looking code ;) )
row:
None
Thanks,
Mart :)
On Sep 27, 12:53 pm, mart wrote:
> here I go (hope there is enough room here...), and yes, I know it
> looks sad ;):
>
> Controller:
>
> ## -*
so, I'm looking... still can't see why I get a new row as opposed to
an updated one... Obviously, I am doing something wrong, but can't see
it. I'm thinking that the corresponding user ID has to be pre-
populated? Then again, maybe not... do I need to get the target
table's row ID before I submit a
so, if I do print the form, I do get a full detail (which should be a
good thing). but, if I look at the indivifual items, I get nothing
record:
None
form.vars:
form.vars.User_id:
None
request.vars.id:
None
Now, I am stumped :(
On Sep 27, 1:58 pm, mart wrote:
> so, I'm looking... still
thanks Mart,
I'll take a look.
cheers,
Stef
On 27-09-2010 02:01, mart wrote:
> Just downloaded the latest book app, still pointing to following page
> (or maybe I misunderstood the message? I saw that the app had been
> updated).
>
> @ stef - the book app is part of the "free applications" secti
Hello,
yes, ID's on GAE are troublesome. they are generally increasing
across your entire dataset, but there are exceptions to that rule (so
you can't expect strictly-increasing ID's). I also wonder what
happens if you assign duplicate key_names using the method that
google describes (since any
Hi has anyone here created any facebook apps using web2py.. would love to
have a look!
( and well if anyone has ever documented anything.. that would be a treat!)
Any time! :) that's one thing i do very, very well!! I can copy and
paste a link with my eyes closed! ;)
On Sep 27, 2:33 pm, Stef Mientki wrote:
> thanks Mart,
>
> I'll take a look.
>
> cheers,
> Stef
> On 27-09-2010 02:01, mart wrote:
>
> > Just downloaded the latest book app, still pointing t
fixed.
you can test in css_test at the bottom i put multiple. You have to
reload the page to see the changes because of caching.
http://web2pytesting.appspot.com/welcome/default/test_css
On Sep 25, 1:41 am, Luis Díaz wrote:
> Greetings,
> there is an option select multiple problems.
>
> should
This new flash definitely looks cool Martin!
On Tue, Sep 28, 2010 at 1:06 AM, Martin.Mulone wrote:
> fixed.
>
> you can test in css_test at the bottom i put multiple. You have to
> reload the page to see the changes because of caching.
>
> http://web2pytesting.appspot.com/welcome/default/test_css
I really like the look. You are still not using ez.css andy reason for
not to?
what is DC.?
Massimo
On Sep 27, 2:36 pm, "Martin.Mulone" wrote:
> fixed.
>
> you can test in css_test at the bottom i put multiple. You have to
> reload the page to see the changes becaus
You may to align TD to top.
I love the buttons.
On Sep 27, 2:36 pm, "Martin.Mulone" wrote:
> fixed.
>
> you can test in css_test at the bottom i put multiple. You have to
> reload the page to see the changes because of caching.
>
> http://web2pytesting.appspot.com/welcome/default/test_css
>
> On
Some seo things, but i am not sure about this. Probably i delete them.
http://www.seoconsultants.com/meta-tags/dublin/
On Sep 27, 4:40 pm, mdipierro wrote:
> I really like the look. You are still not using ez.css andy reason for
> not to?
> what is DC.?
>
>
>
>
>
> M
Yes. That's it. Thanks
I've missed the asterisk.
B.
On Sep 27, 2:42 pm, mdipierro wrote:
> fields=[]
> fields.append(Field(...))
> form=SQLFORM.factory(*fields)
>
> On Sep 27, 3:37 am, b0j3 wrote:
>
> > Hi!
>
> > I'd like to add new fields to SQLFORM.factory, but I don't know in
> > advance how
Because we don't need it. I dont delete ez-css from base.css so you
can use it if you want.
This is the old code utilizing ez-css:
{{#-- unused
space}}
{{include}}
{{#-- unused
space}}
I know I've had problems with form submission when a form submit cause
modification in its own fields (for SQLFORM.factory anyways).
When doing something like that, the following approach worked for me:
On Sep 27, 4:37 am, b0j3 wrote:
> Hi!
>
> I'd like to add new fields to SQLFORM.factory,
Most applications connect to the database with one set of credentials,
regardless of the user accessing the pages. The current pooling model
works very well in this situation.
My application must implement per-user connections to the database,
where each user will have their own credentials for th
Hi!
You can start here:
http://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloFacebook
you can look and even copy! ;-)
mic
2010/9/27 bally boy :
> Hi has anyone here created any facebook apps using web2py.. would love to
> have a look!
> ( and well if anyo
> The organizers decided to pay a private company to develop a new conference
> management system using Django.
http://www.brainyquote.com/quotes/quotes/l/linustorva135583.html
I got this to work, but think there should be an easier way.
I added the following snippet to the default user controller:
# if user clicked a link and registers, take them to the meeting
after the registration component logs them in
if request.args[0] == 'register' and len(session.next)
Impressive indeed! :)
I may be stating the obvious here, and apologies if I am, but isn't
Massimo perhaps looking for something just like this to bring to the
conference? Seems like a totally appropriate subject matter to me? I
can think of a few apps that would make a striking affect with
html5..
On Sep 27, 4:34 pm, Michele Comitini
wrote:
> > The organizers decided to pay a private company to develop a new conference
> > management system using Django.
They will make it freely available.
> http://www.brainyquote.com/quotes/quotes/l/linustorva135583.html
Yet he is right. :-)
I would not know how to do this. If you have a lot of users (say 1000)
how do you know when to close a connection? Do you keep all of them
open?
On Sep 27, 3:25 pm, Josh J wrote:
> Most applications connect to the database with one set of credentials,
> regardless of the user accessing the pages.
perhaps
auth.settings.register_next = session.next or
auth.settings.register_next
On Sep 27, 6:05 pm, "david.waldrop" wrote:
> I got this to work, but think there should be an easier way.
>
> I added the following snippet to the default user controller:
>
> # if user clicked a link and regis
Since we now have blocks how about using {{block left_sidebar}}...
{{block right)sidebar}} {{block header}} {{block footer}} {{block
under_page}} (position: absolute; top:0) {{block over_page}}
(position: absolute; bottom:0) so pages can turn on and off what they
need?
Ideally the more people can
... I'd like to foster the creation of a database of base.css like
zengarden.css
On Sep 27, 7:56 pm, mdipierro wrote:
> Since we now have blocks how about using {{block left_sidebar}}...
> {{block right)sidebar}} {{block header}} {{block footer}} {{block
> under_page}} (position: absolute; top:0)
Hi, I wrote a simple report the generates a PDF version using PyFPDF
that comes now with web2py.
I´ts here: http://web2pyslices.com/main/slices/take_slice/99
My goal is share and start a discussion to get this type of code
better.
So, please, test it and comment!
If using PostgreSQL, take a look at pgpool or pgbouncer, they will do
some of the things you're expecting, without modifing a single line of
web2py (keep pool_size=1).
Regards
Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com
On Mon, Sep 27, 2010 at 9:48 PM, mdipie
- should be allowed.
, as a separator is not allows. I will change trunk in 5 minutes and
will be able to do IS_DECIMAL_IN_RANGE(dot=','). try it and let us
know.
other symbols are not allowed.
On Sep 27, 11:09 am, Richard Vézina
wrote:
> Hello,
>
> I am under web2py 1.83.2 and I have those erro
if you pass row=None as row to be edited, the update form becomes a
create form.
On Sep 27, 11:59 am, mart wrote:
> You are very correct, my row is None (and I should have checked this
> before sending all those lines of sad looking code ;) )
>
> row:
> None
>
> Thanks,
> Mart :)
>
> On Sep 27, 1
create a default controller called 'default'
in default create a function called index
in index view include two file called nav.html ( include 'default/
nav.html') and navi.html( or a arbitrary filename) ( include 'default/
navi.html') with some arbitrary content or keep it empty
then checkout
I read you but I do not understand how this is possible.
Is your name really Steven Hawking?
On Sep 27, 8:21 pm, Steven Hawking wrote:
> create a default controller called 'default'
> in default create a function called index
> in index view include two file called nav.html ( include 'default/
>
Thanks, I appreciate the help.
On Sep 26, 9:15 pm, rochacbruno wrote:
> You are using # but you have to use @ for the decorador
>
> class PluginWikiWidgets(PluginWikiWidgets):
> @staticmethod
> def blabla(a,b):
> return blabla
>
> Enviado via iPhone
>
> Em 26/09/2010, às 22:59
Great!
I agree with your thoughts:
A. Setting width attributes in SQLTABLE is not a nice hack, having a
easier way would enable one-liners reports!
Anyway, html renderer (using python HTMLParser) is complex and
limited, maybe using web2py HTML helpers directly(not serialized)
would be a better, s
Looks real cool Mic.. thanks!
On Tue, Sep 28, 2010 at 2:16 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:
> Hi!
>
> You can start here:
>
>
> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloFacebook
>
> you can look and even copy! ;-)
>
> mic
Yes, ... i do see that now ;) Why are they None though? I mean how
could it be None if there are in fact some rows ready and willing to
be updated? I am sorry, I am not getting this... Is my Model deficient
maybe? anyways, If you happen to think of why this is happening, that
would be very much app
Idiots in my eyes... If it's open source when it's done, good.
Otherwise, I would mark them one more point on the idiot side. Before I
get any more rash, I suppose they have a reason why.
On 09/28/2010 12:34 AM, Michele Comitini wrote:
The organizers decided to pay a private company to develo
On 09/28/2010 03:46 AM, mdipierro wrote:
On Sep 27, 4:34 pm, Michele Comitini
wrote:
The organizers decided to pay a private company to develop a new conference
management system using Django.
They will make it freely available.
http://www.brainyquote.com/quotes/quotes/l/lin
I followed the instruction here:
http://groups.google.com/group/web2py/browse_thread/thread/7f0d6ecddf40c6f/2c19fbeffc30bb27?lnk=gst&q=VPS#2c19fbeffc30bb27
http://www.vps.net/forum/public-forums/tutorials-and-how-tos/2115-web2py-on-vps-net
which are:
Step 1 - Shutdown apache
Step 2 - Become www-da
It is here:
http://github.com/eldarion/pycon
On Sep 27, 9:56 pm, Jason Brower wrote:
> On 09/28/2010 03:46 AM, mdipierro wrote:> On Sep 27, 4:34 pm, Michele
> Comitini
> > wrote:
>
> >>> The organizers decided to pay a private company to develop a new
> >>> conference management system using
Just delete everything under /home/www-data/web2py but paramaters_*.py
and unzip web2py again over is as www-data user.
On Sep 27, 10:12 pm, Yannick wrote:
> I followed the instruction
> here:http://groups.google.com/group/web2py/browse_thread/thread/7f0d6ecddf...http://www.vps.net/forum/public-
Hi all,
I'm new to web2py and just dipping my toe in with a simple posting form (2
fields, a summary and description, displays form and the previously
submitted values below -- date posted, summary, description.) I notice that
after posting, my summary and description are cleared out in the form,
Ok thanks I'll try this... but before I do so what did you mean by
"paramaters_*.py" you want me to back-up that file or completely
remove everything under /home/www-data/web2py and unzip web2py as www-
data user ???
Please let me know I'm a little bit confuse.
Thanks
On Sep 27, 11:35 pm, mdipierr
those files contain your admin password. I would backup and put them
back after reinstalling web2py.
On Sep 27, 11:40 pm, Yannick wrote:
> Ok thanks I'll try this... but before I do so what did you mean by
> "paramaters_*.py" you want me to back-up that file or completely
> remove everything unde
When you say "refresh the page" you mean you "click the reload
button". That causes a form re-submission.
To prevent it, redirect(URL()) after form.accepts(...)
On Sep 27, 11:31 pm, Audra Rudys wrote:
> Hi all,
> I'm new to web2py and just dipping my toe in with a simple posting form (2
> fields
Thanks for your reply. The content of the
65 matches
Mail list logo