version 1.24, 2004/04/05 21:54:42
|
version 1.26, 2004/04/06 10:55:16
|
Line 261 class OSAS_add_contextData(Folder):
|
Line 261 class OSAS_add_contextData(Folder):
|
return pt() |
return pt() |
|
|
|
|
def addContextData2(self,path,collection,context,link,label,description,content_type,responsible,weight,credits=None): |
def addContextData2(self,path,collection,link,label,description,content_type,responsible,weight,credits=None): |
"""Hinzufuegen der Resource""" |
"""Hinzufuegen der Resource""" |
splitted=path.split("/") |
splitted=path.split("/") |
#print "BLU" |
#print "BLU" |
Line 272 class OSAS_add_contextData(Folder):
|
Line 272 class OSAS_add_contextData(Folder):
|
#link=TOBEDONE" |
#link=TOBEDONE" |
"""Hinzufügen der Ressource""" |
"""Hinzufügen der Ressource""" |
|
|
params=urllib.urlencode({'id':id,'title':title,'link':link,'label':label,'description':description,'content_type':content_type,'responsible':responsible,'weight':weight,'credits':credits,'metalink':metalink}) |
params=urllib.urlencode({'id':id,'title':title,'link':link,'label':label,'description':description,'contentType':content_type,'responsible':responsible,'weight':weight,'credits':credits,'metalink':metalink}) |
|
|
retStr=urllib.urlopen(collection+"/addResource",params).read() |
retStr=urllib.urlopen(collection+"/addResource",params).read() |
|
return retStr |
if not retStr: |
if not retStr: |
return "An Error occured adding the resource\n" |
return "An Error occured adding the resource\n" |
|
|