ImportError: No module named
Hi,
I'm building a webservice with ladon that returns a list of objects.
Under the code of ladon:
#coding: utf-8
from ladon.ladonizer import ladonize
from ladon.types.
from ladon.compat import PORTABLE_STRING
from DAO.ScheduleDAO import ScheduleDAO
class Schedule(
id = int
propertiesId = int
realtorId = int
customerId = int
comments = unicode
class UserService(
@ladonize(
def sendShedule(
try:
for schedule in schedules:
del scheduleUnit
return scheduleList
except:
print 'Erro ScheduleWs '
The extrutura my program will the following:
www
├── Business
│ └── Schedule.pyc
├── DAO
│ ├── __init__.py
│ └── ScheduleDAO.py
└── WS
├── handler.py
├── __init__.py
└── ScheduleWS.py
When running the WS (http://
ImportError: No module named DAO.ScheduleDAO
The DAO.ScheduleDAO module, as the name implies, is part of a package in which I perform the query on the database and return the arraylist of objects.
Have recreated several times a DAO class as well as the WS itself but nothing worked.
I would like your help for my case.
I looked on the internet, the scarce listed here and nothing is like mine!
Thank you!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- ladon Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Felipe
- Solved:
- Last query:
- Last reply: