Subversion Repositories SmartDukaan

Rev

Rev 1491 | Rev 1596 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1491 Rev 1583
Line 258... Line 258...
258
    user_communication.subject = subject
258
    user_communication.subject = subject
259
    user_communication.message = message
259
    user_communication.message = message
260
    user_communication.communication_timestamp = datetime.datetime.now()
260
    user_communication.communication_timestamp = datetime.datetime.now()
261
    session.commit()
261
    session.commit()
262
    
262
    
-
 
263
def get_user_communication_by_id(user_communication_id):
-
 
264
    return UserCommunication.get_by(id = user_communication_id)
-
 
265
    
-
 
266
def get_user_communication_by_user(user_communication_user_id):
-
 
267
    return UserCommunication.query.filter_by(user_id = user_communication_user_id).all()
-
 
268
 
-
 
269
def get_all_user_communications():
-
 
270
    return UserCommunication.query.all()
-
 
271
 
263
def get_address(address_id):
272
def get_address(address_id):
264
    address = Address.get_by(id=address_id)
273
    address = Address.get_by(id=address_id)
265
    return address
274
    return address
266
 
275
 
267
def get_social_service(service_id):
276
def get_social_service(service_id):