Nome | +Cargo | +Função | +Ramal | +Celular | +Voip | +|
---|---|---|---|---|---|---|
Nome | +Cargo | +Função | +Ramal | +Celular | +Voip | +
Nome | +Cargo | +Função | +Ramal | +Celular | +Voip | +|
---|---|---|---|---|---|---|
+ + Nome + + | +Cargo | +Função | +Ramal | +Celular | +Voip | +|
Nenhum registro encontrado | +
A Lista Telefônica do Portal de Serviços da Intranet não possui nomes cadastrados na unidade organizacional DPF/CGTI.
+É possível que o nome da Unidade de Organizacional esteja incorreto ou que ninguém desta unidade tenha se cadastrado na lista telefônica.
+Tente encontrar o ramal desejado diretamente na Lista Telefônica do Portal de Serviços da Intranet ou caso a o nome da unidade esteja incorreto, entre em contato com a Central de Atendimento ao Usuário da CGTI.
+Nome | +Cargo | +Função | +Ramal | +Celular | +Voip | +|
---|---|---|---|---|---|---|
+ + Nome + + | +Cargo | +Função | +Ramal | +Celular | +Voip | +|
Nenhum registro encontrado | +
Nenhum resultado encontrado
+Nome | +Unidade | +Ramal | +Celular | +Voip | +|
---|---|---|---|---|---|
+ Nome + | +Unidade | +Ramal | +Celular | +Voip | +
Descrição do serviço de Lista Telefônica
+ """ + obj_desc = get_or_create_content( + container=lista, + type='Document', + id='lista-telefonica', + title='Descrição do serviço', + text=RichTextValue( + description_text, + 'text/html', + 'text/plain' + ) + ) + if api.content.get_state(obj=obj_desc) != 'published': + api.content.transition(obj=obj_desc, transition='publish') + + if api.content.get_state(obj=lista) != 'published': + api.content.transition(obj=lista, transition='publish') + + # Folder Serviços do Portal: used to include links to portal services + sp = get_or_create_content( + container=portal, + type='Folder', + id='servicos-do-portal', + title='Serviços do Portal', + exclude_from_nav=True, + ) + if api.content.get_state(obj=sp) != 'published': + api.content.transition(obj=sp, transition='publish') + + get_or_create_content( + container=sp, + type='Link', + id='lista-telefonica', + title='Lista Telefônica', + remoteUrl='${portal_url}/lista-telefonica' + ) diff --git a/pf/listatelefonica/tests.py b/pf/listatelefonica/tests.py new file mode 100644 index 0000000..a5b926a --- /dev/null +++ b/pf/listatelefonica/tests.py @@ -0,0 +1,55 @@ +import unittest + +#from zope.testing import doctestunit +#from zope.component import testing +from Testing import ZopeTestCase as ztc + +from Products.Five import fiveconfigure +from Products.PloneTestCase import PloneTestCase as ptc +from Products.PloneTestCase.layer import PloneSite +ptc.setupPloneSite() + +import pf.listatelefonica + + +class TestCase(ptc.PloneTestCase): + + class layer(PloneSite): + + @classmethod + def setUp(cls): + fiveconfigure.debug_mode = True + ztc.installPackage(pf.listatelefonica) + fiveconfigure.debug_mode = False + + @classmethod + def tearDown(cls): + pass + + +def test_suite(): + return unittest.TestSuite([ + + # Unit tests + #doctestunit.DocFileSuite( + # 'README.txt', package='pf.listatelefonica', + # setUp=testing.setUp, tearDown=testing.tearDown), + + #doctestunit.DocTestSuite( + # module='pf.listatelefonica.mymodule', + # setUp=testing.setUp, tearDown=testing.tearDown), + + + # Integration tests that use PloneTestCase + #ztc.ZopeDocFileSuite( + # 'README.txt', package='pf.listatelefonica', + # test_class=TestCase), + + #ztc.FunctionalDocFileSuite( + # 'browser.txt', package='pf.listatelefonica', + # test_class=TestCase), + + ]) + +if __name__ == '__main__': + unittest.main(defaultTest='test_suite') diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6f94f83 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[zopeskel] +template = plone + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..35e3956 --- /dev/null +++ b/setup.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- + +from setuptools import setup, find_packages +import os + +version = '1.1.2' + +setup(name='pf.listatelefonica', + version=version, + description="Projeto de Lista Telefonica da Policia Federal", + long_description=open("README.txt").read() + "\n" + + open(os.path.join("docs", "HISTORY.txt")).read(), + # Get more strings from + # http://pypi.python.org/pypi?:action=list_classifiers + classifiers=[ + "Framework :: Plone", + "Programming Language :: Python", + ], + keywords='', + author='Liberiun', + author_email='', + url='https://svn.dpf.gov.br/sds/portal_internet/2-Implementacao/trunk/produtos/pf.listatelefonica/', + license='Creative Commons General Public License - GPL (“Licença Pública Geral”), versão 2.0, em português', + packages=find_packages(exclude=['ez_setup']), + namespace_packages=['pf'], + include_package_data=True, + zip_safe=False, + install_requires=[ + 'setuptools', + # -*- Extra requirements: -*- + 'plone.api', + 'plone.app.dexterity [grok, relations]', + 'plone.app.relationfield', + 'plone.namedfile [blobs]', + 'plone.formwidget.namedfile', + 'plone.behavior', + 'collective.dexteritytextindexer', + 'Products.AdvancedQuery', + 'plone.app.ldap', + ], + entry_points=""" + # -*- Entry points: -*- + + [z3c.autoinclude.plugin] + target = plone + """, + # setup_requires=["PasteScript"], + # paster_plugins=["ZopeSkel"], + ) -- libgit2 0.21.2