I would create a my_application.css file in the static folder of my
application containing the styles my app uses, e.g. your
'student_last_name'.
If it is not automatically picked up then include the following in
your app's layout.html or whatever you are using:
I think the following also work
That's another thread isn't it?
On Nov 7, 5:42 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> i don't see any size (field width) or maxlength (total chars that can
> be type in field) in the html output.
>
> -wj
>
> On Thu, Nov 6, 2008 at 9:17 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > length i
I believe that you can set the attributes on an
but only if you create it specifically as in:
INPUT(_type='text',_name='student_last_name',_value='Smith',_size='20',_maxlength='30')
...as all attributes prefixed '_' are used to create html tag
attributes.
At the moment, I don't believe that yo
I agree that choice is good but without version numbers in the
download filename it could be frustrating having to install and run
before you know what version you have got.
On Nov 8, 10:10 pm, ceej <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've added web2py
> onhttp://github.org|http://github.co
I know this is a weak question but I can't seem to get my head around
it. I want to code something like the following in a view html file:
{{=object.method()}}
...and get some valid html included in the view. Let's say I want a
label, a value and a . I expect the method to look something
like:
ou are passing a list to the DIV and the list is
> serialized. In the second case you are passed the list elements to the
> DIV, as should be.
>
> Massimo
>
> On Nov 8, 6:51 pm, billf <[EMAIL PROTECTED]> wrote:
>
> > I know this is a weak question but I can'
etwork-theory.co.uk/docs/pytut/UnpackingArgumentLists.htmlhttp://www.network-theory.co.uk/docs/pytut/Dictionaries.html
>
> Hope that is helpful.
>
> Yarko
>
> On Sat, Nov 8, 2008 at 10:38 PM, Jonathan Benn <[EMAIL PROTECTED]>wrote:
>
>
>
> > On Nov 9, 7:19 am, billf
1) tables over something else: it does seem to be a subject of great
discussion that people get very energised about. But I guess that if
you take out tables then someone else will object :-) Isn't the idea
of custom forms that if you want labels you code your own view?
2) labels: personally I
Hi All
I know that there is a patch related to custom views in the pipeline
but this proposal is another step on from that.
I am proposing an additional approach that enables those things that
(I consider) are view-related to be moved from the model and
controller to the view. In addition, it p
I don't think you can. I'd be happy to be proved wrong.
There was a thread a while ago about how it would be really nice to be
able to map a database column name to an 'internal' name. This was
primarily to help with legacy tables that had unfriendly column
names. In the context of Firebird/T2
, have the DAL uniformly convert ALL database
> field names to the form "foo_"
>
> Massimo made some argument against that ... I don't remember what it was or
> it's strenghth... .but maybe this is enough context to start from if you
> want to re-visit this.
>
&
of web2py
> as a module.
> If you code it, please share it with us. It could be used to build a
> better T2.
>
> Massimo
>
> On Nov 10, 7:23 am, billf <[EMAIL PROTECTED]> wrote:
>
> > Hi All
>
> > I know that there is a patch related to custom views
Thank you for your kind comment.
I have made a few changes to the "spec" described in a change log at
the top of the page.
On Nov 11, 8:22 am, seeker <[EMAIL PROTECTED]> wrote:
> I just read your article Bill.
>
> That is a damn fine bit of thinking!
>
> I hope your ideas can be progressed.
>
>
> > to be backwards compatible across *all versions* is like saying we
> > > don't want do significant improvements and introduce drastically new
> > > technologies. Also, the longer 'stretch' of backwards compatibility
> > > exists, the harder it will
Ugh! If anyone can help me stop that I'd be grateful. I don't get
the problem. I copied the meta lines from another page - could there
be something in there that some clients don't like?
Any help gratefully received.
On Nov 11, 6:25 pm, Keith Edmunds <[EMAIL PROTECTED]> wrote:
> On Tue, 11 No
like this:
>
>
> Well-behaved Systems
>
>
>
>
>
> On Tue, Nov 11, 2008 at 12:13 PM, billf <[EMAIL PROTECTED]> wrote:
>
> > Ugh! If anyone can help me stop that I'd be grateful. I don't get
> > the problem. I copied the meta lines from a
gets "Firefox can't find the server
> atwww.wellbehavedsystems.co.uk" ?
>
> On Nov 11, 9:53 am, billf <[EMAIL PROTECTED]> wrote:
>
> > Thank you for your kind comment.
>
> > I have made a few changes to the "spec" described in a change lo
b2py approach to MVC. By that I
> mean I don't like labels in the model, labels in the controller
> (passed to SQLFORM), an object that binds updating the database with
> generating HTML for a form (SQLFORM) and a host of other"little"
> things.
>
> .
> .
> .
&g
7:34 pm, Timothy Farrell <[EMAIL PROTECTED]> wrote:
> It's amazing how critical that ".co.uk"
> is.http://www.wellbehavedsystems.co.uk/web2py/examples/mvc.html
> billf wrote:Wes The home page is a do-nothing page. The doc can be found
> athttp://www.wellbehavedsys
"Wes James" <[EMAIL PROTECTED]> wrote:
> works fine in my firefox, opera, camino (on mac) and i just tried ie7
> (intravenousExploder) and firefox in windows (vmware fusion) and they
> go right to your page too
>
> -wj
>
> On Tue, Nov 11, 2008 at 12:42 PM, bil
Many thanks.
On Nov 11, 10:00 pm, Keith Edmunds <[EMAIL PROTECTED]> wrote:
> On Tue, 11 Nov 2008 11:56:12 -0800 (PST), [EMAIL PROTECTED]
> said:
>
> > Can achipa or Keith or
> > anyone who gets the problem try storing the source locally (if they
> > can access it at all!) and see if they still ge
Seeker
I think you have a good point but, playing devil's advocate, if you
want to establish yourself in an enterprise section of the market it
is a disadvantage to give users the ultimatum "if you want X then you
have to change Y".
Perhaps, an alternative is to deprecate methods and classes so
I don't know much about widgets and I have a question.
How do I ensure that my widget is styled in line with other, similar
components?
Or putting it another way, can I ensure that my widget gets class= or
id= attributes that are compatible with
those given to non-widget components or do I have
les for ID and CLASS in forms. If you make your
> own widgets simply use the same convention.
>
> Massimo
>
> On Nov 12, 12:05 am, billf <[EMAIL PROTECTED]> wrote:
>
> > I don't know much about widgets and I have a question.
>
> > How do I ensure that my w
SQLTable.insert() just wants a dict so I think it should look like:
my_insert(name='Carl',address='av none 1')
def my_insert(self,**vsql):
db.people.insert(vsql)
.. but I'm new to Python and I'm never sure where the asterisks should
go :-)
On Nov 12, 8:09 pm, Heronim <[EMAIL PROTECTED]> wr
seeker
Good question. The current "spec" proposes that the Resource approach
will sit alongside the existing web2py core and there will be NO
backward-compatibility problems.
If the developer chooses to use the Resource approach then there are a
couple of consequences:
1) The constructs in the
It looks a really nice presentation - congrats.
On Nov 13, 3:59 am, mdipierro <[EMAIL PROTECTED]> wrote:
> http://mdp.cti.depaul.edu/examples/static/pyworks.pdf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py
Has any one used dropdown lists with multiple selections or multiple
checkboxes for the same field/reference?
I can envisage setting up multiple references (person A has homes in
New York, Chicago and Paris - person has a many-to-many relationship
with city).
I can also envisage an un-normalized
Massimo
How did the presentation go? Did you get much feedback?
Bill
On Nov 14, 7:47 am, "Yarko T" <[EMAIL PROTECTED]> wrote:
> Note - if you log in (or create an account on Google- just use an existing
> email address) you can download in other formats, make a copy, accept
> online questions
A whois on web2py.net just says its registered by ww.name.com.
If you ping web2py.net then you get 38.97.225.166 and if you look that
up you get Cogent Communications - does that mean anything to anyone?
On Nov 14, 2:55 pm, Massimo Di Pierro <[EMAIL PROTECTED]> wrote:
> I hope one of us bought i
.
Supplementary questions:
1) Must the upload link be a controller/function or could it be any
url?
2) Would it be useful optionally to specify different a controller/
function/url for each resource fields?
On Nov 11, 7:56 pm, billf <[EMAIL PROTECTED]> wrote:
> Oops - thanks Timothy :-)
&
I agree with Yarko but note that mysql don't seem to have mysql.net
and it doesn't seem to have done them any harm.
On Nov 15, 12:28 am, pmate <[EMAIL PROTECTED]> wrote:
> Well, my opinion:
> i just don't understand why to buy web2py.net,web2py.org, web2py.eu,
> etc. Really i don't understand. Fo
Voltron
I don't think you answered the original question which was basically
"if you are going to specify a link in a page then is specifying that
link the responsibility of the the model, the controller or the view?"
RE your other points:
"All URLs should be able to handle files/REST/PUT": at
Also, I had noticed someone else (not Massimo) had already
> > > taken web2py.org. Besides, the idea was also to take web2py further.
> > > Also It will be very difficult to keep all the tld for web2py unless
> > > we all (web2py aficionado) chip-in. Isn't that what op
Try working through the tutorial in
http://mdp.cti.depaul.edu/examples/static/cookbook.pdf
It provides code examples that probably cover your needs.
On Nov 16, 8:14 pm, Jędrzej Nowak <[EMAIL PROTECTED]> wrote:
> So, I would like to create SQLFORM with inserts data to db, but I would
> like to s
Massimo
The problem with the above example is that, tho' it works fine first
time thru', subsequent executions (for me at least) result in
"'users' referenced before assignment"
I believe that this is because any variable defined in db.py (e.g.
users) is global but is only assigned to if it is
Not a major gripe I know but can anyone tell me why closing a Firefox
tab including a web2py ticket takes 20-30 seconds while closing a tab
containing anything else is almost instant?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Massimo
The problem with the above example is that, tho' it works fine first
time thru', subsequent executions (for me at least) result in
"'users' referenced before assignment"
Once the tables have been created, I believe the controller code must
reference them as "db.users.insert..." and db.d
IS_IN_DB(db().select(db.activitytypes.ALL),'activitytypes.code')
IS_IN_DB also creates a dropdown list
On Nov 17, 8:20 am, "marco prosperi" <[EMAIL PROTECTED]>
wrote:
> hello everybody, I would like to do something similar to
>
> db.activity.activitytype.requires=[IS_NOT_EMPTY(),IS_IN_SET([ x fo
html, relations
> etc... )
> Now i would like to create new page based on this template, without
> selecting many values again ( checkboxes etc ).
>
> If I generate SQLFORM() with "values" from database, it generates
> update form, without values from database it genera
tbh I have been sitting on my hands for a while but a few other posts
have touched on some of the real difficulties so I hope I will not
been seen as the only negative/questioning voice. I start from the
point that I think the aims are wonderful. But...
To begin with, most of the aims of sharing
According to
http://www.petefreitag.com/tools/sql_reserved_words_checker/?word=release
"release" is a reserved word in DB2, MySQL 5.0 and PostgreSQL 8.
On Nov 17, 9:24 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> maybe release is a SQL reserved keyword.
>
> Massimo
>
> On Nov 17, 3:19 pm, "Phyo A
I don't think you can - as you say itemize takes tables and an
optional query. I think you will have to create your own "itemize"
that works off your results. Looking at T2.itemize, it should not be
difficult.
Would it be nice if one could create a database and table in ram cache
(disk cache wou
ase in ram than this is possible. I will
> take a look.
>
> Massimo
>
> On Nov 18, 7:33 am, billf <[EMAIL PROTECTED]> wrote:
>
>
>
> > I don't think you can - as you say itemize takes tables and an
> > optional query. I think you will have to cr
is having trouble.
>
> I think we need to revisit the fundamental issue here... In a separate
> thread. In preparation please review my note last night re: MVC ==> data /
> logic / presentation.
>
> Regards,
> Yarko
>
>
>
> -Original Message-
> From:
Yarko
Basically I agree with everything you say. There are always going to
be some grey areas but that's life.
For example, I could argue that hiding changes to the model could be
handled by the model (as opposed to the controller as you suggest) by
exposing a "legacy" view. (I'm talking genera
Responses below
On Nov 18, 6:04 pm, yarko <[EMAIL PROTECTED]> wrote:
> On Nov 18, 10:41 am, billf <[EMAIL PROTECTED]> wrote:
>
> > Yarko
>
> > Basically I agree with everything you say. There are always going to
> > be some grey areas but that's
time :-)
- Hide quoted text -
On Nov 18, 8:26 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 18, 2008 at 2:03 PM, billf <[EMAIL PROTECTED]> wrote:
> > I'm not saying that the (presentation) view knows anything about the
> > model just that the c
thout a database?
>
> Otherwise I'll do as you suggest, Bill, and make my own itemize.
> Baron
>
> On Nov 19, 12:33 am, billf <[EMAIL PROTECTED]> wrote:
>
>
>
> > I don't think you can - as you say itemize takes tables and an
> > optional query.
e
>
> refererring to your temporary data(?)
>
> No, to the table input to itemize. This input is a python object. So
> can this object be instantiated directly without going through a
> database?
>
> On Nov 19, 5:36 pm, billf <[EMAIL PROTECTED]> wrote:
>
> >
If the following explanation is correct it is a big coincidence
because I have just been looking at this behaviour.
When a form is submitted, if there is no parameter for a field then
one of 2 things happen (simplified):
If it is NOT a checkable form control (checkable=check box or radio
button)
The following is a proposed patch to sqlhtml.py so that record fields
of type 'boolean' are added as hidden form fields if they are not
already included in the form. In this way, the status of a checked/
true field is maintained even if the field is not included in the form
as a checkbox.
In the
that
whatever the status of the normal checkbox either name=on or name=off
will be returned.
Any thoughts gratefully received.
On Nov 21, 8:13 am, billf <[EMAIL PROTECTED]> wrote:
> If the following explanation is correct it is a big coincidence
> because I have just been looking
a parameter hidden=dict(key='value')
>
> Massimo
>
> On Nov 21, 6:32 am, billf <[EMAIL PROTECTED]> wrote:
>
> > I am investigating a possible solution to the above problem that would
> > return fieldname=OFF if a displayed checkbox is unchecked.
>
&g
g?
> I think this is the correct behavior
>
> Massimo
>
> On Nov 21, 8:49 am, billf <[EMAIL PROTECTED]> wrote:
>
> > Massimo
>
> > In what way are you suggesting "SQLFORM and and FORM take a parameter
> > hidden=dict(key='value')" would b
> > > On Nov 20, 3:06 pm, Baron <[EMAIL PROTECTED]> wrote:
>
> > > > > > The easiest way to construct an SQLTable is to use define_table (as
> > in a model like db.py).
>
> > > > > You say 'easiest' - is there an alternative way to
I have been going back to basics and running my own test - just web2py
- and I agree that it does all seem to work ok (correct data on db and
correct data in form) with one exception (see next para). I think I
overlooked the fact that, for standard form processing, update() only
updates the field
s/wrong results?
On Nov 22, 1:23 am, mdipierro <[EMAIL PROTECTED]> wrote:
> That is because a form is reset to default upon accept, unless you
> accept with keepvalues=True.
>
> Massimo
>
> On Nov 21, 5:41 pm, billf <[EMAIL PROTECTED]> wrote:
>
> > I have been
I guess that in "Actually this does not happen with SQLFORM since it
is smart enough to figure out that the current record should be
included when enforcing
IS_NOT_IN_DB(...). ", 'included' should read 'excluded'.
On Nov 24, 5:56 am, mdipierro <[EMAIL PROTECTED]> wrote:
> Actually this does not h
Harking back to an ancient thread, I think I have finally tracked down
what I think is a grey area in checkbox processing.
The "book" says: (When a form is accepted) "If the keepvalues is set
to True the form is pre-populated with the previously inserted
values." It doesn't say, specifically wha
IL PROTECTED]> wrote:
> Bill,
>
> shouldn't 'ON' in slqhtml.py also be 'on'?
>
> On Nov 28, 10:05 am, billf <[EMAIL PROTECTED]> wrote:
>
> > Harking back to an ancient thread, I think I have finally tracked down
> > what I think is
The following works for me (assuming the first form in the page).
document.forms[0].address.focus()
On Dec 1, 12:22 am, mdipierro <[EMAIL PROTECTED]> wrote:
> There is a jquery statement in web2py_ajax.html that conflicts with
> it. That jquery statement should be removed. I do it asap.
>
>
The following works for me - assumes address is in the first form:
On Nov 30, 11:48 pm, pmate <[EMAIL PROTECTED]> wrote:
> hi,
> this is my code in the view:
>
> {{extend 'layout.html'}}
> Page Title
> {{=form}}
>
>
>