diff -r 94c11207aa6f -r 6014ef82a98a PLCControler.py --- a/PLCControler.py Fri Sep 30 17:16:02 2011 +0200 +++ b/PLCControler.py Sun Oct 09 19:51:14 2011 +0200 @@ -311,7 +311,14 @@ self.Project.setcontentHeader(properties) if name is not None or properties is not None: self.BufferProject() - + + # Return project name + def GetProjectName(self, debug=False): + project = self.GetProject(debug) + if project is not None: + return project.getname() + return None + # Return project properties def GetProjectProperties(self, debug = False): project = self.GetProject(debug) @@ -2695,6 +2702,13 @@ return True #------------------------------------------------------------------------------- +# Search in Current Project Functions +#------------------------------------------------------------------------------- + + def SearchInProject(self, criteria): + return self.Project.Search(criteria) + +#------------------------------------------------------------------------------- # Current Buffering Management Functions #-------------------------------------------------------------------------------