From 77178c8acce0258f04d9a6a9f465f7fe2cc7f8c8 Mon Sep 17 00:00:00 2001
From: ansgar <ansgar@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Tue, 30 Mar 2010 15:40:56 +0000
Subject: [PATCH] added default py import to mol; fixed missing py export in
 residue view

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1903 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/base/pymod/__init__.py                | 6 ++++++
 modules/mol/base/pymod/export_residue_view.cc | 1 +
 2 files changed, 7 insertions(+)

diff --git a/modules/base/pymod/__init__.py b/modules/base/pymod/__init__.py
index 08f9f9ca5..3d2137f7e 100644
--- a/modules/base/pymod/__init__.py
+++ b/modules/base/pymod/__init__.py
@@ -18,6 +18,11 @@
 #------------------------------------------------------------------------------
 from _base import *
 
+from ost import geom
+from ost import io
+from ost import mol
+from ost import seq
+
 try:
   from ost import gfx
   scene = gfx.Scene()
@@ -29,3 +34,4 @@ try:
   from ost import img
 except ImportError:
   pass
+
diff --git a/modules/mol/base/pymod/export_residue_view.cc b/modules/mol/base/pymod/export_residue_view.cc
index 54780c0d3..29943f54a 100644
--- a/modules/mol/base/pymod/export_residue_view.cc
+++ b/modules/mol/base/pymod/export_residue_view.cc
@@ -57,6 +57,7 @@ void export_ResidueView()
     .def("GetChain",&ResidueView::GetChain)
     .def("GetAtomList", &ResidueView::GetAtomList,
          return_value_policy<copy_const_reference>())
+    .def("GetAtomCount", &ResidueView::GetAtomCount)
     .add_property("atoms",
                   make_function(&ResidueView::GetAtomList,
                                 return_value_policy<copy_const_reference>()))
-- 
GitLab