Author: remi
Date: 2008-09-22 12:38:05 +0200 (Mon, 22 Sep 2008)
New Revision: 1953
Modified:
software_suite_v2/tuxware/tuxhttpserver/trunk/src/resources/ResourceStatus.py
Log:
* deleted the dongle presence precondition in some services
Modified:
software_suite_v2/tuxware/tuxhttpserver/trunk/src/resources/ResourceStatus.py
===================================================================
---
software_suite_v2/tuxware/tuxhttpserver/trunk/src/resources/ResourceStatus.py
2008-09-22 10:34:40 UTC (rev 1952)
+++
software_suite_v2/tuxware/tuxhttpserver/trunk/src/resources/ResourceStatus.py
2008-09-22 10:38:05 UTC (rev 1953)
@@ -5,11 +5,6 @@
def funct_status_events(id_client, parameters):
content_struct = copy.deepcopy(DEFAULT_CONTENT_STRUCT)
content_struct['root']['result'] = getStrError(E_TDREST_SUCCESS)
-
- if not Glb_DonglePresent:
- content_struct['root']['result'] = getStrError(E_TDREST_FAILED)
- content = structToXML(content_struct, True)
- return DEFAULT_HEADERS, content
if Glb_ClientController.clientExists(id_client):
client = Glb_ClientController.getClient(id_client)
@@ -48,11 +43,6 @@
'status_name' : 'string',
}
- if not Glb_DonglePresent:
- content_struct['root']['result'] = getStrError(E_TDREST_FAILED)
- content = structToXML(content_struct, True)
- return DEFAULT_HEADERS, content
-
result, params = parseParameters(parameters, p_fmt)
if result:
@@ -96,11 +86,6 @@
content_struct = copy.deepcopy(DEFAULT_CONTENT_STRUCT)
content_struct['root']['result'] = getStrError(E_TDREST_SUCCESS)
- if not Glb_DonglePresent:
- content_struct['root']['result'] = getStrError(E_TDREST_FAILED)
- content = structToXML(content_struct, True)
- return DEFAULT_HEADERS, content
-
states = Glb_TuxDrv.GetAllStatusState()
if len(states) > 0:
states = states[:-1]
@@ -142,11 +127,6 @@
'value' : 'string',
}
- if not Glb_DonglePresent:
- content_struct['root']['result'] = getStrError(E_TDREST_FAILED)
- content = structToXML(content_struct, True)
- return DEFAULT_HEADERS, content
-
result, params = parseParameters(parameters, p_fmt)
if result:
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn