://sensepost.com.
I'm sorry about this, I hope this won't cause you too much trouble.
--
Ian Bicking | http://blog.ianbicking.org
--
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group, send email to turbogears-tr
this
problem. OpenID with a provider that uses SSL solves these problems and
others.
--
Ian Bicking | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post
Mark Ramm wrote:
Ha, that's two forks this week:
http://www.openplans.org/projects/topp-engineering/blog/2008/09/24/pyinstall-a-new-hope/
A reimplementation, really -- there's no shared code.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
particularly happy with any I saw, so I'm afraid I have no advice on that.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group
() and then
modifying it, where params.mixed() gives you the string-or-list values
that you want.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears
, and
probably the way to get it in properly would be to have Genshi add it in
itself during serialization, rather than try to preserve it through the
transformations. It might already have an option to do that.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
,
but just reading this code leaves me feeling confused -- where are you
mounting things, what does make_app return?
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed
facilitate linking back to
TG or Pylons documentation in a comfortable way.
[1] http://www.dubita.com/pub/GSoC2008_BrunoJMMelo.txt
Ack, no word wrap!
Did you read Zed Shaw's recent post on docs? Seems like he's thinking
about similar things.
--
Ian Bicking : [EMAIL PROTECTED] : http
on the current
version of docs, or maybe on the devel version so long as there a
warning to indicate what's appropriate to comment on, and a warning that
comments are quick to get out of sync in that situation.)
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
the navigation exactly consistent, but
maybe close enough?
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group
might be misunderstanding something but isn't it possible to zip a
whole package into a single egg file and thereby reducing the file
count dramatically?
App Engine doesn't support zipimport.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
Greg Wilson wrote:
I've been teaching and developing with Python since 1998, and using
TurboGears for about two years on a couple of projects (an online grading
tool and a reverse testing oracle). My students have enjoyed working with
TG, and I'd like to help make it more attractive,
Well, here's my thoughts on an association, and what I'd fine useful.
Maybe other people have different priorities, I dunno.
First, who is in the association? I don't see it as an exclusive club,
but the simple task of making a list of maintained packages compatible
with this Not Really
Jonathan LaCour wrote:
Mark Ramm wrote:
The fact that TurboGears turns incoming request prams into
controller function params seems intuitive and smart to me. But
there are some limitations:
* Function params must have asci string names
* Function params can have only one value
I
Kevin Horn wrote:
On Jan 19, 2008 11:18 AM, Mark Ramm [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
The reason I'm thinking about this is that one of the complaints I've
heard about Pylons is that it is difficult to upgrade from one version
to the next because so
Mark Ramm wrote:
We would make the tg-dev package the thing which we tell people to
install on the TurboGears.org page, and it would of course depend on
TG directly.
I don't think this will work well. If tg-dev and tg have different
release cycles, there's no good way to indicate what
Mark Ramm wrote:
The current version of the TG2 trunk is not Python 2.4 friendly due to
the fact that Python 2.4 can't use new style classes as exceptions.
And since we finally made everything work with webob (Hooray!!!) I
discoverd this evening that webob's exceptions are all newstyle
classes. :( But feel free to use 2.5, as it works like a champ
there.
You can raise exc.HTTPNotFound().exception, instead of just
exc.HTTPNotFound(). It's a little awkward, I'm afraid, but workable.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
#translogger has its own logging setup, as
all it does is log stuff so the configuration seemed particularly
apropos to that piece.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed
then it's not a test request).
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk
(or HTTPAuthenticationRequired), maybe based on
environ['webauth.user_info']['groups'], or... well, whatever. Writing
permission-checking code should be very easy.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message
.
These kinds of techniques should be simpler to implement than actually
supporting the old forms (and any bugs in that support, etc), and will
also probably save a lot of time for developers who port stuff.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
then populates it with the
packages you want. There's some examples on the PyPI page for virtualenv.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears
has, but I'm guessing it could
allow for useful overlap between the projects (e.g., dynamically
including the Pylons hg page into a TG context).
James Gardner runs the server it's hosted on, if you want to ask about it.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
` is a built-in).
app_globals?
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe
Jonathan LaCour wrote:
Ian Bicking wrote:
BTW, repoze has a transaction middleware. It still has some
Zope bindings which would have to be broken out (exceptions,
I think), but would probably be a good starting point, and
probably there's a way to keep stuff on the same codebase:
http
was removed a while ago, but TG used to have it as a
requirement as well, as it was using it internally for generating some
of its files.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you
On Oct 22, 6:01 am, vimal [EMAIL PROTECTED] wrote:
#to check whether a given email id is correct
import formencode
from formencode import validators
pattern = validators.Email()
email_id = [EMAIL PROTECTED]
try:
if pattern.to_python(email_id):
return True
except:
also something generic to do easy whole-dict
validation would be quite helpful.
Do people have classes or recipes they've written that are general
enough to include directly in FormEncode? If so, please contribute!
Realistic examples in the docstrings will be very helpful.
--
Ian Bicking : [EMAIL
corner things I want to add.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
: Write code, do good : http://topp.openplans.org/careers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Jul 18, 7:21 pm, Mark Ramm [EMAIL PROTECTED] wrote:
Seems like this is a discussion to move to trunk :)
Yea, it all depends on the size of the controller object.
It all depends on the size/complexity of the controller's __init__
method. Instantiating a class isn't particular expensive,
.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
: Write code, do good : http://topp.openplans.org/careers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post
based on something. E.g.,
skip_template(model!='SQLAlchemy') in a SQLAlchemy-based file.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
--~--~-~--~~~---~--~~
You received
that the
middleware doesn't futz with it anymore.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Ben Bangert wrote:
On Jul 2, 11:10 am, Ian Bicking [EMAIL PROTECTED] wrote:
And have multiple flashes keyed at once.
That seems weird to me... what purpose does the key have? Just so you
can clear the key with flash['login_msg'] = None ?
No, clearing the flash is handled automatically
Jorge Vargas wrote:
On 7/2/07, Ian Bicking [EMAIL PROTECTED] wrote:
Jorge Vargas wrote:
Hi I just notice two things that got imported into trunk and I had to
post something.
tg-admin and quickstart templates where the two of the most horrible
parts of the original TG.
tg-admin grew out
to get
something nice (no frames, better stylesheet, etc), and I don't think it
has anything for stand-alone documentation. And I definitely want a
toolset that does both generated and hand-written docs, with crosslinking.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
., after as much as
possible is setup). You could possibly do it, for instance, immediately
before the controller method is called.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
into that, as the output looks quite good.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
this in middleware is to put a transaction
container into the environment. Basically a fancy list that people can
append to. Then on the way out, commit all the objects in that list
(typically framework-specific transactions).
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
I didn't really mention anything one way or the other before, but I
thought I would note that RhubartTart provides a upgrade path to
WSGIness that does quite well at supporting all the relevant (to
TurboGears) parts of CherryPy. Anyway, just thought I'd throw that out
there.
--
Ian Bicking
outside of experiments yet because
I'm still heavily refactoring it.)
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post
'] = raw_return_values
# in the test:
res = app.get('/something')
assert res.raw_return_values == {some values}
This exercises the complete stack including template rendering, but also
gives you access to whatever intermediate values you are interested in.
--
Ian Bicking | [EMAIL
is avoided.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
to the configuration file
format.
I'm not sure how to compare this to CherryPy's configuration, as I don't
really know what the most core or essential part of CherryPy's
configuration is. Perhaps you could shed light on that.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
deployment strategy with Deliverance. This just uses
paste.proxy, and some glue code in WSGIFilter.proxyapp
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Kevin Dangoor wrote:
On Dec 13, 2006, at 10:47 AM, Ian Bicking wrote:
Will it cause any problems in TurboGears if Paste Script stops
requiring
Cheetah in the next release? I don't think that you are using Cheetah
in your project templates, but I'm not clear on that. If Paste Script
implicit in a doctest).
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk
]
class MySchema(Schema):
pre_validators = [RenameField('email', 'user_email')]
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears group
Gregor Horvath wrote:
Jorge Godoy schrieb:
Ian Bicking [EMAIL PROTECTED] writes:
I'm wondering how the releases should work. An update to a translation
doesn't really warrant a new software release, and releases of
FormEncode are otherwise going to be uncommon. Should the translations
):
[]
gettextargs = {}
[...]
That would be fine, but for this case we might also just put
gettext_domain='FormEncode' into the class too, no? It seems
reasonable to set the domain to 'FormEncode' by default.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
Gregor Horvath wrote:
Ian Bicking schrieb:
That would be fine, but for this case we might also just put
gettext_domain='FormEncode' into the class too, no? It seems
reasonable to set the domain to 'FormEncode' by default.
yes, but the standard gettext function does not accept a domain
that they are only modestly interested in, but I don't
think it is currently general enough otherwise.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
= egg:Paste#grantip
192.168.0.0/24 = local_admin
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears group.
To post to this group, send
for the import problem :-/ -- though a clever middleware could
probably set multiple threadlocal's to match the environment, with the
only interaction through a key in the environment itself.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from
-to-end tests for real applications, built on
things like twill or Selenium, are the best way for TG to really ensure
backward compatibility.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because
.
I've experimented with automatically modifying files instead of writing
new files (Paste has some support for this), but I find this hard to
maintain. Python just isn't the kind of language where you can safely
modify source in an automated way.
--
Ian Bicking / [EMAIL PROTECTED] / http
be kept separate, so I kind of like if they use two
different syntaxes.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears group.
To post
Mike Orr wrote:
On 3/7/06, Ian Bicking [EMAIL PROTECTED] wrote:
At least in Paste there is no global middleware stack, instead you set
up a fairly specific stack that can potentially be more complex than
just a linear top-to-bottom. Well, *usually* is more complex.
You can have a non
in a repository.
C'mon people, version control is your friend! But yeah, if it is still
causing people problems that'd be fine.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--~--~-~--~~~---~--~~
You received this message because you
Ian Bicking wrote:
Elvelind Grandin wrote:
Well. The problem is that the actual code is not in tg but in pasterscript
On 2/16/06, nederhoed [EMAIL PROTECTED] wrote:
Or make B the default?
I guess I don't see any problem with defaulting to backup. I guess I
don't notice these things
CherryPaste, or
just putting it in place manually so long as you are only running
locally (where the app is mounted at the root, and the
SCRIPT_NAME/PATH_INFO issues won't bite you).
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
like straightening out the cache situation,
transactions, eliminating the naming conventions, polishing
sqlobject-admin's rough edges.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
have
problems in different ways :(
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
more than is typical in the current batch
of applications, without having to build every bit of generalization in
from the start. Some of the things allowed are redundant with things CP
already does (e.g., with filters); but there really is more to it than that.
--
Ian Bicking / [EMAIL
has a hard time working
with.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
a wiki for document contributions, so I'm mostly trying to
ignore Trac's wiki.)
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
-root
installs (some aspects of which are complimentary with develop), but for
your case develop is the right option.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
to participation. It does *not* have good marketing, and
definitely has some crufty parts because it is relatively old. But I
these are also relatively shallow problems.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
Paste
Script release shortly.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
://www.phyast.pitt.edu/~micheles/python/documentation.html
Last I looked it could use some packaging work (no setup.py).
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
it to .render()).
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
of the version numbers
and maybe package names are handled, to minimize confusion, but I don't
think it should be too much of a problem. Especially if we can sync
everything up when a TG version is actually released.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
that goes.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
goal.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
then at least it would be
HTTP-API compatible with Frederik's work. And I think one thing we all
share in common is that we care almost solely about HTML output, and
don't really care about PDF or whatever.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
release soon. To install the stable bugfix
branch, you can do:
easy_install SQLObject==bugfix
Or check out from http://svn.colorstudy.com/SQLObject/branches/0.7-bugfix
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
registry, but that's even lamer.
Give each class its own name. You can create classes with dynamic names
using the type() builtin. type(class_name, (SQLObject,), {attrs})
You can also modify classes on the fly with sqlmeta.addColumn and
related methods.
--
Ian Bicking | [EMAIL PROTECTED
a concept of a search path. It shouldn't
be implemented purely on the frontend, because all templates (including
included or extended templates) should be found with the same mechanism.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
Kevin Dangoor wrote:
On 1/18/06, Ian Bicking [EMAIL PROTECTED] wrote:
I would like the interface to be suggestive of the features the plugins
should implement. If people want to make reusable applications at all,
this should be considered a bare minimum feature for that.
I'm sold that we
want a different search path for
different engines they're using anyhow.
I would like the interface to be suggestive of the features the plugins
should implement. If people want to make reusable applications at all,
this should be considered a bare minimum feature for that.
--
Ian Bicking
with the modules either.
* I'm confused what the purpose of .load_template() is. Or what it
should return.
* Where is the TurboCheetah repository? Can you put an svn link (with
#egg=TurboCheetah-dev) on the cheese shop page?
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
,
self.extension))
The package here is actually a distribution name, and isn't related to
Python packages. This further muddles the use of module-like names for
templates, as you can't dot a distribution name with anything.
--
Ian Bicking | [EMAIL PROTECTED
that suggests how to upgrade.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
this to be a standard thing that plugins should
support. I'm not quite clear how, say, the stan plugin works, and maybe
a search path wouldn't work there. But for most it should work, and I
consider it a very important feature so I'd like it to be consistent.
--
Ian Bicking / [EMAIL PROTECTED
Ian Bicking wrote:
In order to test CherryPaste in a realistic situation, I'd like to test
it against a real application. Is there an application someone could
recommend that has a good set of tests? HTTP-based tests are best, but
CherryPy tests are okay too (I'd have to rewrite
Kevin Dangoor wrote:
On 1/13/06, Ian Bicking [EMAIL PROTECTED] wrote:
In order to test CherryPaste in a realistic situation, I'd like to test
it against a real application. Is there an application someone could
recommend that has a good set of tests? HTTP-based tests are best, but
CherryPy
, but
that's still easier than writing my own tests). Something written
against the TG trunk would also be best.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
and change the from distutils.core import setup line to say
from setuptools import setup
I think you can do something like:
python -c import setuptools; execfile('setup.py')
Using that you can run any setuptools command, e.g., develop.
--
Ian Bicking / [EMAIL PROTECTED] / http
to know that. Though I
suspect there may be some configuration issues... is TG still using
CherryPy's configuration, or is it starting to handle that on its own?
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
Kevin Dangoor wrote:
On 1/11/06, Ian Bicking [EMAIL PROTECTED] wrote:
Kevin Dangoor wrote:
Jeff has designed an identity API that is amazingly user friendly for
common cases. I would like to brainstorm a bit on how this API might
be tweaked to use RuleDispatch syntax which would provide
Kevin Dangoor wrote:
On 1/11/06, Ian Bicking [EMAIL PROTECTED] wrote:
I had not seen that, thanks for noting that. Added myself to CC as
well. As I look through the CherryPy code, maybe it would be possible
to figure this out with a sufficiently magical cherrypy.root object,
though I
Ian Bicking wrote:
Bob Ippolito wrote:
They probably use cgitb[1] from standard python distribution. It
could be
nice to integrate it to TG too...
What we should do is this:
http://blog.ianbicking.org/ajaxy-exception-catching.html
This will require some WSGIish work on CherryPy
from SourceForge.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
-in, or any communication is in
the form of the request itself. There's no monkeypatching, while in
contrast the start/shutdown/create interface can only function through
monkeypatching.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
Kevin Dangoor wrote:
On 12/29/05, Ian Bicking [EMAIL PROTECTED] wrote:
I think I meant the upgrade command documentation is coming; the command
is there now. I advise using sqlobject-admin record --edit (or
whatever tg-admin wraps that as) and entering your ALTER statements. It
will record
Kevin Dangoor wrote:
On 12/30/05, Ian Bicking [EMAIL PROTECTED] wrote:
That's one nice thing about the Rails migrations. They're database
independent, whereas a bunch of ALTER statements likely isn't...
How do they do that?
Anyway, right now you can provide multiple upgrade scripts
. In the absence of an upgrade SQL script, the upgrade command
won't work.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
1 - 100 of 184 matches
Mail list logo