[TurboGears] Re: Please help debug this toy doXHR MochiKit call...

2008-01-21 Thread Bob Ippolito
On Jan 21, 2008 12:45 AM, wavydavy [EMAIL PROTECTED] wrote: On Jan 20, 10:54 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to get the client to send data to the server with this MochiKit/Javascript function (I got latest SVN source for MochiKit that has doXHR.)

[TurboGears] Re: Mustn't/Shouldn't MochiKit's doXHR function default to POST not GET?

2008-01-21 Thread Bob Ippolito
On Jan 20, 2008 11:03 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In my limited beginner's understanding of REST interfaces and HTML, I'm told it is proper to *pull* data from server with HTML GETs and to *push* data to server with HTML POSTsis that right? If yes, then how come

[TurboGears] Re: iPhone applications

2007-06-13 Thread Bob Ippolito
On 6/12/07, Diez B. Roggisch [EMAIL PROTECTED] wrote: Noah Gift schrieb: Anyone thinking about writing something for the iPhone in Turbogears? Will that work? I doubt it. The Apps will be like the dashboard-widgets in OSX. That is Safari-based rendering with special JS-Objects for system

[TurboGears] Re: iPhone applications

2007-06-13 Thread Bob Ippolito
On 6/13/07, Lee McFadden [EMAIL PROTECTED] wrote: With something like Google Gears a web based iPhone application could be taken offline if it's supported. I can't see there not being something similar (if not Gears itself) to handle those times when you don't have any connectivity. The

[TurboGears] Re: iPhone applications

2007-06-12 Thread Bob Ippolito
On 6/12/07, SamFeltus [EMAIL PROTECTED] wrote: Doesn't the iPhone have Flash, and if so, what version... No. Don't see many iPhones in Mississippi on the Redneck Riviera... Or anywhere else for another 17 days. -bob --~--~-~--~~~---~--~~ You received this

[TurboGears] Re: Javascript Hijacking

2007-04-03 Thread Bob Ippolito
Not really. That exploit only applies to people returning arrays from server-side stuff and has absolutely no implications whatsoever for client-side toolkits such as MochiKit. It's mostly FUD. On 4/2/07, Fred C [EMAIL PROTECTED] wrote: This interesting document talks about ajax security and

[TurboGears] Re: Javascript Hijacking

2007-04-03 Thread Bob Ippolito
. You could harvest the company's internal contact list. A quick fix at the TG level would be to have JSON controllers only return JSON for POST requests. Paul On 4/3/07, Bob Ippolito [EMAIL PROTECTED] wrote: Not really. That exploit only applies to people returning arrays from server

[TurboGears] Re: Javascript Hijacking

2007-04-03 Thread Bob Ippolito
On 4/3/07, Fred C [EMAIL PROTECTED] wrote: On Apr 3, 2007, at 12:10 PM, Bob Ippolito wrote: Are you sure it's vulnerable? If you return a JSON object, it is not vulnerable. JSON objects are only valid expressions, not statements, so they are simply an error when sourced with a script

[TurboGears] Re: using eval safely?

2007-03-20 Thread Bob Ippolito
On 3/20/07, iain duncan [EMAIL PROTECTED] wrote: On Tue, 2007-20-03 at 18:57 -0300, Jorge Godoy wrote: iain duncan [EMAIL PROTECTED] writes: I know one has to be *very careful* using eval with anything that comes from a url submission. It would however, but out a lot of conditionals.

[TurboGears] Re: More Flashy Python Pages

2007-03-04 Thread Bob Ippolito
On 3/4/07, SamFeltus [EMAIL PROTECTED] wrote: Here is another shiny, bandwidth wasting Flash page generated/edited by TurboGears. http://samfeltus.com/as3/primavera.html FYI, looks like you've fixed that AS3 exception that I was seeing with your previous iterations of that app. -bob

[TurboGears] Re: Gzip compression of .py and .kid files.

2007-02-27 Thread Bob Ippolito
On 2/27/07, Joshua J. Kugler [EMAIL PROTECTED] wrote: On Tuesday 27 February 2007 12:46, Chris Dew wrote: I'm new to Python and TurboGears. I haven't been able to find the answer to my question by Googling, possibly because gzip is everywhere on the web. The context of my question

[TurboGears] Re: Gzip compression of .py and .kid files.

2007-02-27 Thread Bob Ippolito
On 2/27/07, Chris Dew [EMAIL PROTECTED] wrote: On Feb 27, 11:43 pm, Bob Ippolito [EMAIL PROTECTED] wrote: On 2/27/07, Joshua J. Kugler [EMAIL PROTECTED] wrote: On Tuesday 27 February 2007 12:46, Chris Dew wrote: I'm new to Python and TurboGears. I haven't been able to find

[TurboGears] Re: TurboGears generated MardiGras page

2007-02-26 Thread Bob Ippolito
On 2/26/07, SamFeltus [EMAIL PROTECTED] wrote: No need to. I'm not sure what actually the TG-part of all of this is. It is just an example of TurboGears generated Flash, all created and edited in the browser, minus the image editing, done in the GIMP. It's value is comedic... Somewhere

[TurboGears] Re: TurboGears generated MardiGras page

2007-02-26 Thread Bob Ippolito
] wrote: PS How did you figure that out, I just have Ubuntu, TG and MXMLC compiler? On Feb 26, 9:40 pm, SamFeltus [EMAIL PROTECTED] wrote: I am reckoning you already know more about the ActionScript in it than I do Bob... :) Sam the Gardener On Feb 26, 9:32 pm, Bob Ippolito

[TurboGears] Re: TGWebServices without TG?

2007-02-20 Thread Bob Ippolito
to provide a higher-level API. I have started on a wsdl2py, which will (hopefully) make the client aspects of this really easy. Any suggestions you have on making the client parts of soaplib easier, I'd love to hear them. Aaron On 2/19/07, Bob Ippolito [EMAIL PROTECTED] wrote: I did look

[TurboGears] Re: TGWebServices without TG?

2007-02-20 Thread Bob Ippolito
try and make that easier to do using soaplib. The long and short of it is, nobody really wants to work with SOAP, but sometimes that's what you have to do, and my goal with soaplib was to make SOAP no more painful than it has to be. Your input is appreciated. Aaron On 2/19/07, Bob

[TurboGears] Re: TGWebServices without TG?

2007-02-20 Thread Bob Ippolito
Er.. elementsoap, of course. On 2/20/07, Bob Ippolito [EMAIL PROTECTED] wrote: With soaplib it looks something like this:: action = {urn:something}someAction request = SoapRequest(action) SoapElement(request, login_hash, string, login_hash) SoapElement

[TurboGears] Re: TGWebServices without TG?

2007-02-19 Thread Bob Ippolito
SOAP is a total nightmare. It's the most complicated and least efficient way to do anything. I think I wasted about 10 hours over the past few days trying to figure out how to put together a SOAP client that would talk to a poorly implemented SOAP service (written in PHP with NuSoap). Neither

[TurboGears] Re: TGWebServices without TG?

2007-02-19 Thread Bob Ippolito
I did look at soaplib. The API for writing clients is really bad, and on top of that I couldn't get it to talk to the service in question. The API for writing servers looked fine I guess, but I'm not in a position to where I'd ever have or want to create a SOAP service. elementsoap worked great,

[TurboGears] Re: Non well-formed HTML kid template

2007-02-08 Thread Bob Ippolito
On 2/8/07, venkatbo [EMAIL PROTECTED] wrote: Hi all, One of the (legacy) apps providing content to my TG-app is handing off non well-formed html. I'm unable to get the kid template engine to accept the html snippet without runtime errors. Following is a sample reflecting some of the

[TurboGears] Re: MySQL going to sleep vs Postgresql

2007-02-03 Thread Bob Ippolito
On 2/3/07, iain duncan [EMAIL PROTECTED] wrote: Can anyone tell me whether the mysql going to sleep issue also happens with postgresql? Or if there are any similar issues for pg? I need to deploy a new site on a very tight schedule in the next two weeks and the client has a trade show, so

[TurboGears] Re: Kid bug? And a handy kid trick!

2007-01-29 Thread Bob Ippolito
On 1/29/07, iain duncan [EMAIL PROTECTED] wrote: On Mon, 2007-29-01 at 05:54 -0800, Joseph Tate wrote: iain duncan wrote: Hi folks, I found this handy cheat on line to make do without ternary operators until py 2.5 is readily available on commodity hosting: ( answer1, answer2 )[

[TurboGears] Re: Kid bug? And a handy kid trick!

2007-01-29 Thread Bob Ippolito
On 1/29/07, iain duncan [EMAIL PROTECTED] wrote: use lt; as your , or reverse the operators and make it so it's always doing a greater than operation. This is even more fun when you're dealing with javascript less than operations. So if I use lt in the python expression,

[TurboGears] Re: 1.0.1 Status Update

2007-01-21 Thread Bob Ippolito
On 1/20/07, Karl Guertin [EMAIL PROTECTED] wrote: On 1/20/07, Bob Ippolito [EMAIL PROTECTED] wrote: Pylons and TurboGears are practically the same thing if you're using SQLAlchemy, since none of the TG admin tools really do you any good in that case. I know, but I'm comfortable with TG

[TurboGears] Re: 1.0.1 Status Update

2007-01-20 Thread Bob Ippolito
On 1/20/07, Karl Guertin [EMAIL PROTECTED] wrote: On 1/20/07, Randall [EMAIL PROTECTED] wrote: It's nice to see TurboGears finally pass the 1.0 milestone. About the same time TurboGears started gathering steam, several other frameworks either started up or came to my attention in what

[TurboGears] Re: 1.0.1 Status Update

2007-01-20 Thread Bob Ippolito
On 1/20/07, Joshua J. Kugler [EMAIL PROTECTED] wrote: On Saturday 20 January 2007 14:10, Karl Guertin wrote: Pylons is recommended if you feel that TurboGears makes too many component choices you disagree with. How does Pylons compare with some of the convenience features of TurboGears

[TurboGears] Re: CherryPy - send uppercase http response headers?

2007-01-08 Thread Bob Ippolito
HTTP headers are indeed case insensitive by specification. However, I have worked on commercial projects in the past where the producers or consumers of HTTP are embedded devices with firmware written in sloppy C by people that don't really know what the hell they're doing... and they're tested

[TurboGears] Re: TG and pylint

2006-12-20 Thread Bob Ippolito
On 12/20/06, Andreas Kostyrka [EMAIL PROTECTED] wrote: * Steve Bergman [EMAIL PROTECTED] [061219 17:41]: In my opinion, Guido's 80 character line limit hurts readability for no good reason. (Even old, narrow, dot matrix printers can handle 96-132 characters/line.) Well, 80 characters is

[TurboGears] Re: Strange IE problems with loadJSONDoc

2006-12-19 Thread Bob Ippolito
On 12/20/06, Diez B. Roggisch [EMAIL PROTECTED] wrote: On Tuesday 19 December 2006 18:28, Christian wrote: Diez B. Roggisch wrote: While my own experiences with IE are rather limited, I presume that e.g. dojo which also adds a cachePrevention parameter does so for a good reason. My

[TurboGears] Re: Languages other than python?

2006-12-17 Thread Bob Ippolito
On 12/18/06, Tim Johnson [EMAIL PROTECTED] wrote: * Christopher Arndt [EMAIL PROTECTED] [061216 21:43]: Tim Johnson schrieb: Additionally, the co-owner of our little company works in perl. (and both of us being naturally lazy - try to avoid javascripting :-)) Hi: My opinion is

[TurboGears] Re: Mochikit IE innerHTML problem

2006-12-17 Thread Bob Ippolito
On 12/18/06, iain duncan [EMAIL PROTECTED] wrote: On Mon, 2006-18-12 at 02:10 -0200, Jorge Godoy wrote: iain duncan [EMAIL PROTECTED] writes: I was under the ( possibly mistaken ) impression that the following was legal mochikitness: $(element_id).innerHTML = Foobar; But

[TurboGears] Re: Mochikit IE innerHTML problem

2006-12-17 Thread Bob Ippolito
On 12/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Every kit needs library functions like function setText(node, text) { node = $(node); clearElement(node); node.appendChild(document.createTextNode(text)); return node; }; function clearElement(node) { node =

[TurboGears] Re: Mochikit IE innerHTML problem

2006-12-17 Thread Bob Ippolito
On 12/18/06, iain duncan [EMAIL PROTECTED] wrote: Ok, I've established that getting the element is working, it's changing it's text child by doing .innerHTML = Foobar that is not working. In this case, the element in question is an input box in a form. On Firefox, I can

[TurboGears] Re: Events, IE and Mozilla...

2006-12-16 Thread Bob Ippolito
On 12/16/06, José de Paula Eufrásio Júnior [EMAIL PROTECTED] wrote: So, I guess everybody comes to that someday... I did some nice onclick and onchange and onsomething javascript functions last night. They work great on Mozilla. IE don't even returns an error. I started trying to figure out

[TurboGears] Re: What do people use for accepting credit cards?

2006-12-14 Thread Bob Ippolito
Most of the payment gateways I've looked at in the past two years support something text or XML based over HTTPS. Having an Python specific API available makes it a little easier and/or more obvious, but it's definitely possible to write your own without that much hassle. For example. USA ePay

[TurboGears] Re: sqlalchemy and run_with_transaction

2006-12-13 Thread Bob Ippolito
On 12/7/06, Dennis Muhlestein [EMAIL PROTECTED] wrote: This is more of a best practice question: I find having the framework manage the database session for you OK 95% of the time. What do you do in the other 5% of the time? Example 1: I have certain credit card processing methods that

[TurboGears] Re: Upload Progress Bar?

2006-12-13 Thread Bob Ippolito
On 12/14/06, Daniel Haus [EMAIL PROTECTED] wrote: Ian Charnas schrieb: Olli, thanks for writing. In addition to the link Lee gave you, I wanted to mention that I'm almost done with a short HOWTO on how to do a really great ajax file-upload with a progress bar using TG. Give me two

[TurboGears] Re: nl2br after JSON request

2006-11-17 Thread Bob Ippolito
On 11/17/06, Karl Guertin [EMAIL PROTECTED] wrote: On 11/17/06, chiangf [EMAIL PROTECTED] wrote: Does anyone know how to do this? Do it server side and send the text with the br already in place. I haven't tried it in JS, but I'd imagine you'd have to at least innerHTML the result into

[TurboGears] Re: Mixing Dojo in with mochikit and gears

2006-11-16 Thread Bob Ippolito
On 11/16/06, iain duncan [EMAIL PROTECTED] wrote: I got it working ok, but I'm curious as to hear what more experienced Gears developers think this. Is bringing Dojo in even a good idea or am I just going to be forcing people to download too much? I really like the mochikit pythonish api and

[TurboGears] Re: Mixing Dojo in with mochikit and gears

2006-11-16 Thread Bob Ippolito
On 11/16/06, Karl Guertin [EMAIL PROTECTED] wrote: On 11/16/06, José de Paula Eufrásio Júnior [EMAIL PROTECTED] wrote: my questions are less subtle: http://core.eti.br/2006/11/16/turbogears-mysql-and-utf-advice-needed/ Options: * Use SA, it's not THAT much more verbose but the

[TurboGears] Re: Django comparison, was Who are the core TurboGears developers?

2006-11-14 Thread Bob Ippolito
On 11/14/06, iain duncan [EMAIL PROTECTED] wrote: Since then however, my impression is that Django is growing faster than TurboGears based on the number of subscribers to their mailing list and I wonder if that is because they have more people who are working on and in the framework full

[TurboGears] Re: Wiki 20 tutorial rewrite completed, comments appreciated

2006-11-13 Thread Bob Ippolito
On 11/11/06, Karl Guertin [EMAIL PROTECTED] wrote: After two months worth of comments, I've rewritten the 20 minute wiki tutorial. http://docs.turbogears.org/1.0/Wiki20/Page1 The primary enhancement is that I've added contextual lines in the examples, which will hopefully reduce the

[TurboGears] Re: Dictionaries and kid

2006-11-11 Thread Bob Ippolito
On 11/11/06, iain duncan [EMAIL PROTECTED] wrote: When we send stuff to kid, it gets them as a dictionary. What if we want to send a dictionary in the dictionary? I am able to get kid to dereferrence the first level ok, ie, the items in the cart are themselves dictionaries, with the name as

[TurboGears] Re: Dictionaries and kid

2006-11-11 Thread Bob Ippolito
On 11/11/06, iain duncan [EMAIL PROTECTED] wrote: On Sat, 2006-11-11 at 16:38 -0800, Bob Ippolito wrote: On 11/11/06, iain duncan [EMAIL PROTECTED] wrote: When we send stuff to kid, it gets them as a dictionary. What if we want to send a dictionary in the dictionary? I am able to get

[TurboGears] Re: Dictionaries and kid

2006-11-11 Thread Bob Ippolito
On 11/11/06, iain duncan [EMAIL PROTECTED] wrote: Well, JavaScript iterates over objects the exact same way that Python iterates over dicts ;) Does that mean that if you want to use ajax to keep essentially mirrors of your object on the server and the client end, a python dictionary is

[TurboGears] Re: JSON and SQLObject

2006-11-08 Thread Bob Ippolito
On 11/8/06, Jason Chu [EMAIL PROTECTED] wrote: On Tue, 07 Nov 2006 22:55:29 -0800 iain duncan [EMAIL PROTECTED] wrote: On Wed, 2006-08-11 at 02:43 -0400, Jorge Vargas wrote: On 11/7/06, chiangf [EMAIL PROTECTED] wrote: My question is whether there is any way to access

[TurboGears] Re: New Project: Turbogears or Djano?

2006-11-07 Thread Bob Ippolito
On 11/7/06, Lee McFadden [EMAIL PROTECTED] wrote: On 11/6/06, iain duncan [EMAIL PROTECTED] wrote: Some thoughts of my own, open for comment: 8 *snip* 8 - Django docs are very good, better right now than gears. I had some inexcusable problems with the gears

[TurboGears] Re: Starting gears, genshi, sqlalchemy

2006-11-07 Thread Bob Ippolito
On 11/7/06, iain duncan [EMAIL PROTECTED] wrote: Anyway, support for what we have now -- SO + Kid -- is better tested and adapted to TG. But you shouldn't find any shortcomings with SA + Genshi. Ok. I'll stick with kid for now. Migrating from Kid to Genshi is trivial anyway. You pretty

[TurboGears] Re: Doing threading 'properly'

2006-11-05 Thread Bob Ippolito
On 11/5/06, Ben Sizer [EMAIL PROTECTED] wrote: Jorge Godoy wrote: Ben Sizer [EMAIL PROTECTED] writes: You were probably clear, but I don't know much about the detail of database transactions and so on. But even if I drop down to the database level and make the update directly, can

[TurboGears] Re: Startup/restart time

2006-11-02 Thread Bob Ippolito
On 11/2/06, Jorge Godoy [EMAIL PROTECTED] wrote: Tim Lesher [EMAIL PROTECTED] writes: Would anyone object to a patch to implement this? Having a fallback (the current behavior) for non-optimized OSs and then having this optimization would be nice... But, again, it will only solve things

[TurboGears] Re: jsonify javascript references

2006-11-02 Thread Bob Ippolito
On 11/2/06, Diez B. Roggisch [EMAIL PROTECTED] wrote: Hi, I'm trying to build a nice widget-wrapper around the YUI-component lib. Things are nice and smooth except for one thing: the components can get effects as arguments, basically a constructor and some arguments. Now this is what the

[TurboGears] Re: jsonify javascript references

2006-11-02 Thread Bob Ippolito
On 11/2/06, Diez B. Roggisch [EMAIL PROTECTED] wrote: Bob Ippolito schrieb: On 11/2/06, Diez B. Roggisch [EMAIL PROTECTED] wrote: Hi, I'm trying to build a nice widget-wrapper around the YUI-component lib. Things are nice and smooth except for one thing: the components can get

[TurboGears] Re: modifying cherrypy.response.headers

2006-11-02 Thread Bob Ippolito
On 11/2/06, evan [EMAIL PROTECTED] wrote: Hi All, From previous posts it would appear that to modify the response headers all I should have to do is to import cherrypy and to set the cherrypy.response.headers dictionary. But when I attempt to do that I get the following:

[TurboGears] Re: last chance for PyCon talks!

2006-10-31 Thread Bob Ippolito
believe the things you learn just by being in the same room as Bob Ippolito. Or Phillip Eby. Or Ian Bicking. If we're lucky, the elusive but wonderfully prolific Mike Bayer might be in attendance. So, hopefully some folks will propose talks, but it would be good for you to at least

[TurboGears] Re: how to retrieve cherrypy REQUEST informations

2006-10-30 Thread Bob Ippolito
On 10/30/06, Jose Soares [EMAIL PROTECTED] wrote: I would like to know how to retrieve the cherrypy informations like the query_string of url, the server_url, the authenticated_user, cookies, etc. Something like the Zope REQUEST. Googling for cherrypy request would've answered your

[TurboGears] Re: Preventing simultaneous database access from replicated TG servers

2006-10-30 Thread Bob Ippolito
On 10/30/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon, 2006-10-30 at 22:26 -0300, Jorge Godoy wrote: Stuart Clarke [EMAIL PROTECTED] writes: I have a script which accesses the DB, and which can be started in the background from my TG web application (The script also uses my app's

[TurboGears] Re: kid drives me crazy

2006-10-28 Thread Bob Ippolito
On 10/28/06, Christoph Zwerschke [EMAIL PROTECTED] wrote: Michael Steinfeld wrote: so if I was to do something like import calendar, itertools month = calendar.monthcalendar(2006, 10) days = [i for i in itertools.chain(*month)] You don't need to build a list here; simply pass the

[TurboGears] Re: MochiKit and CallLater

2006-10-27 Thread Bob Ippolito
On 10/27/06, percious [EMAIL PROTECTED] wrote: Sorry. I probably posted this too early. I got it figured out. You need to send CallLater a function pointer, not func() JavaScript doesn't have macros, so a literal function call is *never* the right thing to do if the computation should be

[TurboGears] Re: File upload - how to get filename?

2006-10-27 Thread Bob Ippolito
On 10/27/06, Robin Haswell [EMAIL PROTECTED] wrote: I need to get the filename of an uploaded file from CherryPy. I can't write this to a different (known) file because I don't seem to be able to get a filename out of os.tmpfile(). I need the filename to pass to pysqlite2 - I'm uploading

[TurboGears] Re: kid drives me crazy

2006-10-27 Thread Bob Ippolito
On 10/27/06, Michael Steinfeld [EMAIL PROTECTED] wrote: Duh, right after I clicked send I saw the mistake. don't need to put quotes around '0' and it works. In other words, it helps to pose the question correctly if you want to get correct suggestions! however it screws up my layout but I

[TurboGears] Re: MySQL or Postgres for a production site?

2006-10-20 Thread Bob Ippolito
On 10/20/06, Adam Jones [EMAIL PROTECTED] wrote: Chris Cioffi wrote: Hello all, I'm designing a site for some clients and I'm wondering if MySQL or Postgres would be more desirable. The site, as far as they've decided so far, will be transaction oriented and contain financial

[TurboGears] Re: Python DB-API 2.0 instead of SQLObject/SQLAlchemy

2006-10-19 Thread Bob Ippolito
On 10/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I would like to be able to use SQLObject or SQLAlchemy for my tg project, but since my older database, Sybase 9, is only accessible through mxODBC, I do not think I have much choice. What do I have to worry about in creating custom

[TurboGears] Re: Data for globalization

2006-10-18 Thread Bob Ippolito
If the project is free, then you don't need money to pay for the server. There's plenty of places that will host open source software for free such as Google Code, SourceForge, etc... -bob On 10/17/06, GinTon [EMAIL PROTECTED] wrote: I'll follow your advices although I'll have to thinking how

[TurboGears] Re: [Slightly OT] Installing Python/Postgresql/etc on Mac OSX

2006-10-12 Thread Bob Ippolito
On 10/12/06, Rune Hansen [EMAIL PROTECTED] wrote: On 12. okt. 2006, at 02.22, [EMAIL PROTECTED] wrote: I recently got a Mac Pro and I'm a little confused on the best way to install Open Source apps. I'm used to using Ports on FreeBSD and Synaptic/Apt on Ubuntu. Because of this, I'm

[TurboGears] Re: SA sends sql queries to stdout while in production mode

2006-10-10 Thread Bob Ippolito
On 10/10/06, Jorge Godoy [EMAIL PROTECTED] wrote: Gary Doades [EMAIL PROTECTED] writes: Ah, I had to set sqlalchemy.echo = False and that seemed to cure the problem. 0 is False False False is False True That makes sense. ;-) Well is tests for object identity. It's strange that

[TurboGears] Re: How can I know each computer from another with CP and TG?

2006-10-08 Thread Bob Ippolito
MAC addresses don't leave the LAN. You have two exactly three options: 1. Stick all of the state in the URL (or a session ID). 2. Keep all of your state (or a session id) in forms and make sure that every link is a form submit (using GET instead of POST would be an ugly variant of 1). 3. Stick

[TurboGears] Re: Root object created twice? Incomprehensible ...

2006-10-06 Thread Bob Ippolito
On 10/6/06, Steve Holden [EMAIL PROTECTED] wrote: I'm hacking away at a first TG application, and I have a controllers.py (in a web created with tg-admin quickstart) that looks like this: import turbogears from turbogears import controllers from mimetypes import guess_type import os

[TurboGears] Re: TurboMail 1.0 released!

2006-10-06 Thread Bob Ippolito
On 10/6/06, Matthew Bevan [EMAIL PROTECTED] wrote: Very nice! I look forward to using it. Does it work on both 2.3 and 2.4? I have not tested it in 2.3. After doing a quick browse through the PQR looking for differences related to TurboMail, I can find no reason that it wouldn't work in

[TurboGears] Re: To genshi or not to ...

2006-10-05 Thread Bob Ippolito
On 10/5/06, venkatbo [EMAIL PROTECTED] wrote: Have been getting familiarized with TG 1.0b1 for a while now, creating kid templates etc... 'am ready to start creating a real TG-based app... Would you recommend I switch to genshi and write all my templates using it or write them as kid

[TurboGears] Re: install problems mac os x power pc

2006-10-04 Thread Bob Ippolito
: no. this was a clean install entirely. I installed Xcode right off my developer disks that apple sends me everymonth. There was nothing botched about anything I did. In fact if you google around a bit, other people seem to have this same issue. On 10/3/06, Bob Ippolito [EMAIL PROTECTED

[TurboGears] Re: install problems mac os x power pc

2006-10-03 Thread Bob Ippolito
Sounds like you didn't install the Xcode universal SDK. You need that in order to compile software with the binary distros of Python. I think it's installed by default these days, but you may have turned it off. -bob On 10/3/06, Michael Steinfeld [EMAIL PROTECTED] wrote: Of course I have

[TurboGears] Re: Scalability

2006-10-02 Thread Bob Ippolito
On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: Thanks for the reply Kevin... I want to ask some questions, however, about scalability. I'm developing a web system (the pages of which will be customised on a per-user basis), that may grow to be quite popular. I need to

[TurboGears] Re: Scalability

2006-10-02 Thread Bob Ippolito
On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon, 2006-10-02 at 10:04 -0700, Bob Ippolito wrote: On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: Thanks for the reply Kevin... I want to ask some questions, however, about scalability. I'm developing a web system

[TurboGears] Re: Scalability

2006-10-02 Thread Bob Ippolito
On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon, 2006-10-02 at 10:45 -0700, Bob Ippolito wrote: On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon, 2006-10-02 at 10:04 -0700, Bob Ippolito wrote: On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: Thanks

[TurboGears] Re: Scalability

2006-10-02 Thread Bob Ippolito
On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon, 2006-10-02 at 12:19 -0700, Bob Ippolito wrote: On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon, 2006-10-02 at 10:45 -0700, Bob Ippolito wrote: On 10/2/06, Stuart Clarke [EMAIL PROTECTED] wrote: On Mon

[TurboGears] Re: Lighttpd as a simple proxy to TG

2006-09-27 Thread Bob Ippolito
On 8/26/06, Damjan [EMAIL PROTECTED] wrote: As I said, it's only serving static content, there is no application. And lighttpd only uses mod_alias, mod_access, mod_accesslog. My point was that the memory leak is not in the core of lighttpd but in some of it's modules. Since there is a

[TurboGears] Re: Toolbox breaks in 1.0b1

2006-09-25 Thread Bob Ippolito
On 9/25/06, Jorge Vargas [EMAIL PROTECTED] wrote: On 9/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: There is already a ticket for this bug. See http://www.mail-archive.com/turbogears-tickets@googlegroups.com/msg01958.html . A possible workaround is to use an other browser for

[TurboGears] Re: HTTP line length limit in Firefox

2006-09-18 Thread Bob Ippolito
On 9/18/06, John J Lee [EMAIL PROTECTED] wrote: On Mon, 18 Sep 2006, Arnar Birgisson wrote: [...] I have firefox failing on the following whenever length = 4096: @expose(json) def test(self, len): return 'x'*int(len) FF is failing in a weird manner, loadJSONDoc returns

[TurboGears] Re: Mac x86 install problems

2006-09-14 Thread Bob Ippolito
On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone installed Turbogears 1.0b on a Mac x86? I have no problems on PPC but no luck on x86 version Works fine here with universal python 2.4.3. You should probably mention what problems you had and which Python installation you're

[TurboGears] Re: Mac x86 install problems

2006-09-14 Thread Bob Ippolito
On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Python 2.4.3 First I had a problem with SQL Object MySQL driver so I reloaded. Now I'm getting gcc not found ( Ihave the latest Xcode) when trying to load the RuleDispatch If you're getting GCC not found, you definitely do not have the

[TurboGears] Re: Lighttpd as a simple proxy to TG

2006-08-24 Thread Bob Ippolito
One problem with Lighty is that it leaks memory like a sieve [1]. I audited it for a little bit and I gave up, it's a mess. I'd steer clear of it, it will quickly ruin your day if you throw a lot of traffic at it. The only solution I know of that's extremely high performance that offers all of

[TurboGears] Re: Web Frameworks Watch: CleverHarold

2006-08-22 Thread Bob Ippolito
On 8/22/06, Karl Guertin [EMAIL PROTECTED] wrote: http://www.cleverharold.org/ CleverHarold is a WSGI framework stack similar to Pylons under development by Troy Melhase. Its main claim to fame is that the application running in the framework requires no imports from the framework (so it

[TurboGears] Re: Web Frameworks Watch: CleverHarold

2006-08-22 Thread Bob Ippolito
On 8/22/06, Jorge Godoy [EMAIL PROTECTED] wrote: Damjan [EMAIL PROTECTED] writes: You sound as if GPL is evil? When it forces you to release your code under the same license it gets a lot complicated to maintain your business running unless you always have very specific projects. If it

[TurboGears] Re: js options - required input

2006-08-15 Thread Bob Ippolito
To be fair, the right answer is that it really depends on what you want to do. You shouldn't pick a toolkit before you have a use for it. -bob On 8/15/06, samuraisam [EMAIL PROTECTED] wrote: MochiKit - mucho pythonic. Dojo - mucho... javathonic. Prototype - mucho... poor implementation.

[TurboGears] Re: javascript interpreter

2006-08-06 Thread Bob Ippolito
On Aug 6, 2006, at 7:37 PM, Jorge Vargas wrote:On 8/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Is there some way to write some _javascript_ without using a browser,that is, to help me prototype before putting it in a web page?I think I have seen at least one standalone interpreter but

[TurboGears] Re: Comet (aka long lived http connections) Ajax in turbogears

2006-07-02 Thread Bob Ippolito
On Jul 2, 2006, at 2:29 PM, Bram Vandoren wrote: Thanks for the answers. I took the twisted aproach because I already had some experience with it. I don't use Nevow/Athena but instead use Kid, Mochikit and turbojson. Arnar Birgisson wrote: I'm a bit new to this comet stuff - would I

[TurboGears] Re: KID got error while process javascript operator

2006-05-07 Thread Bob Ippolito
On May 7, 2006, at 6:07 AM, Robin Haswell wrote: Using comments to wrap something that you want to keep in the document is a bad idea. Sure, it might happen to work with Kid, but I still wouldn't do it or recommend it. That technique has been recommended for JS since day 1. It's the

[TurboGears] Re: KID got error while process javascript operator

2006-05-06 Thread Bob Ippolito
On May 6, 2006, at 2:41 AM, Alberto Valverde wrote: On 06/05/2006, at 3:19, Wenjie He wrote: Anybody have occur such situation? While using javascript operator in KID template, KID can't parse template to html, and raise ExpatError: not well-formed (invalid token) How can I do a

[TurboGears] Re: KID got error while process javascript operator

2006-05-06 Thread Bob Ippolito
On May 6, 2006, at 4:19 PM, David Stanek wrote:On 5/6/06, Robin Haswell [EMAIL PROTECTED] wrote: Nah _javascript_ is fine in templates. All you need to do is place it in !-- -- comments fornon-_javascript_-aware browsers. That includes Kid.I usually use XML comments to hide my _javascript_. It

[TurboGears] Re: Theory: an XML Model library, styled after SQLObject

2006-05-01 Thread Bob Ippolito
On May 1, 2006, at 10:28 AM, Adam Jones wrote: I guess the problem I have with this is that normally I get XML from someone else, I build databases myself. In that I know exactly what the spec is for the database, and unlike XML the absence of data in a database column does not also

[TurboGears] Re: scriptaculous + mochikit = pain

2006-04-27 Thread Bob Ippolito
On Apr 27, 2006, at 7:55 AM, Karl Guertin wrote: On 4/26/06, Mark Ramm [EMAIL PROTECTED] wrote: And I keep hearing rumors that Python scripting is comming soon to a mozilla browser near you. Note that that Python scripting does not mean client area scripting, it means chrome level

[TurboGears] Re: SQLObject rant: unicode support sucks

2006-04-27 Thread Bob Ippolito
On Apr 27, 2006, at 2:45 PM, Tim Lesher wrote: On 4/27/06, Baruch [EMAIL PROTECTED] wrote: I still feel that SQLObject is not doing the obvious thing here, it should use the UTF-16 encoding from the start especially when it has this comment for UnicodeCol: Note: parameters in queries will

[TurboGears] Re: SQLObject rant: unicode support sucks

2006-04-27 Thread Bob Ippolito
On Apr 27, 2006, at 7:09 PM, Kevin Dangoor wrote: On 4/27/06, Jorge Godoy [EMAIL PROTECTED] wrote: test_unicode=# select * from test_unicode_table; id | test_column +- 1 | áéíóú 2 | áéíóú 3 | áéíóú 4 | áéíóú 5 | áéíóú 6 | áéíóú (6 registros) Do those

[TurboGears] Re: Is Identity too much? I think so.

2006-04-23 Thread Bob Ippolito
On Apr 23, 2006, at 8:44 AM, Jeff Watkins wrote:On 23 Apr, 2006, at 11:26 am, Alberto Valverde wrote:Also I should note that you don't *need* to undersand how they work in order to *use* them.On the other hand, if you need to understand the code that uses them, you'll NEVER actually know what the

[TurboGears] Re: [mochikit]How to add onclick attr to DOM?

2006-04-20 Thread Bob Ippolito
On Apr 20, 2006, at 1:34 AM, Henotii wrote: I just follow the doc of mochikit, and use A({href:#}, test) to add element successful. But it seems can't work with A({onclick:test_func()}, test). The output html just like this atest/a, and without the onclick. Is there something wrong? And

[TurboGears] Re: Explain the implications of implicit transactions

2006-04-11 Thread Bob Ippolito
On Apr 11, 2006, at 6:50 PM, Kevin Dangoor wrote: On 4/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ought to pass object identifiers around for page to page rather than object themselves, then re-get the object from the database within the next page's code. Is this a correct

[TurboGears] Re: Open Question: Turbogears and scaling...

2006-03-17 Thread Bob Ippolito
On Mar 17, 2006, at 3:17 PM, Robin Haswell wrote: my time has a cost and optimisation often buys less performance than, say, a Dell SC1425 Unfortunatly my time is not worth a IBM 64way mainframe (or I would be one happy hacker). Bigger machines help but as my comment said before

[TurboGears] Re: Safari and XMLHttpRequest encoding

2006-03-08 Thread Bob Ippolito
On Mar 8, 2006, at 6:49 AM, Jonathan LaCour wrote: Write a test case so that other people can see the issue. Okay, I created a simple test case as a TurboGears 0.9a1 application. It works fine in Firefox, but doesn't work properly in Safari. You can download it at:

[TurboGears] Re: bike shed #1: config extension/dotted names

2006-03-07 Thread Bob Ippolito
On Mar 7, 2006, at 3:47 PM, Ian Bicking wrote: Kevin Dangoor wrote: So, if there's another trick that we can use to make it look INI- like, but still function entirely like a normal Python module, I'm game for trying that out. Otherwise, given the constraints above, it sounds like

[TurboGears] Re: Safari and XMLHttpRequest encoding

2006-03-07 Thread Bob Ippolito
On Mar 7, 2006, at 5:02 PM, Jonathan LaCour wrote: On Mar 7, 2006, at 2:50 PM, Jonathan LaCour wrote: Seems like I am the only one busy with email today :) Has anyone come up with a workaround to this problem: http://trac.turbogears.org/turbogears/ticket/186 ... its currently

  1   2   >