--- OSAS/OSA_system/OSAS_addfiles.py 2004/04/15 12:56:41 1.28 +++ OSAS/OSA_system/OSAS_addfiles.py 2004/04/15 21:30:42 1.29 @@ -305,22 +305,13 @@ class OSAS_add_contextData(Folder): 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() - return retStr + if not retStr: return "An Error occured adding the resource\n" + urllib.urlopen(collection+"/"+id+"/ECHO_getResourceMD").read() - #exec("collection_object=self"+collection) - - - #ECHO_collection.manage_addECHO_resource(collection_object,id,title,label,description,content_type,responsible,link,metalink,credits,weight,RESPONSE=None) - #print "HI5" - #try: - # getattr(collection_object,id).ECHO_getResourceMD() - #except: - # """nothing""" - #return "BLUByy" return self.REQUEST.RESPONSE.redirect(self.REQUEST['URL2']+'?path='+path) manage_options = Folder.manage_options+(