def items(self, srs=None, profile=None):
items=[]<EOL>if not srs and not profile:<EOL><INDENT>for item in self.contents:<EOL><INDENT>items.append((item,self.contents[item]))<EOL><DEDENT><DEDENT>elif srs and profile:<EOL><INDENT>for item in self.contents:<EOL><INDENT>if (self.contents[item].srs == srs and<EOL>self.contents[item].profile == profile):<EOL><INDENT>items.append((item,self.contents[item]))<EOL><DEDENT><DEDENT><DEDENT>elif srs:<EOL><INDENT>for item in self.contents:<EOL><INDENT>if self.contents[item].srs == srs:<EOL><INDENT>items.append((item,self.contents[item]))<EOL><DEDENT><DEDENT><DEDENT>elif profile:<EOL><INDENT>for item in self.contents:<EOL><INDENT>if self.contents[item].profile == profile:<EOL><INDENT>items.append((item,self.contents[item]))<EOL><DEDENT><DEDENT><DEDENT>return items<EOL>
supports dict-like items() access