[Webware-discuss] How do I disable MKBrowser from the Context Menu

2005-05-23 Thread Uzo Uzo
I wish to disable MKBrowser from the Context Menu, It's not in my Application.config file. Thanks Uzo The Opportunity Gap Between what is and what could be exists a potential gap. This gap is an opportunity gap; With every passing of time, it closes. The gap becomes closed, when what was beco

[Webware-discuss] When Apache can't connect to webware

2005-02-15 Thread Uzo Uzo
Basically, I can telnet to the app server's port. I am using mod_webkit, when I go to www.mysite.com/WKMod, I get an Internal Server Error, when I look at my httpd error file, I see the following. [Tue Feb 15 16:34:03 2005] [error] (9)Bad file descriptor: cannot scan servlet headers [Tue Feb 15 1

[Webware-discuss] How are you guys dealing with web security?

2004-11-12 Thread Uzo Uzo
Hey all,   How are you all dealing with web security?  Preventing SQL injection attacks and cross site scripting attacks...   UzoThe Opportunity Gap   Between what is and what could be exists a potential gap.This gap is an opportunity gap; With every passing of time, it closes.The gap becomes close

[Webware-discuss] Transactions with MiscUtils.DBPool

2004-11-07 Thread Uzo Uzo
I am using DBPool with pyPgSQL.  I am curious as to how transactions work with DBPool.   Suppose I have the following.   conn = dbpool.getConnection() c = conn.cursor() try:   c.execute(foo1...) # inserts and updates   c.execute(foo2...)   c.execute(foo3...)   c.close(); conn.commit(); conn.clo

Re: [Webware-discuss] Webware WebKit Session Data Cross Shared Problem

2004-10-25 Thread Uzo Uzo
Hello,   I would ask you to check where your cart data is stored.  How are you storing it?  Is it inside of a class?  Is it inside the __init__ function?  I once experienced such a thing, the problem was in how/where I declared my data.    UzoLincoln Han <[EMAIL PROTECTED]> wrote: Hi,I just recent

[Webware-discuss] Is bytecode only deployment with webware possible?

2004-10-21 Thread Uzo Uzo
Pretty much, I want to just have my .pyc without the source files on my production public web server as an additional security precaution.  Is this possible?The Opportunity Gap   Between what is and what could be exists a potential gap.This gap is an opportunity gap; With every passing of time, it 

Re: [Webware-discuss] trying to refactor query execution codes using DBPool

2004-10-21 Thread Uzo Uzo
What do you mean by .commit()?  do you mean c.commit()?maluke <[EMAIL PROTECTED]> wrote: it should be .commit()-- малюк [ [EMAIL PROTECTED] // ICQ: 39027534 ]The Opportunity Gap   Between what is and what could be exists a potential gap.This gap is an opportunity gap; With every passing of time, it

[Webware-discuss] trying to refactor query execution codes using DBPool

2004-10-21 Thread Uzo Uzo
I have a file MyDataPool.py   from MiscUtils.DBPool import DBPool from pyPgSQL import PgSQL dbpool = DBPool(PgSQL, 10, 'localhost::foo:user1:')   Then in all my python code and servlets I find myself constantly doing   conn = dbpool.getConnection c = conn.cursor() c.execute(QUERY) c.close conn.comm

Re: [Webware-discuss] How does one use Configurable from a PSP file?

2003-12-01 Thread Uzo Uzo
I added a printConfig() statement, it prints the configuration for my SecurePage, which is also extended...  So I guess my question is, if one extends a class that already has a configurable, is there any way for the new class to have it's own configurable?  I can't just use an instance of it since

[Webware-discuss] How does one use Configurable from a PSP file?

2003-12-01 Thread Uzo Uzo
I have <%@ page import="MiscUtils.Configurable:Configurable " %> <%@ page extends=Configurable"%>       return "Configs/Foo.config"   later on, I try to test for self.hasSetting('bar') and I get nothing even tho 'bar':123 does exist in the config file...   What am I missing?   Uzo Do you Yahoo!?

Re: [Webware-discuss] Using Cookie from webkit

2003-11-30 Thread Uzo Uzo
n and validate the expiration of the cookie everytime?  Also where is the best place to handle it, in the awake or respond cycle?    Peter Lyons <[EMAIL PROTECTED]> wrote: Uzo Uzo wrote:> def setMyCookie(self):> cookie = Cookie('val', 'key')> t = timestuf

[Webware-discuss] Using Cookie from webkit

2003-11-28 Thread Uzo Uzo
I have  a SecurePage which is inherited from SitePage. In my awake cycle of the SecurePage, I handle authentication, if the authentication is successful, then I set my cookie.   I have something like this   def setMyCookie(self):    cookie = Cookie('val', 'key')    t = timestuff()    cookie.setExpi

[Webware-discuss] users of WebKit.SidebarPage wouldn't you like a writeFooter()

2003-10-19 Thread Uzo Uzo
Shouldn't SidebarPage have a writeFooter()? I personally do not feel like including a footer anytime I have a writeContent(), I will like to extend SidebarPage once and define my writeFooter() only once. I am definitely going to be modifing my SidebarPage to support this and I feel that it is an

RE: [Webware-discuss] sending email locking my application

2003-10-13 Thread Uzo Uzo
how do I spawn a new thread? --- Ian Sparks <[EMAIL PROTECTED]> wrote: > > Uzo wrote : > >> > A certain part of my web application sends out > email, > for whatever reason, when I reached this part > webware > locked up, > << > > It should only lock up for the request (thread) that > it is proces

[Webware-discuss] sending email locking my application

2003-10-10 Thread Uzo Uzo
A certain part of my web application sends out email, for whatever reason, when I reached this part webware locked up, now I understand that it could be improperly configured webserver, but what bothers me is that webware is locked up and waiting for the email to go through before processing other

[Webware-discuss] When should one use TaskKit?

2003-09-21 Thread Uzo Uzo
I have a web application, and at the end of every day, I do love to run a task and generate reports... It seems that if I use TaskKit, I have to go to a page to activate it. I do love my tasks to start automatically everytime I start my web application without me actually going to a page to start

[Webware-discuss] writeStyleSheet() acting funny

2003-09-17 Thread Uzo Uzo
I have my pages my "SitePage" class which inherited the Page class. in SitePage I declared my own writeStyleSheet(), this function gets called whenever any page is loaded, I know this cuz of a simple print statement in there, yet my pages don't actually have the string returned anywhere in it. Th

[Webware-discuss] retrieving oid/rowid value with DBPool

2003-08-14 Thread Uzo Uzo
I am using DBPool and PostgreSQL, After inserting an entry into my database, I wish to know the OID. From python. One could do r=c.query("..."), and access this information via r.oidValue. Is there anyway to do this with DBPool. I have something like c=conn.cursor() c.execute(QueryStr) After t

[Webware-discuss] On using DBPool

2003-08-11 Thread Uzo Uzo
I have a Shop Context in its __init__.py I initalized DBPool from MiscUtils.DBPool import DBPool from pyPgSQL import PgSQL def contextInitialize(appServer, path): # Set up DBpool startup and shutdown - 7/6/03 appServer._dbpool = DBPool(PgSQL, 5, 'localhost::foodb:foouser:')

[Webware-discuss] Advice on building an application with webware needed

2003-08-04 Thread Uzo Uzo
I wish to create a web video rental application similar to netflix and I want to use Webware.But, I am not so sure which components to use. From looking at the docs it looks like I can use middlekit all by itself, then sometimes it looks like I can just use PSP/webkit without middlekit. I wis