No module name tests

2011-06-01 Thread SONAL ...
Hey i have directory structure as gkwebapp/gnukhata-webapp/gnukhata/tests/functional in which we have our test files. When i run tests, get following error: Traceback (most recent call last): File test_account.py, line 1, in module from gnukhata.tests import * ImportError: No module named

Problem running pylons webtests. ImportError and TestController is not defined error.

2011-05-20 Thread SONAL ...
I have directory structure as gnukhata/tests/functional. In functional folder I have web tests files. Following is the sample tests: *from gnukhata.tests import * class TestVendorController(TestController): def test_index(self): response = self.app.get(url(controller='vendor',

xmlrpclib fault 8002

2011-03-26 Thread SONAL ...
I Sonal Dolas work on python for project. We connect to server as follows: *self.server = xmlrpclib.Server(http://localhost:7081;, allow_none=True)* I get following errror when the particular file is run: * File /usr/lib/python2.6/xmlrpclib.py, line 1199, in __call__* *return self.__send

Re: How to link foreign keys primary keys using python?

2006-06-13 Thread sonal
Hi Mr. Steve, The *indexes* i am using are lists... The code for creation of the PartionedPK is given below... *** class PartitionedPK(object): def __init__(self, name, save_to, fields): self.name= name

Re: How to link foreign keys primary keys using python?

2006-06-12 Thread sonal . patankar
Hi Mr. George, Let me try it again... I am not using any relational database to store the required tables with primary keys foreign keys When I say PRIMARY KEY = 1. It means an index is created on the specified fields (Out of various fields given in the comma separated txt file)

Re: How to link foreign keys primary keys using python?

2006-06-12 Thread sonal . patankar
MTD wrote: Your post is confusing. Here is my advice: investigate the use of dictionaries. Dictionaries can allow you to define data in the form { key:data }, e.g. { area_code : area_data } { (area_code,school_code) : school_data } { (school_code,student_code) : student_data } Thanx Mr.

Re: How to link foreign keys primary keys using python?

2006-06-12 Thread sonal
. George, I thought i must explain the code i am dealin with, for better understanding.., but i am sorry i confused you all the more (incase, u want to view the code please refer to the code snippets in my first query posted) Thanks regards, sonal -- http://mail.python.org/mailman/listinfo/python

Re: How to link foreign keys primary keys using python?

2006-06-12 Thread sonal
MTD wrote: Your post is confusing. Here is my advice: investigate the use of dictionaries. Dictionaries can allow you to define data in the form { key:data }, e.g. { area_code : area_data } { (area_code,school_code) : school_data } { (school_code,student_code) : student_data } Thanx Mr.

How to link foreign keys primary keys using python?

2006-06-09 Thread sonal
Hi all, I hv started with python just recently... and have been assigned to make an utility which would be used for data validations... In short we take up various comma separated data files for eg: area.txt, school.txt, students.txt and so on (ok?!?) now, 1. area code used in the school.txt