[glom] PyGlom: Don't use deprecated boost::python::args.



commit 81a2c4623224309158f6e9263e97502d62398ee5
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 27 22:29:30 2010 +0200

    PyGlom: Don't use deprecated boost::python::args.
    
    * glom/python_embed/python_module/py_glom_module.cc: Use boost::python::arg()
    instead of boost::python::args(), because I noticed that args is deprecated.

 ChangeLog                                         |    7 +++++++
 glom/python_embed/python_module/py_glom_module.cc |   14 +++++++-------
 2 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 70d1924..c52fc38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-27  Murray Cumming  <murrayc murrayc-x61>
+
+	PyGlom: Don't use deprecated boost::python::args.
+	
+	* glom/python_embed/python_module/py_glom_module.cc: Use boost::python::arg() 
+	instead of boost::python::args(), because I noticed that args is deprecated.
+
 1.14.1:
 
 2010-04-27  Murray Cumming  <murrayc murrayc com>
diff --git a/glom/python_embed/python_module/py_glom_module.cc b/glom/python_embed/python_module/py_glom_module.cc
index a3468a8..fc8cfa7 100644
--- a/glom/python_embed/python_module/py_glom_module.cc
+++ b/glom/python_embed/python_module/py_glom_module.cc
@@ -124,13 +124,13 @@ BOOST_PYTHON_MODULE(glom_1_14)
     "\n"
     "    record.related['invoice_lines'].sum('total_price')\n")
 
-    .def("sum", &PyGlomRelatedRecord::sum, boost::python::args("field_name"),
+    .def("sum", &PyGlomRelatedRecord::sum, boost::python::arg("field_name"),
       "Add all values of the field in the related records.")
-    .def("count", &PyGlomRelatedRecord::sum, boost::python::args("field_name"),
+    .def("count", &PyGlomRelatedRecord::sum, boost::python::arg("field_name"),
       "Count all values in the field in the related records.")
-    .def("min", &PyGlomRelatedRecord::sum, boost::python::args("field_name"),
+    .def("min", &PyGlomRelatedRecord::sum, boost::python::arg("field_name"),
       "Minimum of all values of the field in the related recordss.")
-    .def("max", &PyGlomRelatedRecord::sum, boost::python::args("field_name"),
+    .def("max", &PyGlomRelatedRecord::sum, boost::python::arg("field_name"),
       "Maximum of all values of the field in the related records.")
     .def("__getitem__", &PyGlomRelatedRecord::getitem)
     .def("__len__", &PyGlomRelatedRecord::len)
@@ -140,15 +140,15 @@ BOOST_PYTHON_MODULE(glom_1_14)
     "A collection of methods to programatically change the Glom UI, performing some tasks that might otherwise be done by the user via the mouse and keyboard.  A :class:`UI` object is passed to button scripts, allowing them to control the user interface.")
 
     .def("show_table_details", &PyGlomUI::show_table_details,
-      boost::python::args("table_name", "primary_key_value"),
+      boost::python::arg("table_name"), boost::python::arg("primary_key_value"),
       "Navigate to the specified table, showing its details view for the specified record.")
     .def("show_table_list", &PyGlomUI::show_table_list,
-       boost::python::args("table_name"),
+       boost::python::arg("table_name"),
       "Navigate to the specified table, showing its list view.")
     .def("print_layout", &PyGlomUI::print_layout,
       "Print the current layout for the current table.")
     .def("print_report", &PyGlomUI::print_report,
-      boost::python::args("report_name"),
+      boost::python::arg("report_name"),
       "Print the specified report for the current table.")
     .def("start_new_record", &PyGlomUI::start_new_record,
       "Start a new empty record for the current table, offering the empty record in the UI.")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]