:22 am, Timothy Farrell tfarr...@swgen.com wrote:
Yes, but before I do that, I want to clarify something.
My first implementation results in a JSON list of objects like so (roughly):[ {field1:'field1val',field2:'field2val'}, {field1:'field1val',field2:'field2val'} ]
Your
mdipierro wrote:
is it possible to call easy_install programmatically? Can anybody
point me to an example?
Massimo
On Dec 23, 4:21pm, Timothy Farrell tfarr...@swgen.com wrote:
easy_install reportlab
dang, that's easy!
;-)
mr.freeze wrote:It would be nice to have a feature system
lternative such as the openoffice APIs
it requires creating a site-package folder and add it the path
Comments?
Massimo
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received th
?
Massimo
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post
).update(**dict([(destination_field, i)]))
db.commit()
(this is an example only, of course condition db.details.id==i is
dumb).
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You
eparate directory and
importer for plugins. This
way you could also show them in a different list than the
applications.
It would also be great if a plugin could include some documentation
that can be seen through
its design page.
Anyways, thanks for a great framework.
--
Timothy Farrell t
that.
But I just want to say, whatever trick you choose, do not try to use
more than one form in one page. I tried but did not work, probably due
to some builtin form id checking function to avoid multi-submit.
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency
wrote:
How can i accept spaces in a form of %20 in url?
domain.com/app/default/index/my%20space%20word
at the moment i get invalid request from web2py
-Marko
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com
into it too much) I've read yui grids are
among the best layout options out there too...
On Fri, Dec 19, 2008 at 12:42 PM, Timothy
Farrell tfarr...@swgen.com
wrote:
If you're open to using a different _javascript_ framework...take a look
at this:
http://www.satyam.com.ar
...@cs.depaul.edu
wrote:
http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips...
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com
which has records in many tables.
I'd love a DAL-way of doing this without manually having to list each
of the tables which may contain an associated record.
(Since there's a large number of tables which could have such a
record)
I'm not sure what would be required to allow this?
F
--
Timothy
validator.
On Dec 16, 2:59pm, Timothy Farrell tfarr...@swgen.com wrote:
In the thread on validating multiple fields, I was trying to use validators to get around the problem of lack of complex primary key support. The better solution is to have true complex primary key support rather than a
ost to propose adding multi-
column unique constraints to the DAL but I'd be interested to read
other people's views.
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this mess
6, 9:19 am, Timothy Farrell tfarr...@swgen.com wrote:
Bill,
I'm with you. Complex Primary keys is tops on my wishlist right now. Part of the reason I wanted a web2py wiki so much is so we could do stuff like this in PEP style.
For those unfamiliar with PEPs:http://www.python.org/dev/pep
/95614/ any ideas?
Many thanks
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups web2py Web Framework group
.
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
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
key.
Thanks,
tim
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group
.swgen.com)
--
Timothy Farrell tfarr...@swgen.com
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email
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 tfarr...@swgen.com
Computer Guy
Statewide General
from
requests.vars in a form that I can put in a application-wide validator.
-tim
mdipierro wrote:
I do not understand. Where is your input from?
Massimo
On Dec 12, 2:42 pm, Timothy Farrell tfarr...@swgen.com wrote:
Yes, that would work if I used normal HTML forms (and I think
. Any idea?
Massimo
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
started web2py.py (I think it
contains the md5 password for administrator)
The option.py was created by me renaming options_std.py
because I want to test it, I don't chang anything in the option.py
file. Now is ok if it work fine on port 8000 in localhost
Cristian
2008/12/9 Timothy Farrell
I don't know
where I can find it)
2008/12/9 Timothy Farrell [EMAIL PROTECTED]
Is the port specified in
options.py port 80 or 8000? If it's 80,
you'll need to rename parameters_8000.py to parameters_80.py.
-tim
Cristian Re wrote:
Yes, starting it
That's cool. Hope you enjoy web2py.
-tim
Cristian Re wrote:
sorry sorry sorry,
I checked event viewer some minutes ago and I was writing you that was
my fault.
I continued to write a wrong name of the file options
Thanks a lot!
2008/12/9 Timothy Farrell [EMAIL
respond immediatly. It's correct?
timeout - ?
shutdown_timeout - ? (shutdown the service when there isn't
activity for more than xxx seconds/milliseconds?)
2008/12/9 Timothy Farrell [EMAIL PROTECTED]
That's cool. Hope you enjoy web2py.
-tim
Cristian Re wrote:
sorry
(with Denes improvements) is in:
db(db.table.id0).update(field=db.table.field[2:4])
and a couple of minor bug fixes.
Massimo
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received
library
to do it).
Massimo
On Dec 4, 1:04 am, somebody [EMAIL PROTECTED] wrote:
can I upload a folder / copy a whole folder to another directory??
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com
. How do you do it?
Thanks,
- tim
Timothy Farrell wrote:
Oh snap!
I've gotta go make a launchpad branch and merge my changes in. I have
already started something for this but fortunately our efforts don't
overlap much.
-tim
mdipierro wrote:
gluon/tests/test_dal.py
the test does
question.
I open a python shell and import the tests.
Massimo
On Dec 3, 8:25am, Timothy Farrell [EMAIL PROTECTED] wrote:
Massimo,
When you run unittests, which directory do you run them from. I typically run mine from the test directory, but i have a built-in path mechanism to be able
The branch (dal-testing-additions) is committed and I've proposed a
merge into devel.
-tim
mdipierro wrote:
ok, thanks.
On Dec 3, 9:21am, Timothy Farrell [EMAIL PROTECTED] wrote:
I do it like this:
import sys
import os
sys.path.append(os.path.realpath('../'))
import unittest
think about it?
Massimo
On Dec 3, 9:53 am, Timothy Farrell [EMAIL PROTECTED] wrote:
The branch (dal-testing-additions) is committed and I've proposed a merge into devel.
-tim
mdipierro wrote:ok, thanks. On Dec 3, 9:21 am, Timothy Farrell[EMAIL PROTECTED]wrote:I do it like this: import
pocoo.org/show/93469/
On Dec 1, 11:23am, Timothy Farrell [EMAIL PROTECTED] wrote:
Also note that your Genshi templates (views) must be valid XML. If they aren't Genshi will raise an exception.
There's a URL in
eas?
Many thanks
On Dec 2, 5:48am, Timothy Farrell [EMAIL PROTECTED] wrote:
Make sure that you're included file is also a proper XML file with the appropriate namespaces. The official method is explained here:http://genshi.edgewall.org/wiki/GenshiTutorial#AddingaLayoutTemplate
Let me know if
the book, but I feel the printer crop
marks are really annoying.
Is there any way to remove them?
--
$ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www
in a configurable manner. It should be
backward compatible with the old version.
Let me know if you run into anything.
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received
Also note that your Genshi templates (views) must be valid XML. If
they aren't Genshi will raise an exception.
There's a URL in the PDF of Genshi's Documentation website. It's ok,
but could use some attention. Feel free to ask me questions.
-tim
Timothy Farrell wrote:
The article
Processos do SISEMA
Secretaria de Estado de Meio Ambiente e Desenvolvimento Sustentável
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you
The manual is an excellent resource! Thank you Massimo!
Timothy Farrell wrote:
Oh snap!
/me runs out to the car to get his credit card.
Alexandre Miguel de Andrade Souza wrote:
I buy it too. So easy!
2008/11/18 mdipierro [EMAIL PROTECTED]
http
en','ascii'))}}
{{='$' + locale.format('%.2f',total,True)}}
is there a better way to do this in a file.html file?
thx,
-wj
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
Yo
hen do
respons.total += db.scholarship_amount. And then in my form do:
output
You are eligible for these scholarships:
{{=response.schols}}
You could receive as much as ${{response.total}} for the school year.
/output
Is this correct?
thx,
-wj
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewi
.
Is there an RPM to install SQLite 3 on a RH4 (x86) machine to cure
this problem??
--
Timothy Farrell [EMAIL PROTECTED]
Computer Guy
Statewide General Insurance Agency (www.swgen.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Actually, the example that Massimo mentioned also includes a
description of how it works.
-tim
mdipierro wrote:
Not yet since this as introduced by Tim in 1.48. You can find an
example in routes.examples.py in the source distribution.
Massimo
On Nov 13, 5:07 am, Jonathan Benn [EMAIL
c': "",
'file': torrent_file,
'type': type,
'subgenre' : subgenre
}
uldata =urllib.urlencode(data)
req = urllib2.Request(upload_url,uldata)
resp = urllib2.urlopen(req)
result = resp.read()
print result
I know, but it's not near so easy to install.
3 apt-get 3
Phyo Arkar wrote:
curl have win32 too :D
On Thu, Nov 13, 2008 at 9:28 PM, Timothy
Farrell [EMAIL PROTECTED]
wrote:
/timbo pulls out his stick of
non-portable code and beats Phyo with it.
Phyo Arkar wrote
My bad.
Per revision 190, see revision 165, the message that you replaced it
with is not quite what it was (small consequence).
Wouldn't it be more flexible to make a custom error message in
rewrite? Like so:
error_message_custom =
"htmlbodyh1Invalidrequest/h1%s/body/html"
That way we
Sorry, our email server has been down for a few hours.
Yup, that's exactly what I used it for on my end.
-tim
Mark Larsen wrote:
Duh!
It looks like his routes_onerror would do everything I need. My
customexception.py just becomes a controller method.
Thanks Tim Massimo.
On Nov 12,
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 at
http://www.wellbehavedsystems/web2py/examples/mvc.html
On Nov 11, 7:21pm, "Wes James" [EMAIL
In short, no.
What you can do is configure the route for the profile controller first:
routes_in=(
('/profile/(?Pstuff.*)', '/profile/\gstuff'),
)
And after that you can put the on in for main:
routes_in=(
('/profile/(?Pstuff.*)', '/init/profile/\gstuff'),
('/(?Pstuff.*)',
Note https://code.launchpad.net/~tfarrell-swgen/web2py/error-routing
revision 158.
mdipierro wrote:
yes please else we run into trouble.
On Nov 7, 7:50 am, Timothy Farrell [EMAIL PROTECTED] wrote:
Unfortunately, IE (still) doesn't display the HTML unless an status 200
Oops, nor Yarko, Phyo.
mdipierro wrote:
This was not a complaint. There was a proper acknowledgment.
I just would like to start a discussion whether this is a good idea or
not.
It may confuse people who look for the official repository. On the
other side it gives more visibility.
Massimo
I'm interested, you can send it to me off-list if you like.
-tim
Mark Larsen wrote:
Based on Tim Farrell's advice in a previous discussion, I've recoded
my system tray stuff using pyWin32 libraries (Mark Hammond had an
excellent example). While this means it'll only work on windows it
My experience with this was generally positive, but it has one rough
edge:
The option to restart the server is somewhat of a misnomer. People
restart Apache to get it to re-read it's configuration or to reclaim
some leaked memory. In the case of web2py, one might restart web2py to
get it to
voltron,
You are not alone in your thinking. T2 looks like it is designed as a
framework to build a social networking site or a better CMS than KPAX.
I'm taking the approach that there are two categories of features in
T2, those that would be better off in web2py core (error-handling,
Pmate,
There is no "perfect" report generation tool. ReportLabs is your best
option for today. I use Pisa (which is built on top of ReportLabs) for
my reports. Pisa basically converts a webpage into a report. (note
that the rendering quality is not what you would expect from Firefox or
IE,
For me, it's more work-friendly to use email. IRC is just too
attention consuming.
Phyo Arkar wrote:
We are usually active here on this mailing list and it is
preferable way to communicate.
On Tue, Nov 4, 2008 at 3:55 PM, Wes James [EMAIL PROTECTED]
wrote:
I connected to
I would start out making the values static (as part of your view). As
you get annoyed with editing them, put them in a database or make them
autogenerate. In any case, make sure your code is in version control
so you have a record of what values where there at what time for
auditing purposes.
I understand your need for patch organization. However, I cannot seem
to do this. I'm getting the 'Don't know how to handle SSH connections'
error. I've googled and tinkered but this seems to be beyond my
computer (lots of people have had trouble with bzr on windows). Would
it be acceptable to
Back to the ever-present issue of (better) error-handling. This time,
I've got code!
Anyway, to catch you guys up, we last left this at Massimo liking the
idea of using @onerror decorators
(http://mdp.cti.depaul.edu/AlterEgo/default/show/75) to trap errors.
His reasoning is his own, but I
.
Internally you can convert it to dict with dict(list).
Can you do it?
Massimo
On Nov 3, 9:48 am, Timothy Farrell [EMAIL PROTECTED] wrote:
Back to the ever-present issue of (better) error-handling. This time, I've got code!
Anyway, to catch you guys up, we last left this at Massimo
/*' and '*/*'. Also
this should be a list for uniformity with routes_in and routes_out.
Internally you can convert it to dict with dict(list).
Can you do it?
Massimo
On Nov 3, 9:48 am, Timothy Farrell [EMAIL PROTECTED] wrote:
Back to the ever-present issue of (better) error-handling
Just a cursory look at the code shows that web2py will not (yet) work in
Python 3. It will need to be run through the py2to3 tool and then it
will have to be a separate codebase since some basic operations (like
print formatting) don't work the same way in Python 3. Basically
saying, the
2) I can attest to it's rock solid stability on Windows.
mdipierro wrote:
answers for web2py:
1) fast website development times - yes but use T2
2) steady runtime - rock solid on linux and mac. I never reboot mine
except of upgrades. I get 1 requests/day.
3) good DB support = db
See my comments below...
noobpythoncoder wrote:
snip /
I Iike the tight MVC paradigm, security, and other good practices
built into web2py, but sometimes I wish there was a way to more
quickly prototype the front-end, eg test the functionality of SQLFORMS
in different views from a user
I'm laughing!
achipa wrote:
(this is the place where genshi/kid/django/etc people laugh their bottoms off)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send
What's happening is some database modules are not good Python citizens.
By this, I mean that they raise exceptions that don't inherit from
Python's Exception class. web2py only catches Exceptions. In the event
of an non-Exception exception web2py's behavior is undefined. I built a
wrapper
Well, didn't I jump the gun.
[EMAIL PROTECTED] wrote:
Massimo,
Oh, damn, nevermind, I screwed that all up. The error was actually in
my preceding delete call not the update_record and it was my screw
up.
Sorry.
New question though: is there anyway to delete directly (or more
directoy)
the live cd?
On Oct 28, 3:28 pm, Timothy Farrell [EMAIL PROTECTED] wrote:
I just said live CD because that's what came to mind, go OS first.
=)
Phyo Arkar wrote:
AH! Uncyclopedia! Entertains me.!
So which first? Live CD or OS
carlo wrote:
snip /
Did you look into gluon.sqlhtml.form_factory() which is described in
the book?
mmh..which book please?
THE web2py book:
http://www.amazon.com/Web2Py-Manual-DiPierro/dp/0470432322
even though you can get a DRMed eBook of it here:
To attempt to answer your original questions:
1) There is no such thing.
2) There is no such thing.
But to be more helpful...Java, in general, has a very sluggish startup
time. It is famous for it. In web2py, the Python interpreter is
already started so there is no need to Preload a web2py
instead of importing them, try executing them:
from glob import glob
for model in glob('applications/test/models/*.py'):
exec(open(model, 'rb').read())
voltron wrote:
Is there anybody that has coded a script that access a web2py
application and uses the form from the commandline? I just
Carlo,
I haven't eaten the T2 candy yet either.
Been there, done that. I'd encourage you not to submit to a different
function. It's tempting for me because it makes for smaller functions,
but I learned the hard way that this is not the way to go. I started
out with my login form that
I just said live CD because that's what came to mind, go OS first.
=)
Phyo Arkar wrote:
AH! Uncyclopedia! Entertains me.!
So which first? Live CD or OS ?
On Tue, Oct 28, 2008 at 8:21 PM, Timothy Farrell [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
That's the funniest thing I've
url into a GET variable?
On Oct 28, 3:19 pm, Timothy Farrell [EMAIL PROTECTED] wrote:
Here's the deal. Currently apache does serve these files directly, but
that is part of the problem (security).
We have some old PDF code that generates reports and slaps them in a
network folder. Due
I like this a lot. If Massimo agrees this could be the official
recommendation for CRUD operations via a RESTful URL interface. Such
concepts would have been helpful for me whenever I started into web
development since it would show me how to look at data manipulation.
Thanks for your effort
I can't comment for the rest of stuff, but the last zero means to return
the first item in the list. The select() call returns an SQLSet
instance (which is an iterateable(sp?) type). The [0] grabs the first
SQLRow out of that set.
-tim
annet wrote:
I have rebuilt the function from scratch:
That's fine, I (obviously) didn't look at the code. =)
DenesL wrote:
On Oct 23, 9:45 am, Timothy Farrell [EMAIL PROTECTED] wrote:
The select() call returns an SQLSet
instance (which is an iterateable(sp?) type).
Tim, sorry to nitpick here but actually select() is a method
Your question is somewhat ambiguous. Do you want to run web2py on the
iPhone or are you wondering if pages made in web2py will view correctly
on the iPhone?
According to Gizmodo, Python runs on the iPhone. If there is sufficient
threading and socket support then, Yes, you can serve webpages
application logic (e.g.
setting the status of the website to down for maintenance then
verifying that no users can access the site via login or otherwise) ?
On Oct 17, 10:25 am, Timothy Farrell [EMAIL PROTECTED] wrote:
Massimo,
I implied in my previous post, that I don't
to be documented..
Regards,
Phyo.
On Fri, Oct 17, 2008 at 3:02 PM, Timothy Farrell [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Regular Expressions would probably be more robust...but doing such a
large replace seems odd to me. If it were my code I would look for a
way around
voice style=fanboy
It's well documented on this list that I use and advocate YUI. If you
haven't considered it, at least give it a look.
The most important thing to consider about YUI is it's aim. Many JS
toolkits aim to make a better, faster Web 2.0 website. YUI's focus is
to provide a web
Tommy,
It depends on the database you are using. All databases (that I know
of) take multiple access into account, so you shouldn't worry about
concurrency until you have a website with more than one request per
second. With your python app, you can use the normal database driver to
access
Keep in mind that selecting based on like can be a resource-intensive
process for large tables (you have to examine every record rather than
look at an index). They probably left it out until they saw what kind
of load they would be dealing with on GAE. Plus, Google uses a
distributed file
I tried it last week, but found out that reportlabs hadn't come out for
2.6 yet (it has now, but I'm in other things) and since I use that, I
couldn't invest much time in making 2.6 work. The windows service
doesn't yet work.
The widget works out of the box for me, although it comes up with
from 2.5, that can lead to weird problems.
[EMAIL PROTECTED] wrote:
Dear Tim;
Thanks!
I am wondering , as i started with 2.5 of python. If i copy
site-packages of 2.5 over 2.6 , will there work without problem ? or
need to recompile ?
On 10/14/08, Timothy Farrell [EMAIL PROTECTED] wrote
You could use reload, but that's going away in Python3 and considered
bad practice (though I'm not sure why).
mdipierro wrote:
when in development you can use
reload(modulename)
then comment it in production for speed.
Massimo
On Oct 14, 3:01 pm, José Deodoro de Oliveira Filho
Bill,
I crossed this bridge a few weeks ago. I, like you, don't dig the whole
presentation logic in the controller. However, it is still reasonable
to build a form in the controller for logical data-handling purposes.
Here's what I did:
# Build our form
form=FORM(INPUT(_type=text,
succeeded, continue
except formencode.Invalid, e:
# Validation failed, see messages in e
message = e.message
Bummer (for FormEncode) that form.accepts is so much cleaner than the
FormEncode version. Maybe I'll wrap it into a nice pretty package.
-tim
Timothy Farrell wrote:
Bill,
I
201 - 287 of 287 matches
Mail list logo