ZEXP
/((UApp.ProductqUProductqtqNt.}q(UbannerAd_addFormq(U
q(UOFS.DTMLMethodqU
DTMLMethodqtq tq
QUbannerAd_factoryq(U
q(UApp.Factoryq
UFactoryqtqtqQUidqUmyBannerProductqU__ac_local_roles__q}qUdeanq]qUOwnerqasU_objectsq(}q(U meta_typeqUProduct HelpqhUHelpqu}q(U meta_typeqUZ ClassqUidq UmyAdManq!u}q"(hUDTML Methodq#h UmyAdMan_addFormq$u}q%(hh#h UmyAdMan_addq&u}q'(hUZope Permissionq(h UmyAdMan_add_permissionq)u}q*(hUZope Factoryq+h UmyAdMan_factoryq,u}q-(U meta_typeq.UZ Classq/Uidq0UbannerAdq1u}q2(h.UDTML Methodq3h0UbannerAd_addFormq4u}q5(h.h3h0UbannerAd_addq6u}q7(h.UZope Permissionq8h0UbannerAd_add_permissionq9u}q:(h.UZope Factoryq;h0hu}q<(U meta_typeq=U
DTML Documentq>Uidq?Uchangesq@utUbannerAd_addqA(U
qB(hU
DTMLMethodqCtqDtqEQh@(U
qF(UOFS.DTMLDocumentqGUDTMLDocumentqHtqItqJQUversionqKU0.1.0qLh&(U
qM(hU
DTMLMethodqNtqOtqPQh!(U
qQ(UZClasses.ZClassqRUZClassqStqTtqUQh,(U
qV(h
UFactoryqWtqXtqYQUtitleqZUmy Banner Ad managerq[h$(U
q\(hU
DTMLMethodq]tq^tq_Qh(U
q`(UHelpSys.HelpSysqaUProductHelpqbtqctqdQh)(U
qe(UApp.PermissionqfU
PermissionqgtqhtqiQUbannerAd_add_permissionqj(U
qk(hfU
PermissionqltqmtqnQUbannerAdqo(U
qp(hRUZClassqqtqrtqsQu.
!((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(UtitleqUbannerAd constructor input formqUrawqTP
Add Banner Advert
Add Banner Advert
qU__ac_local_roles__q }q
Udeanq]qUOwnerq
asUglobalsq}qU__name__qUbannerAd_addFormqU_varsq}qu.
t((UApp.FactoryqUFactoryqtqNt.}q(UidqUbannerAd_factoryqU__ac_local_roles__q}qUdeanq ]q
UOwnerqasUinitialqUbannerAd_addFormq
U_permissionMapperqcAccessControl.PermissionMapping
PM
qNRq}qU_Use_Factories_PermissionqU_Add_Banner_Adverts_PermissionqsbU
permissionqUAdd Banner AdvertsqUtitleqUbannerAd factoryqUobject_typeqU
Banner Advertqu.
((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(UtitleqUbannerAd constructorqUrawqT
Add bannerAd
We add the new object by calling the class in
a with tag. Not only does this get the thing
added, it adds the new thing's attributes to
the DTML name space, so we can call methods
to initialize the object.
You can add code that modifies the new instance here.
For example, if you have a property sheet that you want to update
from form values, you can call it here:
Now we need to return something. We do this via
a redirect so that the URL is correct.
Unfortunately, the way we do this depends on
whether we live in a product or in a class.
If we live in a product, we need to use DestinationURL
to decide where to go. If we live in a class,
DestinationURL won't be available, so we use URL2.
qU__ac_local_roles__q }q
Udeanq]qUOwnerq
asUglobalsq}qU__name__qUbannerAd_addqU_varsq}qu.
=((UOFS.DTMLDocumentqUDTMLDocumentqtqNt.}q(UtitleqU UrawqT
Changes
7/3/2001
Added a manage_changeProperties when the banner image is chose to update 'views' and 'remaining_views'.
myBannerProduct has been tested on our website now for almost 4 months and works well.
28/11/2000
Added url_quote when rendering the redirect link in the bannerAd/show_image method following bug report.
Enhanced the appearence of the banner test page - showing the banner as before but also a html_quote of the generated HTML. In myAdMan/test . This shows the HTML error message if no banners or images are present.
qU__ac_local_roles__q}q Udeanq
]qUOwnerqasUglobalsq
}qU__name__qUchangesqU_varsq}qu.
((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(UtitleqUmyAdMan constructorqUrawqT
Add myAdMan
We add the new object by calling the class in
a with tag. Not only does this get the thing
added, it adds the new thing's attributes to
the DTML name space, so we can call methods
to initialize the object.
You can add code that modifies the new instance here.
For example, if you have a property sheet that you want to update
from form values, you can call it here:
Now we need to return something. We do this via
a redirect so that the URL is correct.
Unfortunately, the way we do this depends on
whether we live in a product or in a class.
If we live in a product, we need to use DestinationURL
to decide where to go. If we live in a class,
DestinationURL won't be available, so we use URL2.
qU__ac_local_roles__q }q
Udeanq]qUOwnerq
asUglobalsq}qU__name__qUmyAdMan_addqU_varsq}qu.
((UZClasses.ZClassqUZClassqtqNt.}q(U_permissionMapperqcAccessControl.PermissionMapping
PM
qNRq}qU"_Create_class_instances_Permissionq U"_Add_Banner_Depositorys_Permissionq
sbU_zclass_propertysheets_classqU
qQUidq
UmyAdManqU_zbasesq]q(cZClasses.ZClass
ZObject
qcZClasses.ObjectManager
ZObjectManager
qeU__ac_local_roles__q}qUdeanq]qUOwnerqasU_zclass_qU
qQUtitleqU UpropertysheetsqU
qQu.
}((UApp.FactoryqUFactoryqtqNt.}q(UidqUmyAdMan_factoryqU__ac_local_roles__q}qUdeanq ]q
UOwnerqasUinitialqUmyAdMan_addFormq
U_permissionMapperqcAccessControl.PermissionMapping
PM
qNRq}qU_Use_Factories_PermissionqU"_Add_Banner_Depositorys_PermissionqsbU
permissionqUAdd Banner DepositorysqUtitleqUmyAdMan factoryqUobject_typeqUBanner Depositoryqu.
&((UOFS.DTMLMethodqU
DTMLMethodqtqNt.}q(UtitleqUmyAdMan constructor input formqUrawqTW
Add Banner Depository
Add Banner Depository
qU__ac_local_roles__q }q
Udeanq]qUOwnerq
asUglobalsq}qU__name__qUmyAdMan_addFormqU_varsq}qu.
/((UHelpSys.HelpSysqUProductHelpqtqNt.}q(U SQL_trackq(U
q(UHelpSys.HelpTopicqUDTMLDocumentTopicqtq tq
QUidqUHelpqUbannerimagesq
(U
q(hUDTMLDocumentTopicqtqtqQU_objectsq(}q(U meta_typeqU
Help TopicqUidqh
u}q(hhhUbannerpropertiesqu}q(hhhUBannerDepositoryqu}q(U meta_typeqU
Help TopicqUidqU SQL_trackquth(U
q (hUDTMLDocumentTopicq!tq"tq#QUtitleq$UmyBannerProductq%h(U
q&(hUDTMLDocumentTopicq'tq(tq)QUcatalogq*(U
q+(UProducts.ZCatalog.ZCatalogq,UZCatalogq-tq.tq/Qu.
((UApp.PermissionqU
PermissionqtqNt.}q(UtitleqUmyAdMan constructor permissionqUidqUmyAdMan_add_permissionqUnameq UAdd Banner Depositorysq
U__ac_local_roles__q}qUdeanq
]qUOwnerqasu.
((UApp.PermissionqU
PermissionqtqNt.}q(UtitleqUbannerAd constructor permissionqUidqUbannerAd_add_permissionqUnameq UAdd Banner Advertsq
U__ac_local_roles__q}qUdeanq
]qUOwnerqasu.
((UZClasses.ZClassqUZClassqtqNt.}q(U_permissionMapperqcAccessControl.PermissionMapping
PM
qNRq}qU"_Create_class_instances_Permissionq U_Add_Banner_Adverts_Permissionq
sbU_zclass_propertysheets_classqU
qQUidq
UbannerAdqU_zbasesq]q(cZClasses.ZClass
ZObject
qcZClasses.ObjectManager
ZObjectManager
qeU__ac_local_roles__q}qUdeanq]qUOwnerqasU_zclass_qU
qQUtitleqU UpropertysheetsqU
qQu.
(cExtensionClass
ExtensionClass
q(UmyAdMan_PropertySheetsClassq(cZClasses.ZClass
PersistentClass
qcZClasses.Property
ZInstanceSheets
qtq}q(UiconqU U
_p_changedqKU__doc__q UmyAdMan Property Sheetsq
Udepository_infoq(U
q(UZClasses.Propertyq
UZInstanceSheetqtqtqQU__propset_attrs__q(Udepository_infoqtqU_p_oidqU bqU
__module__qNU _p_serialqU8qutqt.N.
y(cExtensionClass
ExtensionClass
q(UmyAdManq(cZClasses.ZClass
PersistentClass
qcZClasses.ObjectManager
ObjectManager
qcOFS.SimpleItem
SimpleItem
qtq}q(U
_p_changedqKUisPrincipiaFolderishq UYUbannerClickThruTrackq
(U
q(UZClasses.MethodqUMWpq
tqtqQUbannerTrackerSetupq(U
q(hUMWpqtqtqQUtestq(U
q(hUMWpqtqtqQU
uninstall_SQLq(U
q(hUMWpqtqtqQU meta_typeqUBanner Depositoryq Upropertysheetsq!U
q"QUviewClickThrusq#(U
q$(hUMWpq%tq&tq'QUshow_bannerq((U
q)(hUMWpq*tq+tq,QU__ac_permissions__q-)U__doc__q.UmyAdManq/UbannerTrackerReviewq0(U
q1(hUMWpq2tq3tq4QUredirectq5(U
q6(hUMWpq7tq8tq9QUiconq:U U _p_serialq;U83q