łň đŻ.Fc@s dZdefd„ƒYZdS(sö This module documents a class that produces objects that process templates. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright Š 2007 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com tTemplateFactorycBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( sR This class creates an object to that produces objects that process templates. cCsŹ|i||ƒddkl}||id ƒ|id|iƒ|_|id|iƒ|_|id|i ƒ|_ |id|i ƒ|_ |id|i ƒ|_dS( s6 Initialize object. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param editor: Reference to the text editor. @type editor: An Editor object. i˙˙˙˙(tstart_new_threadstrigger-activatedsnext-placeholdersprevious-placeholderstemplate-destroyedtdestroyN((t!_TemplateFactory__init_attributestthreadRt$_TemplateFactory__precompile_methodstconnectt&_TemplateFactory__trigger_activated_cbt_TemplateFactory__signal_id_1t%_TemplateFactory__next_placeholder_cbt_TemplateFactory__signal_id_2t)_TemplateFactory__previous_placeholder_cbt_TemplateFactory__signal_id_3t'_TemplateFactory__template_destroyed_cbt_TemplateFactory__signal_id_4t_TemplateFactory__destroyed_cbt_TemplateFactory__signal_id_5(tselftmanagerteditorR((splugins/Templates/Factory.pyt__init__&s cCs?||_||_g|_d|_|_|_d|_dS(s? Initialize data attributes. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param editor: Reference to the text editor. @type editor: An Editor object. N(t_TemplateFactory__managert_TemplateFactory__editort_TemplateFactory__templatestNoneRR R R(RRR((splugins/Templates/Factory.pyt__init_attributes<s    cCs3ddkl}|ii|||i|ƒƒdS(sx Handles callback when the "trigger-activated" signal is emitted. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param template: A template to insert into the buffer. @type template: A TemplateManager object. i˙˙˙˙(tTemplateProcessorN(t ProcessorRRtappendR(RRttemplateR((splugins/Templates/Factory.pyt__trigger_activated_cbPs cGs|idiƒdS(sŹ Handles callback when the "previous-placeholder" signal is emitted. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. i˙˙˙˙N(Rtprevious(Rtargs((splugins/Templates/Factory.pyt__previous_placeholder_cbascGs|idiƒdS(s¨ Handles callback when the "next-placeholder" signal is emitted. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. i˙˙˙˙N(Rtnext(RR ((splugins/Templates/Factory.pyt__next_placeholder_cbkscCs"y|ii|ƒWnnXdS(s{ Handles callback when the "template-destroyed" signal is emitted. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param processor: An object that processes templates. @type processor: A TemplateProcessor object. N(Rtremove(RRt processor((splugins/Templates/Factory.pyt__template_destroyed_cbus cCsbyHddkl}||iƒ||iƒ||iƒ||iƒWntj onXdS(Ni˙˙˙˙(tbind(tpyscoR'R RR R t ImportError(RR'((splugins/Templates/Factory.pyt__precompile_methodsˆs   cCs}ddkl}l}||i|ƒ||i|ƒ||i|ƒ||i|ƒ||i|ƒ||ƒd}~dS(s Handles callback when the "destroyed" signal is emitted. @param self: Reference to the TemplateFactory instance. @type self: A TemplateFactory object. @param manager: Reference to the TemplateManager @type manager: A TemplateManager object. i˙˙˙˙(tdelete_attributestdisconnect_signalN( t SCRIBES.utilsR+R,RR R RRR(RRR+R,((splugins/Templates/Factory.pyt__destroyed_cb“s  ( t__name__t __module__t__doc__RRRR R R RR(((splugins/Templates/Factory.pyR s     N(R1tobjectR(((splugins/Templates/Factory.pyss