I think Fran means that answering South America to
"In what continent would you like to live?"
would only show further questions concerning this continent.
On 13 déc, 02:19, ed wrote:
> Very neat and a good start. But some websites require authenticated
> respondents,
> database should be option
Here is the problem should be
layer.update_record(.)
not
layer.update()
The former updates the record. The latter only update the dictionary
that contains the record.
Massimo
On Dec 12, 4:33 pm, Fran wrote:
> On Dec 12, 10:18 pm, mdipierro wrote:
>
> > I only see update, no ins
Hi,
I wanted to create a horizontal "search" prompt using the code below.
I tried using TD tag after TR on all the fields but unfortunately the
display was still vertical. Can somebody help me, please? Thanks
form = FORM(TABLE(TR("", INPUT(_name="submit", _type="submit",
_value="Search")),\
Very neat and a good start. But some websites require authenticated
respondents,
database should be optional.
On Dec 13, 6:30 am, mdipierro wrote:
> GAE produces strange errors once in a while. I have seen it too. They
> are not web2py errors they do not show up in the logs.
>
> Massimo
>
> On
What i'm trying to do is below:
db.foto.represent=lambda foto: \
TABLE(
if is_admin:
# if admin show edit link
A(foto.title,_id='fid'+str(foto.id),_href=t2.action('wiki/edit',foto.id))
else:
# if not admin show only text
SPAN(foto.title)
A(IMG(_width=200,_src=U
On Dec 12, 10:18 pm, mdipierro wrote:
> I only see update, no insert.
Right, since this is an Update method, not an Insert method
(I did the initial Insert via appadmin to get sample data into the
system)
> Moreover I do know what "layer" is. Is it a table?
It was defined earlier in the
GAE produces strange errors once in a while. I have seen it too. They
are not web2py errors they do not show up in the logs.
Massimo
On Dec 12, 4:28 pm, pedro wrote:
> Worked like a charm to me. I like it.
> I got an error somewhere when creating a survey, but unfortunately I
> am not being abl
Not on T3.
Wes, what is the question. You are asking if you can do what you just
did? or is it not working? If so how?
Massimo
On Dec 12, 4:03 pm, Timothy Farrell wrote:
> If you look at the admin interface code, it reads the parameters_.py
> file directly.
> Perhaps we could implement an IS_
Worked like a charm to me. I like it.
I got an error somewhere when creating a survey, but unfortunately I
am not being able to replicate it.
On 12 Dec, 23:19, mdipierro wrote:
> how should branching be handled?
>
> On Dec 12, 3:36 pm, Fran wrote:
>
> > On Dec 12, 7:59 pm, mdipierro wrote:
>
No. validators are associated to one field in the sense that only one
field will report the error.
db.define_table('t',SQLField('f1'),SQLField('f'2'))
db.t.f2.requires=IS_NOT_IN_DB(db(db.t.f1==request.vars.f1),'t.f2')
OR
db.t.f1.requires=IS_NOT_IN_DB(db(db.t.f2==request.vars.f2),'t.f1')
are equ
how should branching be handled?
On Dec 12, 3:36 pm, Fran wrote:
> On Dec 12, 7:59 pm, mdipierro wrote:
>
> >http://web2py.appspot.com/survey
>
> Looks very sweet :)
>
> Really need to be able to have branching options though
> - i.e. sub-options that only apply if an answer went a certain way.
I only see update, no insert. Moreover I do know what "layer" is. Is
it a table?
On Dec 12, 3:31 pm, Fran wrote:
> On Dec 12, 9:02 pm, mdipierro wrote:
>
> > you must do the insert manually after accept.
>
> Is this not what I'm already doing here?
>
> if form.accepts(request.vars,session,keepv
If you look at the admin interface code, it reads the
parameters_.py file directly.
Perhaps we could implement an IS_ADMIN_PASSWORD(pass) validator to
check this.
-tim
Wes James wrote:
Is there a way to do this on my model in t3:
db.foto.represent=lambda foto: \
if is_admin: \
TABLE(
On Dec 12, 4:07 pm, mdipierro wrote:
> I still do not see why you cannot use IS_NOT_IN_DB(sqlset,) You
> must have access to the variables that you want to validate.
Correct me if I am wrong but IS_NOT_IN_DB only looks at the value of
one field.
>From validators.py:
rows=self.dbset(field=val
Is there a way to do this on my model in t3:
db.foto.represent=lambda foto: \
if is_admin: \
TABLE(
A(foto.title,_href=t2.action('wiki/edit',foto.id)),\
A(IMG(_width=200,_src=URL(r=request,f='download',args=[foto.image])),_class='zoom'
,_href='#zoom-me'+str(foto.id)),\
DIV(IMG(_widt
The difference is that when the validator runs, it has access to global
scope variables (request, response, SQLDB), but it does not have access
to my controller local variables (which is where the data I'm trying to
validate resides). Currently, validators only validate based on 1
value passe
ok in t3 db.py there IS is_admin :)
-wj
On Thu, Dec 11, 2008 at 5:04 PM, Wes James wrote:
> Massimo,
>
> t3 is cool.
>
> In the last hour (following your t3 video), I've made a basic foto
> gallery with CRUD (create, read, update, delete).
>
> In my lambda, how do i do:
>
> db.foto.represent=la
On Dec 12, 7:59 pm, mdipierro wrote:
> http://web2py.appspot.com/survey
Looks very sweet :)
Really need to be able to have branching options though
- i.e. sub-options that only apply if an answer went a certain way...
Having some Auth beyond the URL would obviously also be useful...
Looking f
On Dec 12, 9:02 pm, mdipierro wrote:
> you must do the insert manually after accept.
Is this not what I'm already doing here?
if form.accepts(request.vars,session,keepvalues=True):
layer.update(
name=form.vars.name,
description=form.vars.description,
type=form.vars.t
I used {{=self.search(db.foto)}} in a t3 page.
I then copied and pasted the html and changed to:
title
contains
title starts
with
title greater
than
title equal
to
I agree with Yarko, let me add that if you are using a legacy database
with a 'bigint' field, you can use SQLField(...,'integer',...) and set
the table to migrate=False. It will work fine.
Massimo
On Dec 12, 3:12 pm, "Yarko Tymciurak" wrote:
> Well - you cannot use the BUT datatype portably
Well - you cannot use the BUT datatype portably you can set it up w/
SQL;I think the point is understanding if you really need to...
For example, if you're looking at legacy / existing database, and want to
manipulate results, then yes you can - with work & SQL
But you cannot use BIG with
I still do not see why you cannot use IS_NOT_IN_DB(sqlset,) You
must have access to the variables that you want to validate.
Massimo
On Dec 12, 3:01 pm, Timothy Farrell wrote:
> The page in question is sorta like an SQLtable, it displays a full table and
> allows for updates to each record
As I mentioned before, this:
form=FORM(INPUT(_name="id",_value=layer.id),INPUT
(_name="modified_on",_value=layer.modified_on),INPUT
(_name="name",_value=layer.name),INPUT
(_name="description",_value=layer.description),SELECT
(_name="type",_value=layer.type),SELECT
(_name="subtype",_value=subtype)
refine takes the current result set, and applies the next search condition
to it...
you should be able to logically consider it as an incrementally built "AND"
On Fri, Dec 12, 2008 at 2:57 PM, Wes James wrote:
>
> what is the refine checkbox supposed to do on a search?
>
> -wj
>
> >
>
--~--~--
The page in question is sorta like an SQLtable, it displays a full
table and allows for updates to each record without branching off to a
separate page. When the user is done making changes the wraps up the
changes made and POSTs a JSON object to the web2py controller.
This is a custom built
refine the pervious search instead of creating a new search
On Dec 12, 2:57 pm, "Wes James" wrote:
> what is the refine checkbox supposed to do on a search?
>
> -wj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"w
We could have a party on second life instead. May be more fun!
On Dec 12, 2:43 pm, Timothy Farrell wrote:
> Oh man, you put up a public wiki and now you're gonna be gone for a couple of
> days?!?!?!
> PARTY ON THE WIKI!
> mdipierro wrote:I may not be able to answer emails in the next c
what is the refine checkbox supposed to do on a search?
-wj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe f
I do not understand. Where is your input from?
Massimo
On Dec 12, 2:42 pm, Timothy Farrell wrote:
> Yes, that would work if I used normal HTML forms (and I think that was what I
> was looking for previously), but in my case, what would
> berequest.vars.field1in your example is really somethin
On Dec 12, 3:02 pm, mdipierro wrote:
> You are using a manual HTML form instead of {{=form}}. For an update
> form you need to include
> 1) 2) {{=form.hidden_field()}}
I had form.hidden.fields() but not form.latest.id, now corrected
(form.record.id doesn't work for me).
I also added the T2 fiel
> Yes, this would require changing some things in gluon.validators and
> gluon.html.
In my case they were: validators, sql, sqlhtml & compileapp; but that
was back on rev.341
> I'm of the mindset that this sort of validator is very important.
They become important as the need arises.
My need had
Oh man, you put up a public wiki and now you're gonna be gone for a
couple of days?!?!?!
PARTY ON THE WIKI!
mdipierro wrote:
I may not be able to answer emails in the next couple of days.
Massimo
--
Timothy Farrell
Computer Guy
Statewide General Insurance Agency (www.swg
Yes, that would work if I used normal HTML forms (and I think that was
what I was looking for previously), but in my case, what would be request.vars.field1 in your example
is really something like simplejson.loads(request.vars.JSONdata)[2]['field1'].
And since that changes on a controller le
I may not be able to answer emails in the next couple of days.
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To un
you do not need this because you can already do it.
requires=IS_NOT_IN_DB(db
(db.table.field1==request.vars.field1),'table.field2')
Massimo
On Dec 12, 2:20 pm, Timothy Farrell wrote:
> Yes, this would require changing some things in gluon.validators and
> gluon.html. I'm of the mindset tha
Yes, this would require changing some things in gluon.validators and
gluon.html. I'm of the mindset that this sort of validator is very
important. However, I'll have to look into it later. Could you send
me your code if you still have it?
Thanks,
tim
DenesL wrote:
Oops, I misundersto
could you give this a try?
http://web2py.appspot.com/survey
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsu
try restart server and clear cache.
On Dec 12, 12:45 pm, ceej wrote:
> @Massimo, thank you
>
> @Wes James, I'm running python 2.5.2. It's doesn't have to do with
> that though as I'm working on multiple other web2py projects and I'm
> not getting the same issues. I can save settings fine now, it
exposes limits what you can modify, not what you can search. at this
time you cannot change that.
On Dec 12, 12:33 pm, "Wes James" wrote:
> if i have:
>
> db.foto.exposes=['title','image']
>
> in my models and on a page do
>
> {{=self.search(db.foto)}}
>
> should the search field dropdown have f
I do not know. I use it on GAE and it works.
Massimo
On Dec 12, 11:37 am, Vidul Petrov wrote:
> yes I tried with different settings (with and without authentication/
> with smtp.gmail.com:587 and different smtp server).
> I guess it is the well known GAE problem that prevents smtplib because
>
Oops, I misunderstood your goal.
Actually I wrote a ROW_NOT_IN_DB validator which did not get Massimo's
approval, but looking back it might have been because I used a bad
example to make the case.
Anyways, just coding the validator was not enough, I had to modify a
few things in gluon too.
On D
@Massimo, thank you
@Wes James, I'm running python 2.5.2. It's doesn't have to do with
that though as I'm working on multiple other web2py projects and I'm
not getting the same issues. I can save settings fine now, it's just
things like models, procedures etc... that won't save. Everything else
l
Thank you everyone :)
> Shame the in-built translation is only visible to other Mibbit clients
Everyone one can see the translated text, just not the english part in
the () brackets :)
On Dec 12, 8:18 am, Fran wrote:
> Shame the in-built translation is only visible to other Mibbit clients
> -
if i have:
db.foto.exposes=['title','image']
in my models and on a page do
{{=self.search(db.foto)}}
should the search field dropdown have foto.id in it? I thought it shouldn't.
Also, does exposes affect db.foto.represent? Since I just added
foto.id to part of the represent I thought that t
edit:
redirect(URL(r=request,c='printings',f='myPrint',args=[myDict]))
On 12 Dic, 19:03, pmate wrote:
> Hi,
> using pyrtf i created a new controller called printings.py.
> In it i have a function:
> def myPrint():
> myDict = request.args[0]
> ...
> ...
> return q.dumps(doc)
>
> f
redirect(URL(r=request,c='myPrint',f='myPrint',args=[myDict])) # and
not f='lprProvv'
On Dec 12, 8:03 pm, pmate wrote:
> Hi,
> using pyrtf i created a new controller called printings.py.
> In it i have a function:
> def myPrint():
> myDict = request.args[0]
> ...
> ...
> return q
Hi,
using pyrtf i created a new controller called printings.py.
In it i have a function:
def myPrint():
myDict = request.args[0]
...
...
return q.dumps(doc)
from my default controller i want to call that function passing to it
a dictionary. After it finishes printing i want to get
if fixed it.
I changed:
_href='#zoom-me' and _id='zoom-me'
to
_href='#zoom-me'+str(foto.id) and _id='zoom-me'+str(foto.id)
-wj
On Fri, Dec 12, 2008 at 10:34 AM, Wes James wrote:
> funny thing though, using itemize to show several pics on the page
> the zoom magic only shows the first pic o
yes I tried with different settings (with and without authentication/
with smtp.gmail.com:587 and different smtp server).
I guess it is the well known GAE problem that prevents smtplib because
some low-level socket functions?
On Dec 12, 7:30 pm, mdipierro wrote:
> did you edit the settings? You
No. Perhaps in the future.
On Dec 12, 10:04 am, Iraklis wrote:
> Hi web2py group!
>
> Is there something similar to SQLalchemy and its autoload function.
> For example, if there is already a DatabaseModell?
>
> Kind Regards
> Iraklis
--~--~-~--~~~---~--~~
You rece
funny thing though, using itemize to show several pics on the page
the zoom magic only shows the first pic on on the list, even when
clicking on any other pic on the list - the zoom always does just the
first one :)
On Thu, Dec 11, 2008 at 11:24 PM, mdipierro wrote:
>
> not quite but perhaps so
SQLField('fielname','text')
SQLField('fielname','blob')
do not have size limitations on postgres. You cannot use the BIG
datatype because it has not equivalent on other databases.
Massimo
On Dec 12, 10:07 am, Iraklis wrote:
> Dear web2py community!
>
> How I can use the big data type from Post
did you edit the settings? You are supposed to configure your smtp
server. If you use gmail you need to setup auth params.
massimo
On Dec 12, 10:10 am, Vidul Petrov wrote:
> I am trying to use T3 email sending on GAE with no luck (T3 keeps on
> saying "unable to send email"). Did anyone try thi
Hi web2py group!
Is there something similar to SQLalchemy and its autoload function.
For example, if there is already a DatabaseModell?
Kind Regards
Iraklis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py W
Dear web2py community!
How I can use the big data type from Postgresql in web2py
Kind Regards
Iraklis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send em
Help me understand how this works.
"value", in the _expression_, gets replaced with the value being
validated, correct? If so, then your suggestions check if field1 ==
field2. That's not quite what I'm looking for.
What I'm looking for would be something like this:
ARE_NOT_IN_DB(db, 'tab
Massimo,
that works! thx!!
-wj
On Thu, Dec 11, 2008 at 11:24 PM, mdipierro wrote:
>
> not quite but perhaps something like this:
>
> db.foto.represent=lambda foto: TABLE(A(foto.title,_href=t2.action
> ('wiki/edit',foto.id)),
> A(IMG(_width=200,_src=URL(r=request,f='download',args=[foto.image]
You can probably tailor this to your needs:
db.mytable.field2.requires=IS_EXPR('value==%s' % repr
(request.vars.field1),error_message='oops!')
or the equivalent (and more flexible):
db.mytable.field2.requires=IS_EXPR('True' ),error_message='oops!')
db.mytable.field2.requires.expressions='value=
ceej,
i just tried it again. new svn, new copy of t3, copied t3 in via
admin, reg'd, then went in to settings and it saved my admin email
fine.
what python are you using?
python -V
and try
which python
to see where python is.
btw, -M means load models not modules. (ver ./web2py.py -help
Shame the in-built translation is only visible to other Mibbit clients
- looks really nice there :)
This fits the 'Easy to Internationalise' ethos of Web2Py nicely...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"w
I am trying to use T3 email sending on GAE with no luck (T3 keeps on
saying "unable to send email"). Did anyone try this setup?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
It seems that we discussed this a while ago, but I can't find the
discussion.
Can we have a validator based on multiple unique fields?
Basically, I would like uniqueness to be defined by multiple fields
instead of just one on a validator level. This would be to simulate a
complex primary ke
yes
On Dec 12, 9:10 am, "Wes James" wrote:
> i have:
>
>
>
> will that be fine?
>
> On Fri, Dec 12, 2008 at 8:02 AM, mdipierro wrote:
>
> > You are using a manual HTML form instead of {{=form}}. For an update
> > form you need to include
>
> > 1) > 2) {{=form.hidden_field()}}
>
>
--~--~-
i have:
will that be fine?
On Fri, Dec 12, 2008 at 8:02 AM, mdipierro wrote:
>
> You are using a manual HTML form instead of {{=form}}. For an update
> form you need to include
>
> 1) 2) {{=form.hidden_field()}}
--~--~-~--~~~---~--~~
You received this messa
You are using a manual HTML form instead of {{=form}}. For an update
form you need to include
1) form=FORM(INPUT(_name="name"),INPUT(_name="description"),SELECT
> (_name="type"),SELECT(_name="subtype"),INPUT(_name="priority"),INPUT
> (_name="enabled"),INPUT(_type="submit",_value=T("Save")))
Not
that's interesting - put mibbit in a window with web2py as the back end
ceej, your having too much fun :)
-wj
On Fri, Dec 12, 2008 at 3:39 AM, ceej wrote:
>
> Hey all,
>
> I've created a site http://www.web2pychat.com which will let you chat
> to people in the irc web2py room without downl
Now there is. Thanks for pointing that out.
http://genshi.edgewall.org/wiki/GenshiRecipes/web2py
Grahack wrote:
Hi, I think there could be an entry+page for web2py+genshi here:
http://genshi.edgewall.org/wiki/GenshiRecipes
Sorry, I'm not good enough to put some info here.
--
Timot
On Dec 11, 5:49 pm, mdipierro wrote:
> 1) use your html instead of {{=form}} for but in the form include
> {{if form.errors.email:}}{{=form.errors.email}}{{pass}}
> {{=form.hidden_field()}}
I'm trying to do the same kind of thing.
I tried using
form=SQLFORM(db.gis_layer)
However I am missing one
You can now add pages. Sorry the link was not there before.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe fro
No idea. I will take a look.
Massimo
On Dec 12, 12:57 am, ceej wrote:
> Spoke to soon, now this is strange. So updating settings works, but
> anything else in that menu doesn't save...
>
> Any ideas?
>
> On Dec 11, 9:32 pm, "Wes James" wrote:
>
> > np :)
>
> > On Thu, Dec 11, 2008 at 10:21
This is beyond web2py. You can monitor the logs (httpserver.log) and
web2py has a log analyzer app.
You can put checks in code that save history in sessions. Then you can
browse sessions via appadmin.
Massimo
On Dec 12, 3:46 am, KapilG604 wrote:
> Hi Everybody,
>
> Being an owner of a firm, I
Really Nice!
On Dec 12, 5:14 am, DenesL wrote:
> It looks really good, nice job!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups
Ok, sorry, I think I didn't even try to login...
On 12 déc, 14:27, mdipierro wrote:
> you account seems active
>
> On Dec 12, 2:26 am, Grahack wrote:
>
> > Mmmmf, the activation url I received is said to be invalid.
> > The problem could be on my side since FF bugged at the very moment I
> > cl
you account seems active
On Dec 12, 2:26 am, Grahack wrote:
> Mmmmf, the activation url I received is said to be invalid.
> The problem could be on my side since FF bugged at the very moment I
> clicked this url (note that the FF bug is not related to the wiki).
> So now the problem is that my e
Hi Everybody,
Being an owner of a firm, I would like remotely see, what my users are
upto and if they are comprmising anywhre. (Without Intruding their
Work). PLease suggest if there are anyways, I can remotely see their
screens for the purpose.
Thanks
--~--~-~--~~~-
I might be very wrong on this, but it's actually correct that way.
None is NOT a value (it is a const identifier) and hence you cannot/
should not compare it by value or use logic operators on it. The same
goes for databases' NULL. Take a look for example at mysql, when you
do 'WHERE id = NULL' th
Hi there,
I encounter a not-so-intuitive behavior when search in boolean field,
named
Giving the definition:
SQLField('special', 'boolean', default=False)
And bear in mind that there are THREE kinds of value in this field:
True, False, and ""(None)!
When I search:
db(db.Orders.special==True
Hi, I think there could be an entry+page for web2py+genshi here:
http://genshi.edgewall.org/wiki/GenshiRecipes
Sorry, I'm not good enough to put some info here.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py
It looks really good, nice job!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
Use
form.vars.fieldname=fieldvalue
before form.accepts
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from th
Hey all,
I've created a site http://www.web2pychat.com which will let you chat
to people in the irc web2py room without downloading anything. I'ts
built on the new T3, it's very early beta and I will be adding a lot
more soon. Special thanks to Mibbit :)
So there is no excuse for any web2py uses
I think you should be able to do what you ask but it would help to see
your define_table and controller method.
On Dec 12, 10:02 am, zhaopeng wrote:
> Hello everybody,
> I display some fields of a table use SQLFORM to view.when i get the
> request data from SQLFORM, I add some vars to request.
Hello everybody,
I display some fields of a table use SQLFORM to view.when i get the
request data from SQLFORM, I add some vars to request.vars,then add
the data to db by form.accepts(request.vars,session),but i found the
vars i added in db is None.so i must use db.table.insert() to add the
data
Mmmmf, the activation url I received is said to be invalid.
The problem could be on my side since FF bugged at the very moment I
clicked this url (note that the FF bug is not related to the wiki).
So now the problem is that my email is in the DB but the activation
url is bad. Massimo could you do
85 matches
Mail list logo