Re: [Webware-discuss] Fun with forms

2008-01-28 Thread Matt Feifarek
On Jan 20, 2008 8:33 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > The option no one seems to consider, but which I continue to advocate, > is using FormEncode with htmlfill and ad hoc templates to generate the > actual HTML forms (because once you take out the value filling, error > filling, and v

Re: [Webware-discuss] Fun with forms

2008-01-18 Thread Matt Feifarek
On Jan 4, 2008 6:55 PM, Mark Phillips <[EMAIL PROTECTED]> wrote: > > > FormKit is not really actively maintained either. > > Is this sort of thing passe at this point? What approach is up to date? > As one of the two authors of FK, I can confirm this. I don't know that it's passe, we are still u

Re: [Webware-discuss] mod_webkit on apache2 on x86_64

2007-10-26 Thread Matt Feifarek
On 10/26/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > > One thing you should do is create a new working directory with > makeAppWorDir. If you start an empty working directory, you should get > the Example and Test contexts. Does this work? Then copy your servlets > to that new working dire

Re: [Webware-discuss] mod_webkit on apache2 on x86_64

2007-10-26 Thread Matt Feifarek
On 10/26/07, Matt Feifarek <[EMAIL PROTECTED]> wrote: > > I'm finding some weird url-mapping errors... but I'm trying to use an old > version of Webware with the newer version of mod_webkit... I'm using v > 0.9.0. I'm reluctant to try and upgrade Webware, as

Re: [Webware-discuss] mod_webkit on apache2 on x86_64

2007-10-25 Thread Matt Feifarek
On 10/25/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > > mod_webkit definitly works on 64bit boxes. Seems you're using a very old > version that doesn't cope with Apache 2.2. > You're right! Thanks. I'm finding some weird url-mapping errors... but I'm trying to use an old version of Webwa

[Webware-discuss] mod_webkit on apache2 on x86_64

2007-10-25 Thread Matt Feifarek
Can anyone get this to compile? In the past, I just moved over a good module from another system, but now I'm on a 64bit box. Here's what I get: # make /usr/bin/apxs2 -c mod_webkit.c /usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -D

Re: [Webware-discuss] How to evaluate webware and get started?

2007-01-11 Thread Matt Feifarek
On 1/11/07, sophana <[EMAIL PROTECTED]> wrote: There are still some small things to change IMO (some optimizations, unicode things), but it is great. Hi Sophana... I'd be interested to hear your ideas about that... I've been working lately on FK, including adding WSGI support, and fixing some

Re: [Webware-discuss] How to evaluate webware and get started?

2007-01-11 Thread Matt Feifarek
On 1/11/07, michelts <[EMAIL PROTECTED]> wrote: To "generate" the form I use cheetah by hand. I think use FunFormKit to validate forms isn't a good idea because it is not update anymore (am I right?). FormEncode and FunFormKit are by the same author... I think Ian considers FormEncode to be h

Re: [Webware-discuss] Question......

2006-09-06 Thread Matt Feifarek
On 9/6/06, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > FormKit is still maintained, but there's not much "action"... it pretty> much does what it does. We're not improving it much. We get the> occasional bugfix from the community, but that's about it. That's pretty similar to Webware itself, s

Re: [Webware-discuss] Question......

2006-09-06 Thread Matt Feifarek
On 9/6/06, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: Is FormKit still maintained? If it is not actively developed any moreand not used for any other web frameworks, I think it would be good tocontinue development inside the Webware SVN and release it together with Webware, maybe with some impr

Re: [Webware-discuss] webware forms: formkit, formencode, any other?

2006-04-13 Thread Matt Feifarek
FormKit isn't made by the same group of people as who make WebKit, for starters.I suppose that most people want to keep WebKit lean and mean; maybe FormKit is not necessary for most people.In general, in my opinion, Webkit is a pretty advanced piece of software; as in it's for advanced people. It's

Re: [Webware-discuss] webware forms: formkit, formencode, any other?

2006-04-03 Thread Matt Feifarek
On 4/2/06, sophana <[EMAIL PROTECTED]> wrote: I'm actually using formkit with success. I find it just cool as it is.Maybe the forms look should be a little more customizable (I haven'ttried a lot)Glad to hear it.FK has quite extensive support for CSS and other attributes; just make sure to go beyon

Re: [Webware-discuss] webware forms: formkit, formencode, any other?

2006-04-01 Thread Matt Feifarek
On 3/9/06, sophana <[EMAIL PROTECTED]> wrote: Now I'm looking for a method for generating forms.formkit looks quite good, although not that simple.Hello Sophana. I'm one of the authors of FormKit. The apparent complexity is largely due to the crappiness of HTML, but we've done a pretty good job (

Re: [Webware-discuss] FormKit Alpha release

2005-03-04 Thread Matt Feifarek
I see your point. While in FK these functions are packaged in the same library, there's not much "together" in the actual logic. Basically, we have some tag-building (string building) stuff and then some data validation stuff. And some glue to hook it to webkit. Either one could be removed and us

Re: [Webware-discuss] FormKit Alpha release

2005-03-04 Thread Matt Feifarek
I see your point. While in FK these functions are packaged in the same library, there's not much "together" in the actual logic. Basically, we have some tag-building (string building) stuff and then some data validation stuff. And some glue to hook it to webkit. Either one could be removed and us

Re: [Webware-discuss] FormKit Alpha release

2005-03-02 Thread Matt Feifarek
Right, right. I confused myself. You were speaking specifically about the validation layer in FormEncode, and I confused that with FE in its entirety. We're certainly open to improving the validation constructs in FK. I need to look at your library at some point soon. I know from your blog (whic

Re: [Webware-discuss] FormKit Alpha release

2005-02-28 Thread Matt Feifarek
Not specifically, no. I am not very familiar with your library, but I'm certain that we're open to the idea. We did quite a bit of overhaul on Validators/Converters this time around, but it's possible (likely) that your library is more sophisticated. Also, we're hoping to make FK more useful to p

[Webware-discuss] FormKit Alpha release

2005-02-28 Thread Matt Feifarek
We've released an alpha of FormKit, our form processing and generation library for python, with extensive webkit support. Further info in the Google group: http://groups-beta.google.com/group/FormKit4Python Thanks! --- SF email is sponsored by

Re: [Webware-discuss] MultiSelectField - type of value

2005-02-25 Thread Matt Feifarek
I can certainly put this into MultiSelectField; What should be the default behavior? 1. Do not coerce single values into lists (pass the string) 2. Coerce single values (strings) into lists of one string I guess that I vote for 2. Any code out there that has been written to coerce after-the-fact

Re: [Webware-discuss] MultiSelectField - type of value

2005-02-24 Thread Matt Feifarek
Hi Steve. We remembered why we did this: it's Webkit's fault. Or perhaps it is the fault of cgi.FieldStorage. Even if you take FormKit out of the equation, a multiple-select tag works this way. We can certainly "fix" this via FormKit, but we thought it bad to change the behavior of the way webki

Re: [Webware-discuss] MultiSelectField - type of value

2005-02-23 Thread Matt Feifarek
Hello Steve. I wouldn't dive into making your own mods just yet; we're hoping to release a new alpha of FormKit in the very next few days; then, you should be able to make a subclass (or more simply, a Validator/Converter) to make it work the way that you want. I've tried to answer some of your q

Re: [Webware-discuss] WebKit not compiling

2005-02-23 Thread Matt Feifarek
I've seen this kind of bs on occasion. Once in a very long while, I need to nuke .pyc files... when it *seems* to run them rather than newer .py files. Also, I'd look at line-ending problems (maybe there are a few lines that have windows-y ones or something) and or indentation problems; sometimes

[Webware-discuss] New FormKit group at Google groups

2005-02-10 Thread Matt Feifarek
Hello. I've just started a Google Group for FormKit (the dAlchemy version). It's called: FormKit4Python We're hoping to cut a new release soon, so please hop over there and make any comments, suggestions, or whatever. Thanks! --- SF email is

Re: [Webware-discuss] Where is FormKit?

2005-02-07 Thread Matt Feifarek
Hi Jacob. I'm not sure why you were having problems. Our server has been up without problems for months. Perhaps it was a DNS failure? The link to FK is: http://dalchemy.com/opensource/formkit/ On Sun, 6 Feb 2005 22:42:15 -0800, jacob martinson <[EMAIL PROTECTED]> wrote: > I haven't been able

[Webware-discuss] Re: Installing FormKit for Webware

2004-12-17 Thread Matt Feifarek
You're right, it doesn't really matter, so long as it's in sys.path. What do WE do? We put it in site-packages. You can also put it inside of Webware/ Webware changes sys.path so that you can import things that are inside of the "Webware" tree without the "Webware" prefix... So, in any of the c

Re: [Webware-discuss] userkit problem

2004-12-16 Thread Matt Feifarek
Hello Jakub. I'm not able to answer your question (I don't use UserKit). I'm just writing because I don't think that anyone else uses UserKit either. It's sortof dead code in webware. If you've found it useful, that's great, but you may have trouble finding help. It DOES seem like this may be a m

Re: [Webware-discuss] How to work with forms ?

2004-11-22 Thread Matt Feifarek
Hello Douglas. I think that you want the self.request.fields() method in the servlet; it contains a dictionary of all input passed from the form, and also the query-string variables. I'm afraid that I'm not familiar with the syntax you have below; it's probably PSP, but I don't use that. Dougl

Re: [Webware-discuss] Best formkit

2004-11-09 Thread Matt Feifarek
You found all three :-) Both FunFormKit and FormKit (which I am a co-author of) are fully useable. I'm not very familiar with FormEncode, though I do remember that it has some pretty cool ideas that inform it. I'll refrain from offering opinions, since I'm obviously not objective, but I'd sugge

Re: [Webware-discuss] webware-discuss Replies over email-interface problems

2004-11-08 Thread Matt Feifarek
Do a "reply-to all" in your email client. Uwe Grauer wrote: Why is it, that everytime i want to reply to webware-discuss messages, i end up sending a private mail to the originator of the message? What kind of things do other people set at sourgeforge-lists that causes nice replies? --

Re: [Webware-discuss] Activity and Progress

2004-10-28 Thread Matt Feifarek
Hi Chas. Perhaps the developers can chime in on the version numbering, but I'd say that it may be this: although the framework is quite stable, I know that there are some things that we all want it to be that it is not yet, so I expect this explains the wait for v 1.0. I'm glad that you're givi

Re: [Webware-discuss] Activity and Progress

2004-10-27 Thread Matt Feifarek
Hi Chas. I'm not one of the developers, but I've been using webkit nearly exclusively for almost 3 years. I think that part of the reason that there aren't many bug fixes is that there aren't many bugs. The bugs that are found tend to be pretty simple, and I've seen them get resolved quickly. I

Re: [Webware-discuss] __del__ equivalent webware function

2004-10-23 Thread Matt Feifarek
Did you try the __del__() function? The problem is that servlets are re-used, as Geoff mentioned. They're not destructed after they run. Even if __del__ works, it won't necessarily work the way that you want. If you just want to explicitly shut down the database connection, you'll have to wait

Re: [Webware-discuss] session strangeness

2004-10-20 Thread Matt Feifarek
Thanks for that. I guess that it's not "way" :-) But it does depend on what gets pickled; if it stays in memory, there's no pickling. I've noticed for example that pickling new style classes (with the getstate/setstate stuff) is pretty slow. Typical session stuff like strings and ints should be

Re: [Webware-discuss] session strangeness

2004-10-20 Thread Matt Feifarek
File based sessions are way slower. Definitely an undesirable band-aid solution. We've seen this sort of thing, too. We were never able to determine the source of the bug (or whether it was a bug). [EMAIL PROTECTED] wrote: Try changing your sessions store from Dynamic to File. What do you mean

[Webware-discuss] New public site

2004-10-17 Thread Matt Feifarek
Hello fellow Webware Heads. From time to time, people ask this list for public sites running Webware. We've just launched a big new site that may be interesting to check out: http://www.cocktaildb.com/ It's Webware (0.8.1) entirely (except for a few small bits of Twisted for rendering images)

Re: [Webware-discuss] how many webware users are there?

2004-10-05 Thread Matt Feifarek
I think that these questions are going to be difficult to answer for obvious reasons. The list here is the only useful metric; how many people are subscribed? That's a question for the mailman admin. I've been subscribed since mid '02, and since then, there have been over 7,000 messages. I fin

Re: [Webware-discuss] Can webkit use UNIX socket?

2004-09-30 Thread Matt Feifarek
Hello JZ. I haven't used this, but your note rang a bell. I did some quick googling, and found this: http://jaguar.sourceforge.net/webware/unix-sockets.html Good luck JZ wrote: Can webkit run on using UNIX socket instead of tcp socket? I cannot find any information in docs. -- JZ

[Webware-discuss] PEP: WSGI

2004-08-12 Thread Matt Feifarek
This is a cool idea to make a unified connection between web servers and app servers: http://mail.python.org/pipermail/web-sig/2004-August/000518.html --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R

Re: [Webware-discuss] Toward a new release: request for thought and discussion

2004-08-09 Thread Matt Feifarek
Thanks for your comments, Geoff. Geoffrey Talvola wrote: I did a couple of Webware releases, and I found that it was more work and more confusing to have independent version numbers for each subcomponent That's certainly a good argument for keeping everything together. Point taken. Actually, I

[Webware-discuss] Re: TaskiKit (Was:Toward a new release: request for thought and discussion)

2004-08-07 Thread Matt Feifarek
Chuck Esterbrook wrote: It's difficult to say what is essential. That differs from person to person both in terms of the kits and also what each kit contains. I absolutely agree. My desire to pare it down has more to do with newbie experience and docs than taking up hard drive space or any noti

Re: TaskiKit (Was: [Webware-discuss] Toward a new release: request for thought and discussion)

2004-08-07 Thread Matt Feifarek
It is CERTAINLY not my point of view that these other kits have no value... it's merely my opinion that Webware/webkit should be pared down to the essentials, with these other kits being "plug-ins". And/or, we could distribute all of the useful "kits" under the Webware umbrella "brand" and do r

Re: [Webware-discuss] Toward a new release: request for thought a nd discussion

2004-08-06 Thread Matt Feifarek
Geoffrey Talvola wrote: I think what's needed in the short term is a volunteer to cut a new release based on what's already in CVS. That, if I recall correctly, was the original request that started all the discussion. There have been a few bugfixes on the 0.8 release branch since 0.8.1, so cutti

[Webware-discuss] Towards a new release: request for thought and discussion

2004-08-05 Thread Matt Feifarek
There was a little chatter a couple of weeks ago about a new release. It seems to have died down, so, I'd like to start a discussion to see where people think a new release might go. Herein lies my opinion. I have no vested control over Webware, but I and my firm have been using it basically ex

Re: [Webware-discuss] A new version is badly needed

2004-07-28 Thread Matt Feifarek
David London wrote: I'd like to start the petition for the release of a new version. I understand your frustration, and I think that in sentiment, you'll get nothing but agreement from this list, but it's not that simple, I'm afraid. I'm certainly not one of the veterans here, but I've been aro

Re: [Webware-discuss] FormKit and EditableSelectField

2004-07-27 Thread Matt Feifarek
I'll have to experiment with this one, but my first thought would be to take out the self.valNotEmpty validator... that may be getting applied to the drop-down. I'll make a similar example here and test it, and let you know, but in the mean time, take that out. We use EditableSelect ALL THE TI

Re: [Webware-discuss] FormKit _convert

2004-07-26 Thread Matt Feifarek
Hi Marc. You don't "replace" the input; you get the values. form.values() gets them all; or you can poke at them field by field. The form object maintains the raw (unconverted) values, and the defaults, also. You could certainly poke into the request object itself (assuming that it is designed

Re: [Webware-discuss] FormKit again

2004-07-08 Thread Matt Feifarek
Marc Saric wrote: While fumbling around with validators I found, that they have two common disadvantages (for me): 1. The error-messages are hard-coded (i.e. english text). 2. Most of them actually test for two things at once, existance AND correct format of field-input. The Validator/Converters ar

Re: [Webware-discuss] Form & Session (Newbie)

2004-07-06 Thread Matt Feifarek
Hello, sir. I don't understand your question. Your say that submit is working correctly? What problem are you having? toshi-O wrote: Does anyone know about how to do this? Any help and suggestion appreciated. --- This SF.Net email sponsored by

Re: [Webware-discuss] Generating XML With Webware

2004-06-30 Thread Matt Feifarek
You can also subclass HTTPServlet rather than Page. I've done that to make servlets that make images or things like that. For this kind of thing, the "LiveHTTPHeaders" extension to mozilla/firefox is immensely useful. I Can't help with XUL, though ;-) CLIFFORD ILKAY wrote: I have added "applicati

Re: [Webware-discuss] Dynamic Forms Using FormKit

2004-06-29 Thread Matt Feifarek
You'll either have to use script, or have "more" and "fewer" actually post the form via different actions. When you post, you can use python code to add/remove fields to/from your form, seed the form again, and re-paint it. If your page is light enough, it may not be a big deal to make the ser

Re: [Webware-discuss] Binding Data to a FormKit SelectField

2004-06-28 Thread Matt Feifarek
I'm not sure what "pr" is, but I'm assuming it's output. What's happening in your code is that your're outputting the field before you give it choices. So, the tag will not reflect the changes that you made after you output it. Set your choices before you output the tags. CLIFFORD ILKAY wrote: H

Re: [Webware-discuss] FormKit validation problem with compound fields

2004-06-25 Thread Matt Feifarek
It's quite likely that this is simply an oversight. I'll check. Compound fields have sucked since we made FK; we mean to fix them "one day". A short-term solution would be to dig into the compound field itself and set validators on the individual field elements (which are in fact just fields). It

Re: [Webware-discuss] How to get rid of labels for buttons in FormKit

2004-06-23 Thread Matt Feifarek
CLIFFORD ILKAY wrote: That's very strange. We've never seen that sort of thing, and we use non-validated fields all of the time. I'll send the code to you privately. Roger. I specified: newForm.addField(Fields.TextField('mname',[Validators.MaxLength(25)],label="Middle Name")) It made no differen

Re: [Webware-discuss] How to get rid of labels for buttons in FormKit

2004-06-23 Thread Matt Feifarek
CLIFFORD ILKAY wrote: Setting an empty parameter for the error test made no difference. As soon as I put in some error test though, e.g. Validators.MaxLength(25) for middle name, the form posted properly. Speaking of MaxLength(), how does one specify the width of a text field in FormKit? I saw n

Re: [Webware-discuss] FormKit Validator question

2004-06-22 Thread Matt Feifarek
Marc Saric wrote: Although this is only for Intranet-use, I would like to add a Validator, which prevents SQL-injection on Db-queries. Has anyone tried to write one or an advice, where to look or how to tackle this problem? Hello, I'm the author of FormKit. We've never done this specifically, but I

Re: [Webware-discuss] How to get rid of labels for buttons in FormKit

2004-06-22 Thread Matt Feifarek
CLIFFORD ILKAY wrote: ... in the writeContent() method if self.form.fname.error(): self.writeln('''\tPlease enter a first name''') self.writeln('''\t%s''' % self.form.fname.tag()) else:

Re: [Webware-discuss] How to get rid of labels for buttons in FormKit

2004-06-20 Thread Matt Feifarek
Hi Clifford. FormKit is 3rd party software, not included with Webkit, but I'm one of the two authors, so I'll answer. The form.dump() method is very very simple, and not really meant for permanent use. It's just to make sure that your form works. Of course, it /can/ be used, but it's ugly, as y

Re: [Webware-discuss] from iis/asp to python

2004-06-08 Thread Matt Feifarek
Peter Maas wrote: I work at a little software company that has delivered some iis/asp based apps to a corporate customer. The apps are used by 50-1000 employees. The asp code is vbscript (quite messy) and I'd like to port these apps to Python. I run a test installation of Webware which is my favour

[Webware-discuss] Twisted Adapter

2004-06-04 Thread Matt Feifarek
A year ago or so, a few of you talked about integrating WK with Twisted. Those discussions of last year revolved around various integration levels: moving servlets to resources, for example, but at this point I'd like to consider Twisted just as an adapter: writing an adapter in Twisted to marsh

Re: [Webware-discuss] User Authentication

2004-05-27 Thread Matt Feifarek
I don't think that there is any such thing. We did a similar search a couple of years ago; it's pretty hard to remove this kind of thing from a larger system (say, Zope) as it tends to be pretty framework specific. Lots of people have rolled their own. We did. You may look at what Ian has put in

Re: [Webware-discuss] Webware Maturity

2004-05-19 Thread Matt Feifarek
Greg McClure wrote: I was curious about the maturity and activity on the Webware project. I have a new project that would benefit a great deal from being implemented in Python. However a lot of the various frameworks seem to be, well, orphaned or not very active. That's a concern because I don't wa

Re: [Webware-discuss] multiple submits and lost responses

2004-04-26 Thread Matt Feifarek
I'm not sure what the *best* solution to that is, but if you've got something that you like, and are merely having trouble with the blank page, I can help. self.endResponse() simply stops output; it doesn't send a redirect message to the browser. You want "self.sendRedirectAndEnd()" which you

Re: [Webware-discuss] Changing actions

2004-04-23 Thread Matt Feifarek
Ian Bicking wrote: Actions are always -- that's what defaultAction is there for. I don't think so. Actions only happen when there's _action_XXX in the request. But maybe you've changed this behavior. from Servlet.py (CVS): Great! But this is not what is in the current version. I was talking a

Re: [Webware-discuss] Changing actions

2004-04-22 Thread Matt Feifarek
Ian Bicking wrote: I don't think this is new to CVS, but I don't have a copy of 0.8.1 handy, and CVS history still scares me ;) It's at the end of Page.respond, where if no actions are found it calls defaultAction -- Yeah, I checked. It's not there. Only actions registered in actions() are lo

Re: [Webware-discuss] Changing actions

2004-04-22 Thread Matt Feifarek
Ian Bicking wrote: We have defaultAction now. It's only wonky because it doesn't call preAction/postAction, where all other actions do. But if we get rid of those, then it's not a problem. Anyway, defaultAction now just calls writeHTML. I don't think output is an action. Output is always; ac

Re: [Webware-discuss] Changing actions

2004-04-20 Thread Matt Feifarek
Here is a proposal: 1. having a "default action" construct that defaults to None, but can be set in a SitePage. If an action is in the request, it's run instead of default. 2. There be a method in page that sets a redirect address, but DOES NOT end the transaction. I suggest .setRedirectURI( )

Re: [Webware-discuss] Changing actions

2004-04-20 Thread Matt Feifarek
Ian Bicking wrote: I use 3 too, though I've sometimes added a "self.setup()" to my SitePage, and allowed servlets to override that instead of awake. It's more consistent because it has no trans argument, and I Agreed. We like that pattern, too. It's just basically adding a "postAwake" into th

Re: [Webware-discuss] Changing actions

2004-04-20 Thread Matt Feifarek
Ian Bicking wrote: Where it gets all annoying, though, is preAction and postAction, which are like an anemic form of the writeHTML, writeHead, writeTitle, writeStyleSheet etc. setup that Page has for normal requests. Or, where you don't want to write anything, but way to treat the action as a

Re: [Webware-discuss] Changing actions

2004-04-19 Thread Matt Feifarek
Ian Bicking wrote: If you're using Page.sendRedirectAndEnd it won't be a problem -- that immediately terminates the request. (I think it still calls sleep, but that's it) Yeah, that's new. We are using it, but it's weirdly inconsistent and changes behavior depending on when it is called. There

Re: [Webware-discuss] Changing actions

2004-04-19 Thread Matt Feifarek
Ian Bicking wrote: I haven't been using actions very much up until now, but I used them in the Wiki and found the method layout to be suboptimal. I think other people have had the same experience. Yep. We've been grouchy about this for a couple of years. We made very similar changes to what yo

Re: [Webware-discuss] What's in a style

2004-03-29 Thread Matt Feifarek
I like the design, but the small versions don't read well. They'll probably need to be adapted so that the reversed text is either axed or legible. And maybe a crop-in on the snake's face for the small one, for the same reason. This is pretty SOP for folks who do identity design (as you probabl

Re: [Webware-discuss] StreamOut Error

2004-03-29 Thread Matt Feifarek
We've seen this, too. It's a long-standing bug. Basically, our theory was that the app server keeps trying to send the output data, even when the connection has been lost. You'll see one of those messages for each "chunk" of data, 'till the buffer is empty. We got around this by moving huge bin

Re: [Webware-discuss] WebKit refreshing values

2004-02-24 Thread Matt Feifarek
Ian Bicking wrote: If it's the browser, I sometimes force a real refresh by putting some random number in a variable in the URL, e.g., somepage?z=10394. It's also pretty easy to set http headers that prevent caching: .setHeader( "Pragma", "no-cache" ) # for http1.0 clients .setHeader( "Cache-Co

Re: [Webware-discuss] Re: When to call sleep()

2004-02-20 Thread Matt Feifarek
[EMAIL PROTECTED] wrote: Another thing, how can i have action w/ long name, like this I can't write the def Save this(self), due to space trouble .. someone can help me ? Your action syntax is slightly wrong. (It may be the "old-style" syntax, though). The correct syntax is and then your

[Webware-discuss] Re: When to call sleep()

2004-02-19 Thread Matt Feifarek
Ben Parker wrote: awake. My view (I'd love to hear others) is that an unhandled exception in awake() is called a bug and should be fixed in development. I don't want the framework to force me to write sleep() with extra conditional logic to avoid clobbering an exception raised from a bug I may cod

Re: [Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3. 3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
Geoffrey Talvola wrote: That would mean that sleep() has to be coded "defensively" so that it still works properly even if awake() failed halfway through (which is a change to current semantics): I remember that this was basically the result of our discussions, yes. At the time, I thought it w

[Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3.3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
Shane Hathaway wrote: It sounds like a servlet can re-awaken in a different thread from the one in which it was put to sleep. If that happens, changes made before sleeping get registered with a different transaction than the transaction being committed. The new transaction is unaware of the chan

Re: [Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3. 3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
Geoffrey Talvola wrote: Aha. Exceptions can definitely cause sleep() to be skipped. If an exception happens during respond() or during awake() then sleep() does not get called. This smells like a bug to me. I always thought that this was funny. We wrap up the EndResponse(s) that we raise wi

Re: [Webware-discuss] RE: [ZODB-Dev] Webkit Threading and ZODB 3. 3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
Geoffrey Talvola wrote: I recommend setting those three options to the same value and seeing if your problem goes away. We run all of our app servers fixed that way, as per your earlier advice, actually. --- SF.Net is sponsored by: Speed S

Re: [Webware-discuss] RE: [ZODB-Dev] Webkit Threading and ZODB 3.3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
Ian Bicking wrote: If it helps, Webware preallocates its threads, and reuses them indefinitely. I'm not sure if this is the case if you are running scheduled tasks in Webware, though I believe that's implemented with a single preallocated thread as well. Maybe Matt or someone can confirm if

Re: [Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3. 3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
On Thu, Feb 19, 2004 at 02:17:59PM -0500, Geoffrey Talvola wrote: | No. A servlet will be used in one thread to handle a request, then it will | be put back into the servlet pool, and later it will be used in another | thread to handle another request. This is the same on every platform -- | Linu

[Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3.3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
On Thu, Feb 19, 2004 at 01:03:00PM -0500, Tim Peters wrote: | Alas, it wasn't clear in the original report whether threads *are* getting | created and destroyed, or whether the threads in the pool hang around | forever. If the latter, it doesn't matter how ofter tids get reused; | whether on Linux

[Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3.3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
On Wed, Feb 18, 2004 at 10:22:13PM -0500, Tim Peters wrote: | [Matt Feifarek, w/ some ugly thread symptoms seen only on Windows] | | Matt, what does this print for you if you run it on your Linux box? | | """ | import thread, time | | def worker(): | print thread.get_ident(

Re: [Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3.3a2: problems on Windows

2004-02-19 Thread Matt Feifarek
On Thu, Feb 19, 2004 at 01:48:48PM -0500, Shane Hathaway wrote: | | It sounds like a servlet can re-awaken in a different thread from the one | in which it was put to sleep. If that happens, changes made before | sleeping get registered with a different transaction than the transaction | being co

[Webware-discuss] Webkit Threading and ZODB 3.3a2: problems on Windows

2004-02-18 Thread Matt Feifarek
Hello. We've run into an interesting problem using ZODB 3.3a2 and Webware Webkit's threaded application server (http://webware.sourceforge.net) on Windows (but not Linux). The symptom that alerted us to the problem was that object attributes sometimes -- but inconsistently -- failed to be pers

[Webware-discuss] Re: FormKit - dynamic fields problem

2004-01-12 Thread Matt Feifarek
JZ wrote: I have a problem with dynamic added field to the form. The following code creates one input field and two submit buttons. I would like to add more (up to 4) input fields after pressing "more" button. It does not work and I have no idea how to solve it. First, you shouldn't test for "i

Re: [Webware-discuss] PickleRPCServlet problem

2003-10-10 Thread Matt Feifarek
We had to subclass the Server to get it to pass class instances around. Something like this: --- from Webware.MiscUtils.PickleRPC import Server, Transport class OurServer(Server): def __init__(self, uri): Server.__i

Re: [Webware-discuss] FormKit vs. FunFormKit

2003-09-23 Thread Matt Feifarek
Ian Bicking wrote: On Saturday, September 20, 2003, at 02:00 PM, Matt Feifarek wrote: One major difference seems to be that FFK expects you to use it to build your form layout as well as the tags and validation methods, whereas FormKit is less featureful, but (in my opinion) is more flexible

Re: [Webware-discuss] FormKit vs. FunFormKit

2003-09-20 Thread Matt Feifarek
Randall Randall wrote: On Friday, September 19, 2003, at 10:58 AM, [EMAIL PROTECTED] wrote: Hi there, What's the major difference between FormKit and FunFormKit? Which form kit should be used? One major difference seems to be that FFK expects you to use it to build your form layout as well as

Re: [Webware-discuss] dAlchemy's FormKit

2003-09-19 Thread Matt Feifarek
Randall Randall wrote: On Thursday, September 18, 2003, at 02:39 PM, Randall Randall wrote: On Thursday, September 18, 2003, at 12:54 PM, Matt Feifarek wrote: Randall Randall wrote: I need to create a number of forms that depend on how many objects there are to modify. If there are 3, there

Re: [Webware-discuss] dAlchemy's FormKit

2003-09-19 Thread Matt Feifarek
Aaron Held wrote: I'm still not very clear on the "recommended" way to create forms in awake(), since the way I'm doing it, by manipulating self._forms, doesn't seem very natural. If this is the right way, I can create an example for your Examples folder. If not, and you find the time before

Re: [Webware-discuss] dAlchemy's FormKit

2003-09-19 Thread Matt Feifarek
Randall Randall wrote: This should be no problem; we do it all the time. Just make sure that you're using different submit methods (actions) for each one. That seems tricky; I'd had every form using the same submit method and the method was cycling through every form in self._forms to find the su

Re: [Webware-discuss] dAlchemy's FormKit

2003-09-18 Thread Matt Feifarek
jects into one form? Look in the examples for the "MultiFormExample.py" and follow that precedent. -- Matt Feifarek dAlchemy --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. htt

Re: [Webware-discuss] Cancelled transfers

2003-09-02 Thread Matt Feifarek
[EMAIL PROTECTED] wrote: Matt, your problem sounds like a simple timeout limitation. Which means it should be possible to fix via a configuration value or similar. It seems like it should be that simple, but I'm not sure that the appserver has any way of knowing that the client has "stopped".

Re: [Webware-discuss] Cancelled transfers

2003-09-02 Thread Matt Feifarek
Dietmar Schwertberger wrote: I can see StreamOut Error: (10053, 'Software caused connection abort") in the console window. I don't have a solution for you, but I can say that we've seen this as well; we saw it a long time ago, when accidentally serving large binary files with a servlet. We wo

[Webware-discuss] User-created threads

2003-08-14 Thread Matt Feifarek
If I spawn task threads from a Webware applications (say to refresh some global application object every 10 minutes), it prevents the appserver from shutting down cleanly. At least, I think that's the problem. What's the correct/best way to add our own threads to applications and still have th

Re: [Webware-discuss] WK/FFK and Unicode?

2003-06-19 Thread Matt Feifarek
I've been researching a move of my website to Unicode instead of the Latin-1/Ascii mess that it's now. I realized that WK/FFK may limit that process; so my question is, is there a way (easy or hard) to have WK/FFK treat both input and output as unicode? That includes both Page.write() on the

Re: [Webware-discuss] Unicode trouble

2003-03-14 Thread Matt Feifarek
We've got a small webware-oriented "unicode howto" that may be instructive: http://dalchemy.com/opensource/unicodedoc/ [EMAIL PROTECTED] wrote: Hello, I'm wondering how can i handle unicode in webware. In fact i use openTAL as the template system. but when the template contain some lati

Re: [Webware-discuss] Thoughts on UserKit...

2003-03-01 Thread Matt Feifarek
Ian Bicking wrote: there when you needed it. It also doesn't force you to make a page public or not public -- a page could be public sometimes and private others. The SecurePage style doesn't allow that, and I don't really see That's a very good point. If we were to use a separate User/user

Re: [Webware-discuss] Thoughts on UserKit...

2003-03-01 Thread Matt Feifarek
Ian Bicking wrote: Registration and profile editing are both usually application-specific. I *would* like to have a login built into Webware (WebKit, actually), and password management would be easy enough too. That's consistent with our experience with our own "UserAccountKit" Then we add so

  1   2   >