Hi there.
The fundamental issue with development on Windows is that is does not come
with a built-in C/C++ compiler. When you easy_install pysqlite, for example,
it sees that there is not a prebuilt windows binary egg file so it grabs the
source archive and tries to compile it. On most Unix
Hi there,
I has TG running on suse 10.2 and it works just fine. While I do speak
French, I have not yet had cause to code any accented characters in a TG app
on suse yet.
I suspect, however that that your issue is not a TG problem. Do regular
python scripts with accented characters in the
Unfortunately my code is not online yet. I have not had time to prep it for
release. (Or even work on it much at all, for that matter).
Florent's TurboBlog code looks good, though. I think you can accomplish your
goals by using it as an example.
Best of luck,
Krys
On Sunday 3 June 2007
, I'll get my code out the door so that it can benefit more and just
me. Just need a chunk of time to dedicate to it. :( All I can do right now
is throw out ideas.
Anyway, hope this helps.
Krys
On Saturday 2 June 2007 16:38, iain duncan wrote:
On Sat, 2007-02-06 at 08:29 -0400, Krys Wilken
Hi Sam,
You are right that if TurboLucne just returned the hits collection then your
could just use the data from the index. When I originally wrote that bit of
code it was with the idea that I wanted to get back the actual model objects
that match, not just the data. It is an assumption,
Hi Sam,
I understand what is happening here.
TurboLucne is, in fact indexing all your fields, but by default it only
searches the fields listed in the turbolucene.search_fields configuration
setting (which default to just id). You need to either specify the fields in
your search query
Hi asm,
Good doc. :)
TinyMCE is indeed a decent way to let used input HTML. However, I do not
believe it functions well as a validator, as you can still enter any tags in
the raw HTML window, or if you turn JavaScript off.
Combining TinyMCE for UI, with an actual validator (for
Hi iain,
The second one is definitely easier to do in CherryPy, but the second one is
possible. The way I did it was to create a custom default method that calls
the real methods with the parameters sorted out.
I also used the default method as a opportunity to convert the number 7 into
the
Hi there,
You could parse the input with elementree or beautifulsoup and then filter out
all tags except the ones you want. You could wrap all that logic up in a
validator. This is what i did for my blog. Not sure if it is the most
efficient, but it's a sure bet more maintainable than
Hi there,
It seems that SQLAlchemy has support for Oracle. Alternatively you could use
a Python Oracle module and just use SQL query strings.
There is nothing is TurboGears that limits how you choose to interact with
your database.
That said, I have not personally touched Oracle in Python
On Thursday 31 May 2007 01:47, asm wrote:
Hi Krys,
Hey. :)
Thanks for this; I will take a closer look.
I hope it helps. :)
Have been contemplating a widget based around wymeditor which seems
very interesting. If I had more time it would be good to adapt the
TinyMCE widget to handle
Hi there,
tg-admin has a --egg=foo parameter that you need to give when your project is
installed as a egg. That way it will know where to get your model data.
I have not tried it yet, but it is in the --help message, so that is what I
assume it is for.
Hope this helps,
Krys
On Wednesday
/simpleshelfdata/simpleshelf_prod.cfg
--egg=simpleshelf==0.4.1 sql create
And received the same ImportError: No module named setup message.
On May 30, 3:54 pm, Krys Wilken [EMAIL PROTECTED] wrote:
Hi there,
tg-admin has a --egg=foo parameter that you need to give when your
project
On Tuesday 29 May 2007 10:31, johnbraduk wrote:
Thanks for that tip, it looks as if it will be easier than I thought
to continue with
the low level database routines that I know work with Firebird/
kinterbasdb.
John
You are welcome.
Though, if you ever feel so inclined, I'm sure helping
Hi everyone,
Just wanted to say that TurboLucene 0.2.2 has just been released. It is
just a bug-fix release, but it has also been tested with TurboGears
1.0.2.2, PyLucene 2.1.0-2 and Python 2.5. Python 2.4 is, of course,
still supported as well.
There are 2.4 and 2.5 eggs, as well as the
Hi everyone,
I would just like to announce that TurboLucene 0.2 has finally been
released.
For those of you who do not know, TurboLucene is an extension for
TurboGears that provides a simple API to do full-text searching in your
application. It does this using the Lucene search engine, thanks
Hi Rick,
Would you be willing to share your wget script/command line?
In any case I'll see about setting up another mirror tomorrow. I need
to sleep now.
Thanks in advance,
Krys
Richard Harding wrote:
Richard Clark wrote:
The docs site is only about 1mb from my tests, probably the best
I can probably host a mirror. Not sure now to mirror MoinMoin, but I am
willing to figure it out.
One question though, are there any stats on how much bandwidth and
server space docs.turbogears.org uses?
Thanks,
Krys
Kevin Dangoor wrote:
On Mar 10, 2007, at 3:39 PM, iain duncan wrote:
On
Hi everyone,
I am pleased to announce that TurboLucene now has API documentation,
courtesy of Epydoc.
You can find the API Reference at:
http://dev.krys.ca/downloads/turbolucene/api/
As always, feedback is most welcome. :-)
If you do not already know, TurboLucene is a library for TurboGears
Well, I finally got around to writing up some documentation for
TurboLucene. I've been in a bit of a lethargic state lately, so it's
nice to see that that is passing. Anyway...
I have written (and coded) a TurboLucene tutorial. In it we add
full-text searching capabilities to the TurboGears
Hi Sean,
Thanks again for the help.
You are correct, the paste was wrong. The file does say log_dir.
As for the 2 logs files, they both exist but are 0 bytes each.
So the service installs correctly and seems to start correctly. The
browser is left waiting for a response that never comes.
Hi Sean,
Sorry for taking so long to reply. I fell of the earth for a while. :-)
And no probs about Marvin vs Krys. :-)
So to answer your question, my controllers.py file's full path is
c:\marvin\marvin\marvin\controllers.py
um.. let me explain...
c:\marvin is the folder that holds all
anders pearson wrote:
one general purpose slugification routine may not be the best solution
though. some applications will have specific requirements. i've worked
with the journalism school here and they sometimes require a slug to be
in a specific format like
Exactly. A general helper, nothing fancy. If you don't need it, then
don't use it, but having it there would be convenient for more than a
handful of people, I would imagine.
Krys
Kevin Dangoor wrote:
On 07 Dec 2005 10:36:28 -0200, Jorge Godoy [EMAIL PROTECTED] wrote:
Ah! Then it is a
Hi Sean,
I just found your wiki page. Great job! :-)
I tried out your code, but I have a problem. The service installs and
starts alright, but when I try to browse to my site, nothing shows up.
More specifically, The request is sent and then the browser is just left
there waiting. It does
Even if TG just provided a slug validator, that would help.
As you say, Ian, can just use alternateId = True from the model perspective.
What makes a slug field interesting is the validation/auto text processing.
Hmm... Now that I am thinking of it, a slug could be viewed simply as a
regexp
Django has a slug field with is similar.
From the site:
SlugField
Slug is a newspaper term. A slug is a short label for something,
containing only letters, numbers, underscores or hyphens. They're
generally used in URLs.
(http://www.djangoproject.com/documentation/model_api/)
I believe
hosted sites, and those all in
the last few days.
I set one up at work and it has been rock solid, but it has also not
been hit very hard at all, so that's probably not a very good
indicator of stability in a high traffic environment.
--Mark
On 12/2/05, Krys Wilken [EMAIL PROTECTED
Hi,
I'd use the service for production but use the normal xyz-start for
development.
I think getting the server to automatically restart might be a bit of a
chore and will definitely take longer than the existing reloading method.
This is my thinking.
Krys
[EMAIL PROTECTED] wrote:
The
Hi,
I am thinking that it might be good to start a TG users or TG success
stories page in the wiki. A list of sites we can show off, maybe some
quotes from the people whom have said TG is great/thanks Kevin, et al.
Unfortunately, I do not have the time to contribute. Sorry.
Anyone want to
This is what I was thinking, but can you switch, on the fly, between
lazy and non-lazy updates?
The docs say that you can specify when defining your class that you want
lazy updates (the default being non-lazy).
I suppose you could change the class definition before instantiating the
instance,
the whole
thing all over again.
Basically this will just work like a non-root install for all the
packages. Or at least, that is how I am envisioning it. (And providing
I even go ahead with this.)
Thanks again. This will help. :-)
Krys
Phillip J. Eby wrote:
Krys Wilken wrote:
I've been
On 14/11/05, Krys Wilken [EMAIL PROTECTED] wrote:
I've been mulling over the idea of an all-in-one
Python+TG+SQLlite+PostgresSQL+Apache windows installer (a la
Plone). It
could contain a self-contained python with all the necessary
site-packages to run TG and a directory structure for TG
All I can say is... I want this!
Very nice!
Keep going this way and TG is gonna kick the snot out of Django and
Rails! (Maybe we can even take down the mighty Zope!) ;-P
Krys
Ronald Jaramillo wrote:
Hi,
This may be relevant for those of you planning to join the chat tomorrow.
I'm not
Hi,
(Sorry for slow replies, I am quite behind on my e-mails.) :-(
Sorry if this is a dumb or already hashed out question, but I seem to
remember reading in the SQLObject documentation that you can use lazy
updating. You just tell you model (I think) to do lazy updates, and
then it's up to you
Hi,
Yeah, it's scheduled of SQLObject 0.8. I don't know about the CVS though.
Krys
Sean Cazzell wrote:
Randall,
I think MS SQL support is currently only in SQLObject CVS. See:
http://www.sqlobject.org/News.html#sqlobject-0-8-0
Sean Cazzell
On Thu, 2005-11-03 at 16:49 -0800,
Hi Kevin,
This sound good to me. My validation_error code basically does just
that. It converts the errors list into a dictionary and calls the
original method with an extra errors argument.
But, of course, that is just a hack. You way is better and more integrated.
That said, while I do
I seem to remember seeing this in Django too, but I could be wrong
(might have been Quixote or Myghty).
That probably does not help, though. :-(
Krys
Tim Lesher wrote:
Server: FreeBSD 6.0, Python 2.4.2, CP 2.1
Client: WinXP SP1, Firefox 1.07
I'm seeing a consistent hang in CherryPy when a
it happen. Did you find that champion? :-)
Thanks a bunch Ian.
Krys
Ian Bicking wrote:
Krys Wilken wrote:
Hi,
Yeah, it's scheduled of SQLObject 0.8. I don't know about the CVS though.
There's a patch to backport it for 0.7.1, but I haven't been able to
apply that yet.
Hmm... I just had a thought.
If you tagged each TG release, along with the specific tagged version of
it's dependencies, would a SVN checkout of a given version be an easier
distribution method than eggs?
SVN as the primary distribution method. SVN vs eggs vs tar balls. Hmm...
Just some
I've been mulling over the idea of an all-in-one
Python+TG+SQLlite+PostgresSQL+Apache windows installer (a la Plone). It
could contain a self-contained python with all the necessary
site-packages to run TG and a directory structure for TG-based apps.
At my work, our net connection is heavily
Excellent!
I will play with it as soon as I can.
Thanks Ian!
Krys
Ian Bicking wrote:
Krys Wilken wrote:
Oooohh.. :-) Shiny!
I'd be willing to give it a try. We use MS SQL at work, and selling
TG would be easier if I can tell them we can use our existing
infrastructure.
If the patch
Ah. So I can defer the updates, but not inserts or result sets from
queries. Is that it?
Krys
Kevin Dangoor wrote:
I've seen a few people ask about lazy instantiation, which is not
covered by that feature.
Kevin
On 11/13/05, Krys Wilken [EMAIL PROTECTED] wrote:
Hi,
(Sorry for slow
Hi,
I've run into this before too.
The quick fix is to restart the cherrypy server. The longer term fix is
to have that chunk of code do a hub.rollback() if there is an exception.
It only happened to me once, though, so I just restarted and forgot
about it.
Hope this helps,
Krys
william
As I recall, Django does give both options and can be confusing.
I went from Django to turbogears, and personally, SQLObject is much more
intuitive and more pythonic.
While there may be features in Django that we might want to look at,
(auto-crud, generic views (generic controllers and
Hi Michelle,
I just though I'd throw in my 2 cents.
It is easy enough to convert a module into a package (i.e. directories)
but creating the directory and moving the original file into it,
renaming it to __init__.py. No code changes are needed, but now you can
create other controller modules,
Agreed, Welcome to Python and TG! :-)
I'd also point out that because TG is made up of other projects, that
reading the documentation for those other projects would likely be
beneficial. I know that my previous CherryPy knowledge, for example,
has helped me with using TG. And I only grokked
:
On 10/22/05, Krys Wilken [EMAIL PROTECTED] wrote:
I wonder what the Linux kernel guys have as actualy wording for their
document that is like this. Maybe TG can benefit from asking
about/reading their document.
The Linux kernel DCO is at
http://www.osdl.org/newsroom/press_releases/2004
feedback and if others can benefit form my
code, then that makes me happy.
Hope this helps,
Krys
P.S. Mind if I post this message to the TG mailing list?
John Miller wrote:
Krys Wilken wrote:
For my project I just created a couple tables, Users and Roles and built
a very simple authentication
This one exists in 0.5 as well, I was going to mention it.
You need to have a def validation _error method as the TG code works for
that case but the if the method does not exist, the default raise a
traceback code is missing arguments. I never bothered to figure out
the fix, though. I just
I agree completely.
In my project my validation_error method has to do just that: recall the
original method with all arguments + and errors argument.
This seems the best approach and the code is fairly boiler plate. It
would be nice to see this as the default behaviour in TG.
Krys
[EMAIL
I like this.
I think groups are useful for organizational purposes on larger scale
apps, but roles is a better conceptual idea for permission assignment
and requirement.
I actually like Zope's User, Group and Role 3-way system, complicated
though it is. it's great for large scale systems like
It might be worth noting that easy_install.py -f . (note the period,
i.e. current directory) works. -f can use local paths as well as urls.
At work we have MS Proxy (NTLM auth) and McAfee WebShield, so
downloading anything is a royal pain. I really like setuptools, but
having a download and
Ian Bicking wrote:
[EMAIL PROTECTED] wrote:
[snip]
If validator_error is defined, if will be called with the first
parameter being the original function(the one that turbogears.expose
supposed to be decorating).
While the documentation said I can do whatever I want, I think it would
be
been played with Zope and
Twisted?) :-)
Krys
Fabian Neumann wrote:
Krys Wilken wrote:
I think both ideas are of value. An exec command for running scripts,
and a special module-level function in model.py that is run
automatically by sql create.
I might like it, too. What do you think
Exactly. Validation errors are not usually programming errors. They
are usually user input errors. Telling the user that they have inputted
invalid data should be simple and intuitive. A separate method for
error handling is not intuitive to me. :-)
Krys
[EMAIL PROTECTED] wrote:
To me it
I ran into this too.
I don't know if the behaviour is a bug, or just if we are
misinterpreting the intended purpose of flash.
How flash works is to set a cookie which is sent to the browser. The
message only gets displayed when the cookie comes back from the
browser. The cookie is then
Interesting idea. :-)
I am unsure what benefit it provides over just say just having an extra
errors=None argument on the original method. I'd love to hear your
thoughts on it though. :-)
It seems to me that that there are two simple ways of handling
validation errors:
1) Adding an
What I like to do is add *args and **kwargs to controller methods,
precisely for that reason.
e.g. def index(self, expected_var, ..., *args, **kwargs):
That way I catch any extra argument passed in and I can either ignore
them or present the error in a friendlier way.
Not sure if there are
Hmm... I haven't started using Ajax in TG yet, so I had not thought of
that. Since I am planning on using ajax, I had better figure out what I
am going to do. :-)
Thanks much.
[EMAIL PROTECTED] wrote:
I use the same approach(decorator on selectioned url links). The login
form is just a
Heh. I probably skipped that part since I already had python installed. :-)
Krys
Kevin Dangoor wrote:
On 10/5/05, Krys Wilken [EMAIL PROTECTED] wrote:
I know that ActivePython puts the python folder in the path, but not the
scripts folder. It also sets up an association for .py files
For my project I just created a couple tables, Users and Roles and built
a very simple authentication system consisting of 2 decorators,
require_login and require_role. This meets my needs right now, as I
prefer form-based logins over http password pop-ups (basic and digest).
However it would
Hi,
I did a similar script, but I use trickiness and imports to get the
context. :-)
I like you way better, so I vote +1 for this idea.
Krys
xtian wrote:
I've been playing around with my data model, making changes to the
structure, dropping and recreating tables, and I've found it handy to
63 matches
Mail list logo