I thought this was fixed in the t2.pdf. Are you sure you have the
latest?
Massimo
On Nov 11, 12:41 am, Baron <[EMAIL PROTECTED]> wrote:
> I noticed the T2 documentation defines the 'to' and 'callback'
> parameters but in t2.py these have been changed to 'next' and
> 'onaccept'.
>
> On Nov 7, 3:4
I noticed the T2 documentation defines the 'to' and 'callback'
parameters but in t2.py these have been changed to 'next' and
'onaccept'.
On Nov 7, 3:46 pm, Baron <[EMAIL PROTECTED]> wrote:
> oh wow, you are productive.
> So I'll work from there then. Thanks!
>
> On Nov 7, 10:02 am, mdipierro <[E
Hi Christopher,
thanks for your interest.
I did not add informix support yet. It is very close to being
supported but I do not have informix therefore it has never been
tested yet. Some debugging may be needed.
Would you be able to run this test:
cd gluon/
edit sql.py, in the last doctest, rep
You are right. It is a bug. form.latest is not not quite working as it
should.
I think I fixed it now. Get the latest gluon/html.py from trunk and
let me know.
Sorry about this. I guess we should have 1.49 soon.
Massimo
On Nov 10, 9:51 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> yes just defau
Solved.
I copied parameters_8000.py to parameters_443.py
Thanks.
On Nov 11, 12:02 am, "Yarko T" <[EMAIL PROTECTED]> wrote:
> By design, admin for web2py does not work if it is not localhost
> Take a look at the FAQ's http://mdp.cti.depaul.edu/AlterEgo
> and search for "admin"
>
> That may
By design, admin for web2py does not work if it is not localhost
Take a look at the FAQ's http://mdp.cti.depaul.edu/AlterEgo
and search for "admin"
That may help.
Regards,
Yarko
On Mon, Nov 10, 2008 at 9:44 PM, ionel <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I configured web2py with wsgi a
Massimo,
I downloaded Web2Py 1.48 and see you added InformixDB support. Here
is a silly question. Is there some sort of standard test plan or
should I develop one. I don't mind developing my own test plan since
I do this professionally anyway.
Thank you,
Christopher Smiga
Software Test Engine
yes just default/index.html
On Mon, Nov 10, 2008 at 8:49 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> No I assume this is default/index.html correct? the form is returned
> with the dict. It would not work for other actions because they are
> not returning form.
>
> Massimo
>
>
> >
>
--~--~-
>From my earlier email:
db.define_table("student",
SQLField("last_name","string",length=30,default=""))
On Mon, Nov 10, 2008 at 8:44 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> Does your db.table.last_name have a default value?
>
> On Nov 10, 8:52 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>
No I assume this is default/index.html correct? the form is returned
with the dict. It would not work for other actions because they are
not returning form.
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
IS_EXPR(expr)
the expr string is executed in a scope that only sees the "value"
variable. If will not see anything else.
I think you want
IS_EXPR('value!=%s' % repr(request.vars.field1))
Massimo
On Nov 10, 7:36 pm, pigmej <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to check that the value i
Hello,
I configured web2py with wsgi and ssl.
For https://mywebsite/admin I have the following error:
"admin disabled because unable to access password file"
Any idea?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Does your db.table.last_name have a default value?
On Nov 10, 8:52 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> I have been doing this. But I am now writing my own form as the
> generic one does not work well for some of my fields. I need to add
> "helper" text after some of the fields to give
I have been doing this. But I am now writing my own form as the
generic one does not work well for some of my fields. I need to add
"helper" text after some of the fields to give extra info to the
students about the field. I am having problems with the form creation
but Massimo (and whoever els
The following is likely what you were looking for to set the maxlength
attribute in a single call of the ready() function.
$(document).ready(function() {
$('#student_last_name').attr('maxlength','4');
$('#student_first_name').attr('maxlength','4');
$('#student_last_name__label').attr
Hi,
I need to check that the value is/isn't the same in two different
fields, in one form.
I'm trying to do it with IS_EXPR but no idea how...
I tried:
in validation of field2
1. IS_EXPR('value!=form.vars.field1')
2. IS_EXPR('value!=field1.value')
3. IS_EXPR('value!=field1')
Always error...
I
Wes,
If You use methods based on js or html it's easy to break them. Do not
use it, it does make any sense. Anyone can break them in few seconds.
You really should use max/min length on server side, not user side.
On Nov 9, 6:30 am, "Wes James" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 8, 2008 a
do i need
form=SQLForm(db.student)
somewhere? I tried it with:
{{form=SQLForm(db.student)}}
just above the and it still did not work.
On Mon, Nov 10, 2008 at 4:48 PM, Wes James <[EMAIL PROTECTED]> wrote:
> that should be:
>
>
>
> {{=db.student.last_name.label}}
>
> {{if form.errors.last_n
that should be:
{{=db.student.last_name.label}}
{{if form.errors.last_name:}}{{=form.errors.last_name}}{{pass}}
{{=form.hidden_fields()}}
On Mon, Nov 10, 2008 at 4:44 PM, Wes James <[EMAIL PROTECTED]> wrote:
> Model:
>
> db=SQLDB('sqlite://db.db')
>
> from applications.plugin_t2.modules.t
Model:
db=SQLDB('sqlite://db.db')
from applications.plugin_t2.modules.t2 import T2
t2=T2(request,response,session,cache,T,db,all_in_db=True)
db.define_table("student",
SQLField("last_name","string",length=30,default=""))
db.student.id.default=t2.person_id ## this sets default ownership
db
please show me the model, view and controller, otherwise I am not sure
about the answer.
On Nov 10, 5:36 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> What I am saying is, shouldn't my code below put "joe" in the input
> field by grabbing the current value in the database? It is getting
> None i
What I am saying is, shouldn't my code below put "joe" in the input
field by grabbing the current value in the database? It is getting
None instead of "joe"
On Mon, Nov 10, 2008 at 4:33 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> that if because last name does not have a default.
>
> you can ei
that if because last name does not have a default.
you can either do default='' in model or {{=form.latest.last_name or
''}} in the view.
I cannot set form.latest.last_name automatically to '' if no default
because it is not quite the same. Since this is a custom view I do not
know that you will
ok this time it works with:
{{include}}
{{=db.student.last_name.label}}
{{if form.errors.last_name:}}{{=form.errors.last_name}}{{pass}}
{{=form.hidden_fields()}}
but the last-name input has "None" in it for the value. I have
{{include}} just above it and the value in that is correct with
I'm trying it again. I noticed that osx version goes in to
dist/web2py.app. I'm copying my app over to 1.48 and trying it now...
-wj
On Mon, Nov 10, 2008 at 4:00 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> can you please check your web2py/VERSION and look for "hidden_fields"
> in web2py/gluon/
nice. thanks.
On Nov 10, 4:23 pm, tommy <[EMAIL PROTECTED]> wrote:
> Bear,
>
> Finance google provide the real time data, use RSS to retrieve
> it.http://pulse2.com/2008/06/24/google-finance-advances-real-time-market...
>
> Bloomberg has the data feed, It uses phatpile.
>
> Tommy
> On Nov 10, 4:
can you please check your web2py/VERSION and look for "hidden_fields"
in web2py/gluon/html.py
If they are ok, please send me the ticket page.
Massimo
On Nov 10, 4:11 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> Do I need to put
>
> form=SQLFORM(db.friend)
>
> somwhere if I am not just using an {
Bear,
Finance google provide the real time data, use RSS to retrieve it.
http://pulse2.com/2008/06/24/google-finance-advances-real-time-market-data-feature/
Bloomberg has the data feed, It uses phatpile.
Tommy
On Nov 10, 4:10 pm, tommy <[EMAIL PROTECTED]> wrote:
> Bear, I don't know, but I can
Do I need to put
form=SQLFORM(db.friend)
somwhere if I am not just using an {{include}}?
On Mon, Nov 10, 2008 at 2:30 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> yes it does:
>
> over:~/web2py massimodipierro$ python web2py.py -S test1
> WARNING:root:no psycopg2 driver
--~--~-~--~---
Bear, I don't know, but I can check it and update to you later.
Here is the example how web2py application to get the trading data
from finance yahoo using CSV. The link is
http://mdp.cti.depaul.edu/appliances/default/show/20
I am sure there is delay for these data.
Tommy Zhu
On Nov 8, 8:09 am,
Two cents withheld due to misbehaving DNS/server :)
On Nov 10, 9:57 pm, billf <[EMAIL PROTECTED]> wrote:
> Massimo
>
> As you say, the proposal can be implemented as a module so as to not
> compromise backwards-compatibility.
>
> I am happy to come up with some code but it would be really helpful
Ain't it though?!
Remeber that anytime you hear anywon grunt about "...I will not break
backward compatibility" ;-)
On Mon, Nov 10, 2008 at 3:18 PM, Daniel Contag <[EMAIL PROTECTED]> wrote:
>
> Excellent!
>
>
> Daniel
>
> On Mon, Nov 10, 2008 at 19:31, mdipierro <[EMAIL PROTECTED]> wrote:
>
Are there any preexisting conditions for "form.latest.field" to work?
-wj
On Mon, Nov 10, 2008 at 2:41 PM, Wes James <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 2:30 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>>
>> yes it does:
>>
>> over:~/web2py massimodipierro$ python web2py.py -S tes
On Mon, Nov 10, 2008 at 2:30 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> yes it does:
>
> over:~/web2py massimodipierro$ python web2py.py -S test1
> WARNING:root:no psycopg2 driver
>
I just downloaded 1.48 made a copy of my web2py.app and then unzipped
1.48 and the same folder and I still get t
I'm using 1.47
On Mon, Nov 10, 2008 at 2:30 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> yes it does:
>
> over:~/web2py massimodipierro$ python web2py.py -S test1
>
db.define_table('friend',SQLField('name'))
form=SQLFORM(db.friend)
form.accepts(request.vars)
> False
print
yes it does:
over:~/web2py massimodipierro$ python web2py.py -S test1
WARNING:root:no psycopg2 driver
WARNING:root:no cx_Oracle driver
WARNING:root:no MSSQL driver
WARNING:root:no kinterbasdb driver
WARNING:root:no informixdb driver
default applications appear to be installed already
web2py Ente
raceback (most recent call last):
File "gluon/restricted.pyc", line 62, in restricted
File
"/Users/Shared/web2py.app/Contents/Resources/applications/cnrsa/views/generic.html",
line 35, in
AttributeError: 'SQLFORM' object has no attribute 'hidden_fields'
on this:
{{=db.student.last_name.la
Sounds good. If I end up putting anything together, I'll post it
here. If anyone else has any demo materials and wouldn't mind posting
them, that would be great.
Mark
On Nov 8, 6:37 am, mdipierro <[EMAIL PROTECTED]> wrote:
> Good idea. I have to make some for pyworks next week anyway.
>
> On N
Excellent!
Daniel
On Mon, Nov 10, 2008 at 19:31, mdipierro <[EMAIL PROTECTED]> wrote:
>
> I posted web2py 1.48. Many many many small changes. faster and better
> than ever.
> Please give it a try and check if any of your apps break.
>
> Massimo
> >
>
--~--~-~--~~~--
with this:
{{=db.student.last_name.label}}
{{if form.errors.last_name:}}{{=form.errors.last_name}}{{pass}}
{{=form.hidden_fields()}}
I get the error:
Traceback (most recent call last):
File "gluon/restricted.pyc", line 62, in restricted
File "/web2py.app/Contents/Resources/applications/
Nevermind, just found this in the book (well worth the money by the
way):
Upgrading web2py is very easy.
Simply unzip the latest version of web2py over the old instal-
lation.
This will upgrade all the libraries but none of the applications, not
even
the standard applications (admin, examples, we
Massimo, you're a machine. What is the best way to upgrade? I
extracted web2py 1.48 to a new folder and copied my applications
over. Is that it?
On Nov 10, 12:31 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> I posted web2py 1.48. Many many many small changes. faster and better
> than ever.
> Plea
Massimo
As you say, the proposal can be implemented as a module so as to not
compromise backwards-compatibility.
I am happy to come up with some code but it would be really helpful if
people could contribute their 2 cents early on to ensure a good
"alternative" approach.
On Nov 10, 6:46 pm, mdi
Thanks for the reply...you mention not having to use htaccess...that
definitely catches my attention. My main goal is to have pages like,
for example the admin page always be displayed over https. Even if the
link is http://www.mysite.com/admin then I want it to be forced/re-
written to https as i
You can have custom forms. You always could. Since version 1.48
(posted today) it is even easier:
#in model:
db.define_table('mytable',SQLField('myfield'))
#in controller:
def index():
form=SQLFORM(db.mytable)
if form.accepts(request.vars,session):
response.flash='form accepte
Yes this is a good idea but it is not too easy to implement. Anyway, I
suspect soon or later it will happen.
Massimo
On Nov 10, 2:04 pm, Jose <[EMAIL PROTECTED]> wrote:
> On 10 nov, 13:35, "Yarko T" <[EMAIL PROTECTED]> wrote:
>
> > yes... something about if "foo" is reserved, the form "foo_"
This is Phyo.
Massimo
On Nov 10, 1:08 pm, "Yarko T" <[EMAIL PROTECTED]> wrote:
> Who is this?
>
> Their site shows no info about them;
> The star-nix.com registry is protected (private), doesn't return anything
> except who it's registered through.
>
> The domain is new also (July of this year).
Hey totally agree with you !
It is too bad not to be able to define my own fully customized forms
within a view,
operate over them in a controller but still need to have a necessary
relation to a database model !
Logic should be defined in a controller and presentation in a view.
Daniel
On Mon
On 10 nov, 13:35, "Yarko T" <[EMAIL PROTECTED]> wrote:
> yes... something about if "foo" is reserved, the form "foo_" is
> guarenteed to never be a reserved word (something like that).
> I made to argument that in web2py we should use whatever words we want, with
> no worries, and KNOW, a
Perfect. Thanks.
On Nov 10, 2:42 am, mdipierro <[EMAIL PROTECTED]> wrote:
> Correct.
>
> On Nov 10, 1:13 am, morningovermidnight <[EMAIL PROTECTED]>
> wrote:
>
> > Ah, ok...so should I just not ever upload any .table files to the
> > production server to make sure my database migrations are run?
In short, no.
What you can do is configure the route for the profile controller first:
routes_in=(
('/profile/(?P.*)', '/profile/\g'),
)
And after that you can put the on in for main:
routes_in=(
('/profile/(?P.*)', '/init/profile/\g'),
('/(?P.*)', '/init/main/\g'),
)
This would serve to
Who is this?
Their site shows no info about them;
The star-nix.com registry is protected (private), doesn't return anything
except who it's registered through.
The domain is new also (July of this year).
This doesn't "feel" like a good combination.
is there a "good" story behind it?
Do you kno
Hi there,
In my routes I have
routes_in=(
('/admin(?P.*)', '/admin\g'),
('/my_app/(?P.+)', '/my_app/\g'),
('^.*:/$', '/my_app/main/index'),
('/(?P.+)', '/my_app/\g'),
)
routes_out=(
('/admin(?P.*)', '/admin\g'),
('/my_app/(?P.+)', '/\g'),
)
Which makes my URLS like mydomain.com/
Is know
We are still the system:
http://www.reddit.com/r/programming/comments/7ci86/starnix_the_first_web2py_hosting_service/
but reddit does not show the submission any more
http://www.reddit.com/r/programming/new/?sort=new
Thank you reddit.
Massimo
On Nov 10, 12:42 pm, mdipierro <[EMAIL P
click click click
http://www.reddit.com/r/programming/comments/7ci86/starnix_the_first_web2py_hosting_service/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send
Bill,
if I had seen this one year, it is possible web2py would have looked
this this.
Now we need to maintain backward compatibility so we cannot change it.
Anyway, the structure you propose can be implemented on top of web2py
as a module.
If you code it, please share it with us. It could be used
We should act on this!
http://www.w3.org/TR/css3-layout/
Comments? Suggestions? Volunteers?
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
I posted web2py 1.48. Many many many small changes. faster and better
than ever.
Please give it a try and check if any of your apps break.
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework
Ah! Bill -
I didn't see your post before sending mine.
Thanks for this. This mapping seems general... but leaves a special case
for "id" - I supposed if DAL tolerated a "SQLFILED(id...) to do no more
than a way for setting external_name, that would be consistent.
The problem this seems to
It's amazing how even a little time to think clarifies -
The most compelling reason to NOT make a blanket DAL column renaming
behind the scenes is that you will NEVER be able to read existing
databases. Currently, people are often unhappy enough about the "id"
field naming convention, and the l
Yarko
I actually meant the following 2 cases:
1) if T2 uses the name "password" and that is a reserved word in
Firebird then T2.person can redefined in db.py with the password
something like
SQLField('password','password',external_name='some_word_firebird_allows')
2) if a legacy table has a col
yes... something about if "foo" is reserved, the form "foo_" is
guarenteed to never be a reserved word (something like that).
I made to argument that in web2py we should use whatever words we want, with
no worries, and KNOW, announce, have the DAL uniformly convert ALL database
field names t
auch! I never thought passwod cold be a reserved keyword. You need to
edit t2.py.
On Nov 10, 8:47 am, Jose <[EMAIL PROTECTED]> wrote:
> Hello.
>
> How can I change the name of some fields when I use T2?
> There are some of them that correspond to words reserved of Firebird,
> for example password
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
Thanks Massimo.
My patch adds a taskbar (system tray) icon for Windows. If you start
web2py with a password and the taskbar option (-t or --taskbar) it
uses the GUI, starts the server and minimizes it to the system tray.
Without a password and the option, it creates the icon and leaves the
GUI
I will have to go over the changes in html.py but:
1) I also agree with Bill. The point here was really the MVC
separation as he calls it in a separate post. Plus a leaner version of
the generated HTML. I have no idea how hard would it be to re-position
a TD in a complex form just using CSS.
2) Ma
Hello.
How can I change the name of some fields when I use T2?
There are some of them that correspond to words reserved of Firebird,
for example password.
Regards
Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
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
any Women or Female contributors here?? :P
J/k
:D
On Mon, Nov 10, 2008 at 1:13 AM, Yarko T <[EMAIL PROTECTED]> wrote:
> for releases I wouldn't disagree...
> but this is manual, and for managing man contributors, and for applications
> depending on plugins this feels wrong.
>
>
> On Sun, N
Hi morning, I'm not a w2p guru (newbie in fact) but since you don't
have any answer yet, I'm gonna try something.
We should have more info about your setup to answer.
Forgive me about that, but instead of asking you questions, I'm gonna
assume that you don't know the basic things. This will allow
70 matches
Mail list logo