Commit Graph

434 Commits

Author SHA1 Message Date
Kai Huuhko f9971fecc5 utils.logger: PyUnicode_FromFormatV -> vsprintf
The Py function segfaults with certain (malformed?) messages.
2013-10-30 11:26:14 +02:00
Kai Huuhko b3f501b387 Elementary: Start making examples more examplary. 2013-10-30 04:28:55 +02:00
Kai Huuhko db4483a88c Elementary.actionslider: Fix a string return value to be unicode 2013-10-30 04:27:18 +02:00
Kai Huuhko be547283f0 Eo: Speed up, and fix a cornercase in, _properties_from_keyword_args.
hasattr tries getattr which can be variedly slow, so check dict instead.

This also fixes it in cases where the property doesn't have a __get__
function.
2013-10-30 03:19:03 +02:00
Kai Huuhko ada7a8c07e Elementary: Add some TODO code comments 2013-10-29 12:36:08 +02:00
Kai Huuhko 05f288ec7f Edje: Fix unit test paths and skip a couple segfaulting tests.
Decorator test fails but I'm not sure if the test is simply wrong.

Dave, can you check?
2013-10-29 06:25:23 +02:00
Kai Huuhko 567ba9cda2 Add more useful settings in their default values to setup. 2013-10-28 23:40:17 +02:00
Kai Huuhko 6a0e8a7166 Fix customization of logger class when using Py2 2013-10-28 18:55:58 +02:00
Kai Huuhko 1e40a8f5bb Simplify and correct string representation functions.
Calling str() uses __repr__ when __str__ is not found.

__repr__ should return a string with angle brackets when the object
cannot be reconstructed with exec(repr(obj)).
2013-10-28 18:55:58 +02:00
Kai Huuhko af9c5b8845 Elementary: Fixes for Theme 2013-10-27 21:46:43 +02:00
Kai Huuhko d6d440c3a6 Add support for loggers that have been initialized already.
This allows module initialization to be logged as well.

Changed add_logger to return the logger object instead of int.
2013-10-26 03:22:47 +03:00
Kai Huuhko 19e7d11f61 Resolved Py3 issues.
Fixes T459
2013-10-26 02:38:25 +03:00
Kai Huuhko 47be89c8ea Documentation: Fix a few niggles in Elm docs. 2013-10-25 21:39:48 +03:00
Kai Huuhko 20973afe6f Documentation: Move some topics to index.rst, get rid of efl.rst. 2013-10-25 21:08:40 +03:00
Kai Huuhko fc4f0d47ce Documentation: Make the colors less... earthy. Sorry Dave. 2013-10-25 21:03:13 +03:00
Kai Huuhko 2dca18ab08 Elementary: Add more _set_properties_from_keyword_args 2013-10-25 17:45:15 +03:00
Kai Huuhko 374f267ecc Fix missing symbol PyString_FromFormatV when compiled for Python 3.x.
That function was removed so I replaced it with PyUnicode_FromFormatV,
cdef extern it directly from Python.h since it's not found in Cython
unicode.pxd.
2013-10-25 13:49:29 +03:00
Kai Huuhko 3e99eb5fe9 Elementary: Document more scrollables 2013-10-25 03:13:46 +03:00
Kai Huuhko 3d85286336 Add arguments 'version' and 'message' to DEPRECATED decorator.
The decorator will automatically add a directive to the docstring and
log a message when the function is called.
2013-10-25 02:09:29 +03:00
Kai Huuhko 4771ca5ccb Move logger to its own module. 2013-10-24 22:58:09 +03:00
Kai Huuhko 8cbee5c44d Handle unknown domain messages in "efl" logger. 2013-10-23 21:49:56 +03:00
Davide Andreoli d47c9390b8 PythonEFL: (as always) unbreak the build with older chyton 2013-10-23 19:36:04 +02:00
Kai Huuhko 7fbab02702 First attempt at integrating Eina Log with Python logging.
Has two loggers: efl and efl.eo.

To test, add handlers, formatters etc. and change levels using
normal Python logging utilities. The test messages come from
efl.eo init and class registration.
2013-10-23 14:34:42 +03:00
Kai Huuhko cd25ef3488 Partially revert "Elementary: Move private definitions inside the pyx files."
We can do this later, let's keep api_coverage.py working for now.

This reverts commit c96851c8f5.

Conflicts:
	efl/elementary/gengrid.pyx
	efl/elementary/genlist.pyx
	efl/elementary/object.pyx
	efl/elementary/scroller.pxd
	efl/elementary/scroller.pyx
2013-10-20 23:45:47 +03:00
Kai Huuhko b981ce3840 New feature: Set properties using constructor keyword arguments.
Only applied to Elm Bubble for now as an example.
2013-10-20 14:34:53 +03:00
Kai Huuhko 5bfb35c797 Update TODO 2013-10-20 00:59:20 +03:00
Kai Huuhko 641fe47961 Refine MANIFEST.in 2013-10-17 00:31:00 +03:00
Davide Andreoli f2b7c24f7a Python-EFL: some little and stupid cleanup to setup.py and some additions to MANIFEST.in
* Fix clean_generated_files to also include utils
* change format() usage to simple str concat...just to hurt kuuko :)
* remove the usless check for __main__
2013-10-16 22:35:44 +02:00
Kai Huuhko 3b95ccd069 Facilitate creating a source tarball with 'setup.py sdist' command.
setup.py was modified to work with the generated package.

TODO: Include Sphinx documentation.
2013-10-16 21:31:50 +03:00
Kai Huuhko c574a76ce9 setup.py: Recognize commands 'sdist' and 'bdist' 2013-10-16 16:30:08 +03:00
Kai Huuhko f5fbb90e42 setup.py: Don't print current Cython version. 2013-10-15 15:17:33 +03:00
Davide Andreoli 85ac116577 Python-EFL: unbreak the compilation with older cython. Kuuko: you win a spank this time :P 2013-10-14 21:30:49 +02:00
Kai Huuhko 87ee22d559 Elementary: DnD work
- Genlist default animation test functional
 - Some callbacks are still missing
2013-10-10 05:42:39 +03:00
Kai Huuhko 40d5c4250a utils.conversions: Initialize Eina_List to NULL 2013-10-09 17:04:16 +03:00
Kai Huuhko afe11df636 Elementary: Beginnings of Drag and Drop support, very much work in progress. 2013-10-08 17:13:32 +03:00
Kai Huuhko 6299a6c8ae Elementary: Make inheriting from scrollable a responsibility for the user. 2013-10-08 09:11:12 +03:00
Davide Andreoli feb9fb912c Python-EFL: unbreak the build with older Cython versions 2013-10-07 21:18:44 +02:00
Kai Huuhko c96851c8f5 Elementary: Move private definitions inside the pyx files.
Only share (in pxd-files) the definitions that are needed by other modules.

Removed widget_header.pxi to make cimports more obvious.
2013-10-07 08:31:30 +03:00
Kai Huuhko fa9e96dff9 Elementary: Add a test for Access.
Change internal only GenlistItem.itc to readonly item_class
2013-10-04 15:11:57 +03:00
Kai Huuhko 914c6ffd6b Elementary: Add various missing functions 2013-10-04 09:29:45 +03:00
Kai Huuhko 0004c58c9b Elementary: Fix tests config and spinner 2013-10-03 07:41:46 +03:00
Kai Huuhko 9413b157b9 Evas/Eo: Fix couple of crashes related to Canvas cb's and Eo 2013-10-03 06:19:04 +03:00
Kai Huuhko 9e1b6a676c Elementary.general: Enable functions that were previously problematic. 2013-10-03 00:30:23 +03:00
Kai Huuhko d4e5ea886c Elementary: Fix Gengrid item_cb crash 2013-10-02 23:38:31 +03:00
Kai Huuhko 29259e670e Elementary: Clean up cruft from the transit test and add it to test.py 2013-10-02 20:28:16 +03:00
Kai Huuhko d430807974 Elementary: Add custom effects for transit. 2013-10-02 19:34:47 +03:00
Kai Huuhko 87e2e8f9a1 Elementary: Add more failsafes to transit del_cb 2013-10-02 07:22:20 +03:00
Kai Huuhko bef896b490 Elementary: Fix transit del_cb 2013-10-02 05:59:21 +03:00
Kai Huuhko 5f4a46da4b Move common conversion functions from efl.eo to efl.utils.conversions 2013-10-01 04:56:28 +03:00
Kai Huuhko 6587b5be67 Rename efl.pxd to efl.eina.pxd 2013-09-30 07:26:35 +03:00