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
from gnukhata.tests import *
ImportError: No module named gnukh
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', action='index'
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
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
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 }
T
I need to define a FK on a single field out of these
say: CODE
I am unable to do that...
Mr. 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 firs
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 }
T
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)
File
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 m