[Mapguide-trac] [mapguide-trac] #2330: Not all methods available in IronPython console
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Aug 1 08:32:47 PDT 2013
#2330: Not all methods available in IronPython console
-----------------------+----------------------------------------------------
Reporter: ismael | Owner: jng
Type: defect | Status: new
Priority: medium | Milestone:
Component: Maestro | Version: 2.4.0
Severity: major | Keywords:
External_id: |
-----------------------+----------------------------------------------------
Comment(by jng):
I just tried this in the IronPython console with IMapDefinition (which has
some extension methods under the OSGeo.MapGuide.ObjectModels.MapDefinition
namespace
{{{
IronPython 2.7.1 (2.7.0.40) on .NET 4.0.30319.18052
Type "help", "copyright", "credits" or "license" for more information.
>>> conn = app.GetConnection(app.GetConnectionNames()[0])
>>> import clr
>>> clr.AddReference("OSGeo.MapGuide.MaestroAPI")
>>> import OSGeo
>>> dir(OSGeo.MapGuide.ObjectModels.MapDefinition.IMapDefinition)
['AddGroup', 'AddLayer', 'BackgroundColor', 'BaseMap', 'Clone',
'CoordinateSystem', 'CurrentConnection', 'Extents', 'GetIndex',
'InitBaseMap', 'InsertLayer', 'IsStronglyTyped', 'MapLayer',
'MapLayerGroup', 'Metadata', 'MoveDown', 'MoveDownGroup', 'MoveUp',
'MoveUpGroup', 'Name', 'PropertyChanged', 'RemoveAllGroups',
'RemoveAllLayers', 'RemoveBaseMap', 'RemoveGroup', 'RemoveLayer',
'ResourceID', 'ResourceType', 'ResourceVersion', 'Serialize',
'SetBottomDrawOrder', 'SetExtents', 'SetExtentsFromFirstAddedLayer',
'SetTopDrawOrder', 'ValidatingSchema', '__doc__', '__repr__']
>>> clr.ImportExtensions(OSGeo.MapGuide.ObjectModels.MapDefinition)
>>> dir(OSGeo.MapGuide.ObjectModels.MapDefinition.IMapDefinition)
['AddGroup', 'AddLayer', 'BackgroundColor', 'BaseMap', 'Clone',
'CoordinateSystem', 'CurrentConnection', 'Extents', 'GetGroupByName',
'GetGroupCount', 'GetGroupsForGroup', 'GetIndex', 'GetLayerByName',
'GetLayerCount', 'GetLayersForGroup', 'GetLayersWithoutGroups',
'InitBaseMap', 'InsertLayer', 'IsStronglyTyped', 'MapLayer',
'MapLayerGroup', 'Metadata', 'MoveDown', 'MoveDownGroup', 'MoveUp',
'MoveUpGroup', 'Name', 'PropertyChanged', 'RemoveAllGroups',
'RemoveAllLayers', 'RemoveBaseMap', 'RemoveGroup', 'RemoveLayer',
'RemoveLayerGroupAndChildLayers', 'ResourceID', 'ResourceType',
'ResourceVersion', 'Serialize', 'SetBottomDrawOrder', 'SetExtents',
'SetExtentsFromFirstAddedLayer', 'SetTopDrawOrder',
'UpdateDynamicGroupName', 'ValidatingSchema', '__doc__', '__repr__']
>>>
}}}
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2330#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list