summaryrefslogtreecommitdiff
path: root/taurus/lib
Commit message (Collapse)AuthorAge
* Fix bug-344: add missing init filescpascual2015-03-24
| | | | | Two __init__.py files were found missing in test dirs, making them not importable. Add them
* Fix bug-328: make QtTestCase compatible with PyQt4.4cpascual2015-03-16
| | | | | | The QtTestCase assumes QIcon has fromTheme, which is not compatible with PyQt4.4. Fix by using taurus.resource.getThemeIcon instead.
* Merge branch 'hotfix-rtd' into developzreszela2015-03-12
|\ | | | | | | | | Conflicts: doc/source/conf.py
| * Support non-list in keys ModuleExplorer.getAllcpascual2015-03-02
| | | | | | | | | | The current implementation of ModuleExplorer.getAll only allows keys referring to list values. Implement support for non-lists as well.
| * Update URLs in release infocpascual2015-03-02
| | | | | | | | | | | | Update the project urls contained in the release modules of taurus and sardana (from packages.python.org to the corresponding sardana and taurus domains)
| * Update URL in licence header for tauruscpascual2015-03-02
| | | | | | | | | | Latest change in Tango web page broke the project URL in the licence notices. Update it to http://taurus-scada.org
* | Fix bug 339coutinho2015-03-10
| |
* | Add unittest for bug 339cpascual2015-03-10
| | | | | | | | Add Bug339_TestCase to test_ui
* | Allow to use BaseWidgetTestCase without a _klasscpascual2015-03-10
| | | | | | | | | | | | | | BaseWidgetTestCase derived classes are skipped if they do not define the _klass member. This artificially limits the usability of this base class. Relax this restriction (just skip the instantiation of the widget if _klass is not given).
* | Document the with_ui argument to loadUicpascual2015-03-09
| | | | | | | | Add documentation for argument with_ui, which was missing.
* | Fix bug in encode methodcfalcon2015-03-09
| | | | | | | | | | TangoAttribute does not encode properly the DataType.DevEncoded. Add a switch/case option to handle these parameter type.
* | Implement feat-333: busy flag in taurus worker threadscfalcon2015-03-02
| | | | | | | | | | | | | | | | | | - Add a boolean attribute, "busy" to the Worker class. If the thread is working, busy will be True, otherwise, it will be False. - Add to Worker class a getter method "isBusy()ยท to read this flag. - Add to ThreadPool class a method "getNumOfBusyWorkers()". This method returns the current number of busy worker threads.
* | Fix bug-331: Polling continues for unlistened attributecpascual2015-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a regression in Taurus 3.4 regarding removing attributes from polling. Calling "removeListener" on an Attribute does not mean that the attribute is removed from polling, although it does mean the listener is no longer invoked. Also, there's another related bug that has been around longer, which means that a device that no longer has any polled attributes is still polled for an empty list of attributes, which does not seem to make any sense. Fix both issues. Both the bug report and the solution were kindly provided by Johan Forsberg
* | Update URLs in release infocpascual2015-02-17
| | | | | | | | | | Update the project urls contained in the release modules of taurus and sardana (from packages.python.org to the corresponding sardana and taurus domains)
* | Update URL in licence header for tauruscpascual2015-02-17
|/ | | | Latest change in Tango web page broke the project URL in the licence notices. Update it to http://taurus-scada.org
* Fix import error in provided pint modulecpascual2015-02-04
| | | | importing taurus.external.pint.pint fails. Fix it by changing some internal absolute imports to relative
* Install ui dirs as package_data instead of packagescpascual2015-02-04
| | | | | | | | | "ui" dirs are treated by setup.py as packages (submodules) and installed as such. This forces the ui dir to have a __ini__.py file. This was necessary when ui dirs also contained compiled ui_*.py files, but since SEP11 it is no longer the case. Therefore, remove all __init__.py files from ui dirs and install the ui dirs as package_data instead of packages. Also force the ui files to be added explicitly.
* bump taurus version to 3.4.0cpascual2015-02-03
|
* Fix bug-285: --skip-gui-tests does not workcpascual2015-02-03
| | | | Make Taurus testsuite --skip-gui-test feature work
* Fix bug-319: QPixmapWidget setAligment doesn't work from designercoutinho2015-02-02
| | | | Make a local copy of the given alignment in QPixmapWidget.setAlignment
* Fix segfault when exiting Assistant in PyQt4.4cpascual2015-02-02
| | | | Pass the parent in the constructor of the assistant to prevent a segfault on exit when using PyQt4.4
* Make help module compatible with PyQt4.4cpascual2015-02-02
| | | | | | | | | | Changes include: - change new style signals to old style - avoid QIcon.fromtheme calls - Use QVariant for the return of QTextBrowser.loadResource() - Avoid using "super" outside __init__ - pass parent into constructor of QHelpEngine (avoids segfaults on exit) Also a few docstring and other minor changes
* Implement feat-290: Taurus help widgetscoutinho2015-02-02
| | | | | | | | | - Add taurus.external.qt.QtHelp - Add widget taurus.qt.qtgui.help.AboutDialog - Add widget taurus.qt.qtgui.help.HelpBrowser - Add function taurus.qt.qtgui.help.Assistant Widgets are visible in taurusdesigner.
* Add unit test for the Timer classcpascual2015-01-30
| | | | Add a unit test for checking the accuracy of the Timer class.
* Add error handlingcoutinho2015-01-30
| | | | Protect some calls in TangoDevice related to asynchronous polling.
* Compensate for drifting when possiblecoutinho2015-01-30
| | | | | Add strict_timing mode to the taurus Timer class (and make it the default mode) to compensate for the time used by the function call.
* First version of feature-189: better tango pollingcoutinho2015-01-30
| | | | | | | | | | The poll method has new keyword arguments to support asynch/reply calls. The TangoDevice.poll has been changed to implement the new algorithm. The drift drift problem is not solved yet.
* Fix bug-305: wrong ui creation for TaurusArrayEditorcpascual2015-01-29
| | | | | | When using a TaurusArrayEditor in taurusdesigner, the TaurusArrayEditor "header" property in the ui file is set to taurus.qt.qtgui.container. Change it to taurus.qt.qtgui.plot.
* Fix bug-240: polling error when deleting attributecoutinho2015-01-26
| | | | | When an attribute is being removed from the polling list, the function is not protected against inexisting attribute. Protect it.
* Fix bug-313: show min does not work on TaurusPlotcpascual2015-01-26
| | | | Fix copy-paste error that linked the show min trigger with show max.
* Add a util to find the absolute path for an executableMarc Josep Rosanes Siscart2015-01-21
| | | | | Util used to find the path of a given executable (similar to the which command in a Unix system)
* Implement feat-308: Add filter for same-value eventscpascual2015-01-21
| | | | | | | | Add RepeatedEventFilter class filter to taurus.core.util.eventfilters. Its instances keep track of the last event for each source and type and blocks any periodic or change events whose evt_value.value is identical to the previous one. If evt_value.value is not available, the whole evt_value is used for comparison and as a future reference.
* Implement feats 307 and 309: better event filteringcpascual2015-01-21
| | | | | | | | | | | | | | | - Implement feature 307: add filtering capabilities at taurus core level. Add the taurus.core.util.eventfilters.filterEvent method use it on TaurusBaseComponent to insert an extra step of filtering before passing the event to the main Qt thread. Filters at this stage are managed just like the Qt thread ones via {set,insert,get}EventFilters methods by using the preqt=True keyword argument - Implement feature 309: add fireEventBufferPeriod property to TaurusBaseComponent to enable event buffering (events are temporarilly held and released only with a given periodicity). If more than one event arrives from the same source and with the same type, only the most recent one is released and the previous are discarded.
* Make SingletonWorker.size() return a valuesergi_rubio2015-01-20
| | | | | SingletonWorker.size returns None instead of a value (which is a bug). Make it return the size.
* Fix invalid ranges in TaurusInputPanelcfalcon2015-01-19
| | | | | | create_integer_panel method does not work because the limit range is out of the valid limits. Use numpy instead of sys to set a valid range for integer_panel and float_panel.
* Fix bug-242: inconsistent pending ops in TaurusValueComboboxcpascual2015-01-16
| | | | | | | | | | In some cases, when one creates a TaurusValueCombobox and sets the model after having called addValueNames, the widget is left in an inconsistent "pending operations" state (the write value shown is the same as the one applied, but the widget reports having pending operations -i.e. it is "blue"). Fix it by calling emitValueChanged() at the end of the setModel method.
* Fix bug-300: Exception in TaurusValue for PyQt<4.6cfalcon2015-01-14
| | | | | | | Fix problems with old Qt versions(<4.6). Use Qt.Qt.AlignmentFlag(0) instead Qt.Qt.Alignment(0) to set the widget alignment mode. Remove to use of kwargs in the calls of the addWidget method.
* Fix bug-292: make inheritance from UILoadable workcoutinho2015-01-09
| | | | | - calculate class name statically from original class if filename is not given
* Add missing decoratorcfalcon2015-01-09
| | | | | Add missing '@skipUnlessGui' decorator to GenericWidgetTestCase Class.
* Starter does not clean already existing DB config.cfalcon2014-12-02
| | | | | | In the addNewDevice add verification if the device is already configured in the DB. Skip the creation in case it is already existing. This way the cleanDb does not erase configuration that was already existing.
* Fix alignment issues in TaurusValueszreszela2014-10-24
| | | | | | | * TaurusValues with large subwidgets show unaligned widgets. * Allow subwidgets to define their alighment within a form. Subwidgets of PoolMotorTV now make use of this. * DefaultUnitsWidgets align to left.
* Provide switcher cls getter to the TaurusValue APIzreszela2014-10-24
| | | | | This getter could be used for substituting the default switcher class (TaurusReadWriteSwitcher) in the TaurusValue subclasses.
* Add keyword followCompact to TaurusValue.{read, write}Widget()cpascual2014-10-24
| | | | | | | TaurusValue.{read,write}Widget() are accessors to TaurusValue's read and write widgets. But when using compact mode, sometimes we want to access the switcher's read and write widgets instead of the TaurusValue's ones. Add a keyword to control this.
* Propagate taurusValueBuddy ref to subwidgets in compact modecpascual2014-10-24
| | | | | | | | | | | | | | When a TaurusValue updates its ReadWidget and write Widgets, it inserts a weak ref to itself (called taurusValueBuddy) into the new ReadWidget and writeWidget. When it goes into compact mode, the ReadWidget becomes a Switcher that contains both a a read and write subwidget (and the WriteWidget is removed). These subwidgets of the switcher may also require a reference to the "taurusValueBuddy" (for example in the case of complex TaurusValue-based widgets such as the PoolMotorTV). Insert the weakref also into these subwidgets of the Switcher. a Switcher. a switcher is used for its ReadWidget.
* Fix bug-234: QtDesigner widget should support QIcon as plugin info coutinho2014-10-24
| | | | | | | Currently, getQtDesignerPluginInfo must return a dict with an (optional) icon key. If this key is given, its value must be a string. Implement support for either a string or a QIcon object as value for the icon key.
* Fix bug-135: make design mode argument not be mandatory for designercoutinho2014-10-24
| | | | | | Before creating a widget object examine its constructor to calculate the list of arguments to pass. This allows widgets that don't have designMode argument to appear in taurusdesigner
* Workaround for bug-252: force consistent QT_APITeresa2014-10-23
| | | | | Force IPython to use the same QT_API as taurus without forcing the user to set the QT_API environment variable manually.
* Fix issues with pipelining of VideoImageCodeccpascual2014-10-23
| | | | | | | | | - VideoImageCodec key (VIDEO_IMAGE) may cause problems with codec pipelining due to the "_". Deprecate it in favour of 'videoimage' - Make VideoImageCodec.decode return the remaining pipelined codec names instead of the Image Mode as the first element of its return value.
* Add unittests for codecscpascual2014-10-23
|
* Fix exceptions in BSONCodec.decodecpascual2014-10-23
| | | | | Fix a missing import and an undefined variable error in BSONCodec.decode Also clean unused imports