234 |
|
|
235 |
class ConnectionNode(Node): |
class ConnectionNode(Node): |
236 |
|
|
237 |
# TODO: This method works with the datasource cleanup |
def expand(self): |
|
def __REWRITE__expand(self): |
|
238 |
self.expanded = 1 |
self.expanded = 1 |
239 |
connection = self.navigator.connections.getConnection(self.connection, login=1) |
connection = self.navigator.connections.getConnection(self.connection, login=1) |
240 |
|
|
249 |
SchemaTypeNode(self.navigator, self.tree, self.node, |
SchemaTypeNode(self.navigator, self.tree, self.node, |
250 |
introspector=connection.introspector, type=schema, name=name) |
introspector=connection.introspector, type=schema, name=name) |
251 |
|
|
|
return |
|
|
|
|
|
def expand(self): |
|
|
self.expanded = 1 |
|
|
connections = self.navigator.connections |
|
|
dataObject = connections.getDataObject(self.connection, "object") |
|
|
connections.requestConnection(dataObject, self.connection) |
|
|
|
|
|
schemaTypes = dataObject.getSchemaTypes() |
|
|
if not schemaTypes: |
|
|
return |
|
|
|
|
|
schemaTypes.sort() |
|
|
for schema, name, keep in schemaTypes: |
|
|
if keep: |
|
|
SchemaTypeNode(self.navigator, self.tree, self.node, |
|
|
introspector=dataObject, type=schema, name=name) |
|
|
|
|
|
return |
|
|
|
|
252 |
def getLabel(self): |
def getLabel(self): |
253 |
return self.connection |
return self.connection |
254 |
|
|
268 |
def expand(self): |
def expand(self): |
269 |
self.expanded = 1 |
self.expanded = 1 |
270 |
tree = self.tree |
tree = self.tree |
271 |
schemas = self.introspector.getSchemaList(self.type) |
schemas = self.introspector.find(type=self.type) |
272 |
if not schemas: |
if not schemas: |
273 |
return |
return |
274 |
schemas.sort() |
schemas.sort() |
284 |
return "" |
return "" |
285 |
def expand(self): |
def expand(self): |
286 |
self.expanded = 1 |
self.expanded = 1 |
287 |
for field in self.schema.getChildSchema(self.schema): |
for field in self.schema.fields(): |
288 |
FieldNode(self.navigator, self.tree, self.node, field=field) |
FieldNode(self.navigator, self.tree, self.node, field=field) |
289 |
|
|
290 |
|
|