Application Integration With Zope/Plone Sankalp Agarwal Member IntraGOV Team.

Slides:



Advertisements
Similar presentations
Implementing Tableau Server in an Enterprise Environment
Advertisements

Plone An overview Jonas Nielsen. Agenda Main functionalities: Member folder, content objects, workflow Portlets, Skins Configuration in Zmi New content.
EIONET Training Searching and categorizing content Miruna Bădescu Finsiel Romania Copenhagen, 27 October 2003.
©2011 Quest Software, Inc. All rights reserved.. Andrei Polevoi, Tatiana Golubovich Program Management Group ActiveRoles Add-on Manager Overview.
Presentation Heading – font Arial
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
Unauthorized Reproduction Prohibited SkyPoint Alarm Integration Add-On Using OnGuard Alarms to create events in SkyPoint Also called ‘SkyPoint V0’ CR4400.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Building a Deployment The following screens demonstrate how to: 1. Create a new OpenHRE™ tailor-made deployment using a remote (sample) deployment Standard.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Offsite Backups. The purpose of this Startup Guide is to familiarize you with Own Web Now's Offsite Backup offering and show you how to purchase, deploy.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Migrating to EPiServer CMS 5 Johan Björnfot -
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Snippet Management The following screens demonstrate how to: 1. Access and view snippets 2. Create a local standard snippet, or a local class snippet 3.
Linux Operations and Administration
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Preparing for Electronic Distribution Lesson 14.
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
WaveMaker Visual AJAX Studio 4.0 Training Authentication.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Course ILT Internet/intranet support Unit objectives Use the Internet Information Services snap-in to manage IIS, Web sites, virtual directories, and WebDAV.
The In’s and Out’s of the IIS 6.0 Migration Tool The In’s and Out’s of the IIS 6.0 Migration Tool Chris Adams Web Platform Supportability Lead Microsoft.
Customer Relationship Management. Content CRM SugarCRM System Requirement Installation Process Configuration.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Servlets Database Access. Agenda:  Setup Java Environment  Install Database  Install Database Drivers  Create Table and add records  Accessing a.
Introduction to CS520/CS596_026 Lecture Two Gordon Tian Fall 2015.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
 Database Administration Installing Oracle 11g & Creating Database.
Packaging for Voracity Solutions Control Panel David Turner.
Installing MySQL BCIS 3680 Enterprise Programming.
Module 6: Configuring User Environments Using Group Policies.
Hyperion Artifact Life Cycle Management Agenda  Overview  Demo  Tips & Tricks  Takeaways  Queries.
CMPE 226 Database Systems April 19 Class Meeting Department of Computer Engineering San Jose State University Spring 2016 Instructor: Ron Mak
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
EIONET Portal Tool Kit Miruna Bulandra Finsiel Romania Copenhagen, 28 May 2002.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
CMF For Content Authors. Slide 1©2001 Zope Corporation. All Rights Reserved. Outline Understand CMF approach to content Demonstrate content author goals.
CHM Portal Tool Kit Miruna Bulandra Finsiel Romania Copenhagen, 5 June 2002.
ArcGIS for Server Security: Advanced
Presented by [Harshit Agrawal] 04/03/2017
Getting Started with Dreamweaver
Managing User Desktops with Group Policy
Fundamental of Databases
Introduction to Dynamic Web Programming
TOPSpro Special Topics
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
LMEvents SharePoint Portal How-to Guide
Introduction to Web programming
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Presented by [Harshit Agrawal] 03/02/2017
Introduction to the Visual C# 2005 Express Edition IDE
PHP / MySQL Introduction
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
SiteBuilder 2 Introduction.
Getting Started with Dreamweaver
Microsoft PowerPoint 2007 – Unit 2
Converter for IIS and SharePoint Converts s into SharePoint list items 24/7 Creates SharePoint list items from s
Introduction to the ISB Intranet
Presentation transcript:

Application Integration With Zope/Plone Sankalp Agarwal Member IntraGOV Team

Agenda Integration of Relational Databases. External Application Integration. Advance ZMI Options.

Integration of Relational Databases Zope Can Be connected to following RDBMS -Oracle-DB2-PostgreSQL -MYSQL-SAP DB-Sybase -SQL Server-Gadfly

Adapters for Connecting Databases PostgreSQL-ZPsycopgDA Oracle- DCOracle2 package from Zope Corporation includes the ZoracleDA DB2- ZDB2DA MySQL -ZMySQLDA SAP DB - ZsapdbDA Sybase -SybaseDA SQLServer - ZODBC DA Gadfly -The Gadfly Database Adapter is built into Zope.

Integration of Relational Databases Integration of Gadfly Database. Integration of PostgreSQL. Integration of MySQL.

Gadfly Gadfly is a relational database written in Python. Gadfly is included with Zope for demonstration purposes and small data sets. Gadfly is fast, but is not intended for large amounts of information since it reads its entire data set into memory.

Creating Gadfly Database To Create a gadfly database add a folder with having name as the database name in your {plone instance}/var/gadfly Eg: Create a folder employee In windows C:\Program Files\Plone 2\Data\var\gadfly In Linux: /home/ZI/var/gadfly A Gadfly database employee will be created.

Connection String To create a connection to gadfly database – Navigate to ZMI – Add a Z Gadfly Database Connection – Provide a connection name as id – Select the database as Data Source – Click Add

Add a SQL To Run a SQL command – Navigate to ZMI – Add a Z SQL Method – Provide a id to it – Select the connection id – Provide arguments if any – Provide SQL Statement like select, insert etc. – Click Add

Display Result of Z SQL Add a Page Template with the following code <html xmlns=" xml:lang="en" lang="en" metal:use-macro="here/main_template/macros/master" i18n:domain="plone"> FILL IN YOUR XHTML/TAL TO DISPLAY RESULTS

Demo

Limitation of Gadfly Database. It is dependent on Python Can’t Handle large amount of data since it reads its entire data set into memory. Can’t Handle Large relations.

PostgreSQL Connectivity PostgreSQL is a leading open source relational database with good support for SQL standards. Database Adopter used for Connecting Zope with PostgreSQL is Psycopg. Psycopg dependency PostgreSQL mxDateTime module for python.

Psycopg Installation Download MxDateTime Module from Untar(Unzip) the module. Run the following command./{python-path} setup.py build./{python-path} setup.py install where { python-path} is the python installation directory. Eg. /home/ZopeSetup/Python/bin/python

Psycopg Installation Download the psycopg2-latest.tar file from Untar ( Unzip) the file. Change the directory to the extracted directory Edit the following Configuration in setup.cfg – Uncomment and set the “mx_include_dir=“ to the mxdatetime installation path Eg: /home/ZopeSetup/Python/lib/site-packages/mx – Uncomment and set pgconfig and include_dir if custom postgreSQL installation is used.

Psycopg Installation Run the following command./{python-path} setup.py build./{python-path} setup.py install where { python-path} is the python installtion directory. Eg. /home/ZopeSetup/Python/bin/python Copy the Zpsycopg Folder in Zope/lib/Python/Products Change the permissions if necessary. Restart Zope.

Connection String To create a connection to postgreSQL database – Navigate to ZMI – Add a Psycopg2_database_connection – Provide a id – Provide a connection string with following credentials host dbname port user password Eg: host=localhost port=5432 dbname=employee user=xyz passwd=xyz – Click Add

Add a SQL To Run a SQL command – Navigate to ZMI – Add a Z SQL Method – Provide a id to it – Select the connection id – Provide arguments if any – Provide SQL Statement like select, insert etc. – Click Add

Demo

MySQL Connectivity MySQL is a leading open source relational database with good support for SQL standards. Database Adopter used for Connecting Zope with MySQL is zmysqlda. Zmysqlda dependency MySQL mysql-python module for python.

Zmysqlda Installation Install mysql-python to your Python. Most Linux- distributions are offering this packaged. Download zmysqlda from source forge and extract it to your Products directory. Restart Zope, login as manager, go to your Plone ZMI.

Connection String To Create a Connection String – Navigate to ZMI – Add a Z MySQL Database Connection Provide a id – Provide a connection string with following credentials host dbname port user password Eg: host=localhost port=5432 dbname=employee user=xyz passwd=xyz – Click Add

Add a SQL To Run a SQL command – Navigate to ZMI – Add a Z SQL Method – Provide a id to it – Select the connection id – Provide arguments if any – Provide SQL Statement like select, insert etc. – Click Add

Passing Parameters in ZSQL <html xmlns=" xml:lang="en" lang="en" metal:use-macro="here/main_template/macros/master" i18n:domain="plone"> FILL IN YOUR XHTML/TAL TO DISPLAY RESULTS

External Application Integration Introduction to PHParser/PHPGateway. Installation of PHParser/PHPGateway. Creating Scripts with PHParser. Linking External Application. Single Sign on.

PHParser/PHPGateway PHParser/PHPGateway aims to combine Zope and PHP together. It provides you a possibility to run PHP scripts under Zope and Plone. PHParser is a DTML-Document-like object. Its content when being published is first rendered by the DTML engine and then passed to PHP CGI. The result from PHP CGI will be finally displayed. PHPGateway is a Folder-like object. When its docroot property is pointed to a real directory in the file system, the entire directory can be published by Zope, even as a virtual host. Especially, the.php files under that directory will be directly passed to PHP CGI without DTML rendering. Latest Stable version is

Installating PHParser/PHPGateway Prerequisites – PHP 4.0 or above with CGI Module. Download –

Installation on Linux Untar ( Unzip ) the PHParser-x.y.z.tar.gz file in {Zope Home}/lib/python/Products – {Zope Home} is the zope installation directory eg: /home/zope/lib/python/Products Edit the phparser.py file in PHParser folder – PHPath with the php installtion directory eg: PHPath = "/var/www/cgi-bin/php" – Note: Perform this only in case for customized php. If Default php is been used do not perform this step. Restart Zope.

Installation on Windows Untar ( Unzip ) the PHParser-x.y.z.tar.gz file in {Plone Home}/lib/python/Products – {plone Home} is the plone installation directory eg: /C:/Program Files/Plone 2/Zope/lib/python/Products Edit the phparser.py file in PHParser folder – PHPath with the php installtion directory eg: PHPath = "c:\\php\\php-cgi.exe“ Note: Perform this only in case for customized php. If Default php is been used do not perform this step. Restart plone.

Adding a PHParser Navigate to ZMI Add A PHParser Provide a id Click Save

Adding A PHPGateway Navigate to ZMI Add a PHPGateway Provide a id Provide docroot as the root web directory of php. – Eg: /var/www/html

Demo

Single Sign On For Single sign on User id has to be passed in application with /without encryption. PHParser gets the login user id by $ZOPE_VARS[AUTHENTICATED_USER];

Advance ZMI Options Restrict User to change password on login. Error Logs Portal Catelog Syndication & RSS feeds

Restrict User to change password Navigate to ZMI Edit or add the Boolean field “must_change_password “ Note: User will be restricted only before first login.

Error Log Error log provides debugging and error logging information in real time. When the site encounters an error, it will be logged in the site error log, allowing the administrator to review the error. For more specific details on error Install Plone error reporting from quick installer.

Error Log Navigate to ZMI Click error_log Click on error to view details. Properties of error log – No. of exception to keep – Ignored exception type

Error Log

Portal Catalog Catalog is used for indexing and faster access to the content. Metadata is stored in Catalog. To Search in catalog 'portal_catalog' is used. By Default ZCatelog is used which is ZOPE’s built in search engine. It allows you to categorize and search all kinds of ZOPE objects.

Syndication in Plone RSS- Really Simple Syndication/ Rich Site Summary. RSS Feeds are based on XML. Plone has had a syndication tool but it's not turned on by default To Enable Syndication – Navigate to ZMI – Open Portal_syndication – Check the visible box – Click Save This means now a syndication tab is visible in the content view of plone.

Syndication in Plone

Setting Syndication Properties – Click the syndication tab – Enable/ disable syndication – Setting the number of item to be syndicated – Update Period – Update frequency – Click save.

RSS Feeds To Add RSS Feeds from other sites we have to use a RSS Aggregator RSS Aggregator in Plone – CMFSin – CMFFeed – Pod Channel Demo

Questions

Thank You