mine/df-python.git
2 years agodf_fonts_core: oops, don't printf master
Alexey Borzenkov [Wed, 3 Feb 2010 11:09:16 +0000]
df_fonts_core: oops, don't printf

2 years agodf.pefile: cache section helpers + new helper APIs
Alexey Borzenkov [Wed, 27 Jan 2010 15:49:31 +0000]
df.pefile: cache section helpers + new helper APIs

2 years agodf.pefile: incompatible: PEFile.{load,save}relocs now work with dict
Alexey Borzenkov [Wed, 27 Jan 2010 15:10:44 +0000]
df.pefile: incompatible: PEFile.{load,save}relocs now work with dict

Working with list could allow duplicated addresses.

2 years agodf.pefile: customizable section name for localized text
Alexey Borzenkov [Wed, 27 Jan 2010 15:02:15 +0000]
df.pefile: customizable section name for localized text

2 years agodf.fonts: use new gradient/color support
Alexey Borzenkov [Fri, 15 Jan 2010 15:10:57 +0000]
df.fonts: use new gradient/color support

Warning: FontGradient is incompatible with previous versions.

2 years agodf.fonts.df_fonts_core: add internal support for gradients
Alexey Borzenkov [Fri, 15 Jan 2010 15:06:21 +0000]
df.fonts.df_fonts_core: add internal support for gradients

2 years agodf.deepfind: make searching for directories possible
Alexey Borzenkov [Wed, 16 Dec 2009 15:34:22 +0000]
df.deepfind: make searching for directories possible

2 years agoIt's 2009 yet I'm still using old template
Alexey Borzenkov [Tue, 15 Dec 2009 09:37:22 +0000]
It's 2009 yet I'm still using old template

Update copyrights to the date files first appeared in the repo.
For 3 years I was just copypasting the old template with 2006 in it ;)

2 years agodf-fear-strdb.py: ability to specify version on the command line
Alexey Borzenkov [Tue, 8 Dec 2009 08:46:52 +0000]
df-fear-strdb.py: ability to specify version on the command line

2 years agodf-resbitmaps.py: implement bitmaps updating
Alexey Borzenkov [Tue, 1 Dec 2009 13:37:12 +0000]
df-resbitmaps.py: implement bitmaps updating

2 years agodf-fear-bndl.py: support files with some additional filenames list (externals?)
Alexey Borzenkov [Mon, 30 Nov 2009 09:55:58 +0000]
df-fear-bndl.py: support files with some additional filenames list (externals?)

2 years agodf-fear-bndl.py: working with bndl files
Alexey Borzenkov [Mon, 23 Nov 2009 14:07:01 +0000]
df-fear-bndl.py: working with bndl files

2 years agodf.binary: add forced argument to align_string and align_stream
Alexey Borzenkov [Mon, 16 Nov 2009 12:38:35 +0000]
df.binary: add forced argument to align_string and align_stream

2 years agodf.ddsfile: allow load/save on file objects
Alexey Borzenkov [Tue, 10 Nov 2009 11:27:39 +0000]
df.ddsfile: allow load/save on file objects

2 years agodf-resbitmaps: tool for working with resource bitmaps
Alexey Borzenkov [Mon, 9 Nov 2009 12:46:59 +0000]
df-resbitmaps: tool for working with resource bitmaps

2 years agodf-restool: extract italian resources
Alexey Borzenkov [Mon, 9 Nov 2009 12:46:30 +0000]
df-restool: extract italian resources

2 years agodf-fear-strdb.py: fix a typo
Alexey Borzenkov [Thu, 5 Nov 2009 12:38:39 +0000]
df-fear-strdb.py: fix a typo

2 years agodf-fear-ltar-py: update crc data
Alexey Borzenkov [Mon, 2 Nov 2009 15:39:16 +0000]
df-fear-ltar-py: update crc data

2 years agodf-fear-strdb.py: support for F.E.A.R. 2
Alexey Borzenkov [Mon, 2 Nov 2009 10:34:02 +0000]
df-fear-strdb.py: support for F.E.A.R. 2

2 years agodf-fear-ltar.py: support for F.E.A.R. 2
Alexey Borzenkov [Mon, 2 Nov 2009 10:33:46 +0000]
df-fear-ltar.py: support for F.E.A.R. 2

2 years agodf.progress: support usage without with keyword
Alexey Borzenkov [Fri, 30 Oct 2009 21:26:26 +0000]
df.progress: support usage without with keyword

2 years agodf.progress: useful for all those "Loading something..." messages.
Alexey Borzenkov [Thu, 29 Oct 2009 14:07:52 +0000]
df.progress: useful for all those "Loading something..." messages.

2 years agodf.compression: reverse engineered PF2 decompression
Alexey Borzenkov [Tue, 27 Oct 2009 16:17:18 +0000]
df.compression: reverse engineered PF2 decompression

2 years agodf.pefile: add COFFFile.loadsection
Alexey Borzenkov [Wed, 7 Oct 2009 11:13:28 +0000]
df.pefile: add COFFFile.loadsection

2 years agodf.pefile: more support for object files creation
Alexey Borzenkov [Mon, 5 Oct 2009 13:00:24 +0000]
df.pefile: more support for object files creation

2 years agodf.pefile: serializer.goend doesn't return offset anymore
Alexey Borzenkov [Mon, 5 Oct 2009 12:59:29 +0000]
df.pefile: serializer.goend doesn't return offset anymore

2 years agodf.pefile: additional constants
Alexey Borzenkov [Mon, 5 Oct 2009 12:59:05 +0000]
df.pefile: additional constants

2 years agodf.binary: provide serializer.__enter__ and serializer.__exit__
Alexey Borzenkov [Mon, 5 Oct 2009 09:08:05 +0000]
df.binary: provide serializer.__enter__ and serializer.__exit__

2 years agodf.pefile: register PEFile.stubdata alias, so that __repr__ doesn't break
Alexey Borzenkov [Fri, 2 Oct 2009 12:51:12 +0000]
df.pefile: register PEFile.stubdata alias, so that __repr__ doesn't break

2 years agodf.pefile: use modern serializer.load/serializer.save paradigm
Alexey Borzenkov [Fri, 2 Oct 2009 12:50:28 +0000]
df.pefile: use modern serializer.load/serializer.save paradigm

2 years agodf.pefile: add preliminary code to save COFF symbol table
Alexey Borzenkov [Fri, 2 Oct 2009 12:12:40 +0000]
df.pefile: add preliminary code to save COFF symbol table

2 years agodf.fonts: don't fail in FontLettersMergedImage if resulting letter is shallow
Alexey Borzenkov [Fri, 2 Oct 2009 12:11:40 +0000]
df.fonts: don't fail in FontLettersMergedImage if resulting letter is shallow

2 years agodf/excel: make Excel a Namespace
Alexey Borzenkov [Tue, 29 Sep 2009 12:34:51 +0000]
df/excel: make Excel a Namespace

2 years agoAllow lower entities [\x00-\x1F] to stay unquoted in minidom
Alexey Borzenkov [Tue, 29 Sep 2009 08:37:36 +0000]
Allow lower entities [\x00-\x1F] to stay unquoted in minidom

2 years agoClipboardInterceptor: load configuration from user's home directory
Alexey Borzenkov [Fri, 4 Sep 2009 08:17:59 +0000]
ClipboardInterceptor: load configuration from user's home directory

2 years agodf.compression: added uncompress_lznp for Lilo & Stitch
Alexey Borzenkov [Tue, 1 Sep 2009 12:42:17 +0000]
df.compression: added uncompress_lznp for Lilo & Stitch

2 years ago.install-bin: add df-files and change install location
Alexey Borzenkov [Wed, 12 Aug 2009 19:07:08 +0000]
.install-bin: add df-files and change install location

2 years agodf-files.py: make executable
Alexey Borzenkov [Wed, 12 Aug 2009 19:06:38 +0000]
df-files.py: make executable

2 years agodf.experimental.binary: idea of serializer speedup with Cython (incomplete!)
Alexey Borzenkov [Wed, 5 Aug 2009 17:05:45 +0000]
df.experimental.binary: idea of serializer speedup with Cython (incomplete!)

2 years agodf.binary: hard-wiring is pointless when source is a serializer
Alexey Borzenkov [Wed, 5 Aug 2009 14:28:11 +0000]
df.binary: hard-wiring is pointless when source is a serializer

2 years agodf.binary: implement attribute hard-wiring, roughly 3x performance increase
Alexey Borzenkov [Wed, 5 Aug 2009 14:24:13 +0000]
df.binary: implement attribute hard-wiring, roughly 3x performance increase

2 years agodf.namespace: improve the Namespace class
Alexey Borzenkov [Tue, 4 Aug 2009 12:43:55 +0000]
df.namespace: improve the Namespace class

2 years agodf.namespace: new module for easy namespace creation
Alexey Borzenkov [Mon, 3 Aug 2009 10:16:24 +0000]
df.namespace: new module for easy namespace creation

2 years agodf.record: allow __slots__ = "" in records
Alexey Borzenkov [Thu, 30 Jul 2009 11:16:56 +0000]
df.record: allow __slots__ = "" in records

2 years agoremove old .bzrignore
Alexey Borzenkov [Thu, 30 Jul 2009 08:47:42 +0000]
remove old .bzrignore

2 years agoenable sample pre-commit hook: git diff --check found some errors, fix them
Alexey Borzenkov [Thu, 30 Jul 2009 08:46:18 +0000]
enable sample pre-commit hook: git diff --check found some errors, fix them

2 years agodf.wav: handle extended WAVFormatEx that has no extended data
Alexey Borzenkov [Wed, 29 Jul 2009 13:55:33 +0000]
df.wav: handle extended WAVFormatEx that has no extended data

2 years agodf.pefile: make PEFile.stubdata cacheable and changeable
Alexey Borzenkov [Mon, 27 Jul 2009 14:30:47 +0000]
df.pefile: make PEFile.stubdata cacheable and changeable

2 years agodf.spacelist: improved and added delete/deleterange methods
Alexey Borzenkov [Tue, 21 Jul 2009 09:32:11 +0000]
df.spacelist: improved and added delete/deleterange methods

2 years agodf.binary: use virtualstart in vserializer.end()
Alexey Borzenkov [Fri, 17 Jul 2009 14:15:37 +0000]
df.binary: use virtualstart in vserializer.end()

2 years agodf.fonts: added FontLettersResize and RasterizedFontLetter::shift
Alexey Borzenkov [Mon, 13 Jul 2009 10:20:01 +0000]
df.fonts: added FontLettersResize and RasterizedFontLetter::shift

2 years agodf.fonts: optimize FontLettersMerge
Alexey Borzenkov [Fri, 10 Jul 2009 11:22:58 +0000]
df.fonts: optimize FontLettersMerge

2 years agodf.excel: use both singular and plural for SetColumnWidth(s)/SetTextWrapping(s)
Alexey Borzenkov [Wed, 8 Jul 2009 12:17:04 +0000]
df.excel: use both singular and plural for SetColumnWidth(s)/SetTextWrapping(s)

I'm really tired of guessing which one is which every time. :-/

2 years agodf.fonts: add support for gradients (warning: slow!)
Alexey Borzenkov [Thu, 2 Jul 2009 13:29:00 +0000]
df.fonts: add support for gradients (warning: slow!)

2 years agodf.binary: add forced parameter to serializer.alignto_*
Alexey Borzenkov [Wed, 1 Jul 2009 15:37:57 +0000]
df.binary: add forced parameter to serializer.alignto_*

Some file formats need data read/written to file even if position
is already aligned. Use forced=True in that case.

2 years agodf.files: add makedirs function
Alexey Borzenkov [Wed, 1 Jul 2009 08:58:10 +0000]
df.files: add makedirs function

2 years agodf.bundle: use safechmod instead of try/except ugliness
Alexey Borzenkov [Thu, 25 Jun 2009 08:21:03 +0000]
df.bundle: use safechmod instead of try/except ugliness

2 years agodf.files: add safechmod and catch OSError only
Alexey Borzenkov [Thu, 25 Jun 2009 08:19:45 +0000]
df.files: add safechmod and catch OSError only

2 years agodf.ddsfile: use safeunlink instead of try/except ugliness
Alexey Borzenkov [Thu, 25 Jun 2009 08:12:58 +0000]
df.ddsfile: use safeunlink instead of try/except ugliness

2 years agodf.zlibwriter: support more arguments and some fixes
Alexey Borzenkov [Tue, 23 Jun 2009 10:08:02 +0000]
df.zlibwriter: support more arguments and some fixes

2 years agodf.ddsfile: support more bpp types for dds images
Alexey Borzenkov [Thu, 11 Jun 2009 15:31:40 +0000]
df.ddsfile: support more bpp types for dds images

2 years agodf.zlibreader: reduce repetition in read()
Alexey Borzenkov [Fri, 29 May 2009 21:08:23 +0000]
df.zlibreader: reduce repetition in read()

2 years agodf.zlibwriter: implements ZlibWriter stream wrapper
Alexey Borzenkov [Fri, 29 May 2009 14:45:32 +0000]
df.zlibwriter: implements ZlibWriter stream wrapper

2 years agodf.zlibreader: implements ZlibReader stream wrapper
Alexey Borzenkov [Fri, 29 May 2009 14:45:15 +0000]
df.zlibreader: implements ZlibReader stream wrapper

2 years agodf.binary: add f4/f8 convenience functions
Alexey Borzenkov [Fri, 29 May 2009 14:29:46 +0000]
df.binary: add f4/f8 convenience functions

2 years agodf.odict: removed
Alexey Borzenkov [Fri, 29 May 2009 09:31:45 +0000]
df.odict: removed

Use http://www.voidspace.org.uk/python/pythonutils.html

2 years agodf.record: use visible slots for iterating
Alexey Borzenkov [Thu, 28 May 2009 12:56:48 +0000]
df.record: use visible slots for iterating

In record's __slots__, if name=internal_name is used, then by protocol
name should be property visible to the outside (i.e. used in __init__)
and internal_name is an implementation detail (e.g transparent
AutoWeakRef). However iterating still returned internal values. This
patch introduces __visible_slots__ class attribute that holds a tuple
of externally-visible attribute/property names that are good for
iterating.

2 years agodf.winres: mark ResourceFile and ResourceUpdater explicitly noncopyable
Alexey Borzenkov [Wed, 27 May 2009 09:51:00 +0000]
df.winres: mark ResourceFile and ResourceUpdater explicitly noncopyable

2 years agodf.winres: use boost::format instead of sprintf
Alexey Borzenkov [Wed, 27 May 2009 09:50:32 +0000]
df.winres: use boost::format instead of sprintf

2 years agodf.winres: Using const references is too dangerous with Boost.Python
Alexey Borzenkov [Wed, 27 May 2009 09:11:46 +0000]
df.winres: Using const references is too dangerous with Boost.Python

2 years agodf.fonts: add simple font scaling support
Alexey Borzenkov [Mon, 25 May 2009 15:55:19 +0000]
df.fonts: add simple font scaling support

2 years agodf.fonts: helpers to generate stroked letters
Alexey Borzenkov [Mon, 25 May 2009 12:11:08 +0000]
df.fonts: helpers to generate stroked letters

2 years agodf.fonts: support for stroke
Alexey Borzenkov [Fri, 22 May 2009 13:00:59 +0000]
df.fonts: support for stroke

2 years agodf.binary: fix align_value to allow any align value
Alexey Borzenkov [Fri, 22 May 2009 13:00:49 +0000]
df.binary: fix align_value to allow any align value

3 years agodf.random: add Park and Miller algorithm
Alexey Borzenkov [Tue, 12 May 2009 13:03:31 +0000]
df.random: add Park and Miller algorithm

3 years agodf.ddsfile: ensure highest quality
Alexey Borzenkov [Tue, 12 May 2009 13:03:18 +0000]
df.ddsfile: ensure highest quality
df-*2dds.py: make sure correct number of mipmaps is generated

3 years agodf.excel: fix minidom and use Text nodes
Alexey Borzenkov [Thu, 30 Apr 2009 13:07:13 +0000]
df.excel: fix minidom and use Text nodes

It appears that Excel doesn't like very large CDATA sections, yet when
using Text nodes special care must be taked of symbols like \r and \n,
so that they are not lost. So I have to monkey patch minidom to escape
those symbols and then I can safely use Text nodes in ArrayToXml.

3 years agodf.octree: accept RGB mode images
Alexey Borzenkov [Thu, 30 Apr 2009 12:32:42 +0000]
df.octree: accept RGB mode images

3 years agodf.pefile: saving to the same filename should be possible
Alexey Borzenkov [Thu, 30 Apr 2009 09:47:28 +0000]
df.pefile: saving to the same filename should be possible

3 years agodf.octree: make number of colors configurable
Alexey Borzenkov [Thu, 30 Apr 2009 09:43:18 +0000]
df.octree: make number of colors configurable

3 years agoA change in python 2.6 was making __dict__ inheritable, fix
Alexey Borzenkov [Mon, 27 Apr 2009 13:26:07 +0000]
A change in python 2.6 was making __dict__ inheritable, fix

This was making the whole point of slots  pointless to me...

3 years agodf.binary: add serializer.peek method that does not throw if not enough data
Alexey Borzenkov [Mon, 13 Apr 2009 10:48:40 +0000]
df.binary: add serializer.peek method that does not throw if not enough data

3 years agodf.pefile: make a function for patching executables text
Alexey Borzenkov [Thu, 9 Apr 2009 13:01:30 +0000]
df.pefile: make a function for patching executables text

3 years agodf.files: added safeunlink function
Alexey Borzenkov [Mon, 6 Apr 2009 08:16:51 +0000]
df.files: added safeunlink function

3 years agodf.files: added processbinaryfile for smart in-memory processing
Alexey Borzenkov [Mon, 30 Mar 2009 13:13:53 +0000]
df.files: added processbinaryfile for smart in-memory processing
df-files: new utility instead of bunch of older ones

3 years agodf.random: fixed some typos
Alexey Borzenkov [Tue, 24 Mar 2009 14:07:05 +0000]
df.random: fixed some typos

3 years agodf.common_py2exe: clean up quoting and description
Alexey Borzenkov [Mon, 16 Mar 2009 16:08:40 +0000]
df.common_py2exe: clean up quoting and description

3 years agodf.octree: add quantize_image_with_alpha (alpha palette is common in some games)
Alexey Borzenkov [Tue, 10 Mar 2009 16:03:34 +0000]
df.octree: add quantize_image_with_alpha (alpha palette is common in some games)

3 years agodf.random: improve LCG + fix MSRandom inheritence
Alexey Borzenkov [Tue, 3 Mar 2009 12:31:12 +0000]
df.random: improve LCG + fix MSRandom inheritence

3 years agodf.excel: convert filenames to unicode
Alexey Borzenkov [Tue, 24 Feb 2009 08:34:01 +0000]
df.excel: convert filenames to unicode

3 years agodf.fonts: allow separate height and width for fonts
Alexey Borzenkov [Fri, 13 Feb 2009 12:02:19 +0000]
df.fonts: allow separate height and width for fonts

3 years agodf.binary: don't forget virtualstart when original vserializer has it
Alexey Borzenkov [Tue, 10 Feb 2009 15:14:49 +0000]
df.binary: don't forget virtualstart when original vserializer has it

3 years agodf-joinfiles: fix traceback when there's nothing to join
Alexey Borzenkov [Wed, 4 Feb 2009 12:25:11 +0000]
df-joinfiles: fix traceback when there's nothing to join

3 years agodf.excel: unbreak Excel.NA
Alexey Borzenkov [Tue, 3 Feb 2009 10:10:57 +0000]
df.excel: unbreak Excel.NA

3 years agomake checking error codes conditional and add lzo2a_compress
Alexey Borzenkov [Wed, 28 Jan 2009 18:22:44 +0000]
make checking error codes conditional and add lzo2a_compress

3 years agodf.autoweakref: implement AutoWeakRef accessor
Alexey Borzenkov [Wed, 21 Jan 2009 13:41:08 +0000]
df.autoweakref: implement AutoWeakRef accessor

3 years agodf.record: allow aliases
Alexey Borzenkov [Wed, 21 Jan 2009 13:33:31 +0000]
df.record: allow aliases

Sometimes I want a particular field name to be in slots, however all
access organized via some other measures, like property. This is useful
when object, for example, needs to hold a weakref internally, but expose
the object itself to the outside world.

3 years agodf.common_py2exe: update manifest for python 2.6
Alexey Borzenkov [Thu, 25 Dec 2008 14:58:30 +0000]
df.common_py2exe: update manifest for python 2.6

3 years agodf.excel: show excel is there are any leftover workbooks
Alexey Borzenkov [Thu, 25 Dec 2008 14:33:01 +0000]
df.excel: show excel is there are any leftover workbooks

Sometimes, due to some reasons, there might be some workbooks
left in excel, in which case it will stay in background invisible.
It is better to show it to the user in such cases, because user
might need to decide what to do with it. This feature is particularly
useful with detaching sources when something is processed live and
user must review and save the results.

3 years agodf.excel: add DetachSource/DetachTarget like I did for openoffice
Alexey Borzenkov [Thu, 25 Dec 2008 14:26:32 +0000]
df.excel: add DetachSource/DetachTarget like I did for openoffice