Quantcast
Channel: Davide Moro
Browsing latest articles
Browse All 25 View Live

Kotti CMS - how to create a new content type with an image

If you want to create a new content type based on an existing one with Kotti you need to write few lines of code and zero html for the add and edit views: it is very simple (browse Kotti's resources.py...

View Article



Kotti CMS - workflow reference

Yet another blog post about Kotti CMS (http://kotti.pylonsproject.org/): this time I'm going to talk about workflows and security.Workflows in Kotti are based on repoze.workflow. See...

View Article

Python mock library for ninja testing

If you are going to write unit tests with Python you should consider this library: Python mock (https://pypi.python.org/pypi/mock).Powerful, elegant, easy, documented...

View Article

Kotti CMS - how to store arbitrary data with annotations

With Kotti CMS you can extend existing types inheriting from a base class (eg: Document) and obtain another type of object (eg: MyDocument) with new fields, new workflows, custom views, custom...

View Article

Kotti CMS - how to turn your Kotti CMS into an intranet

In the previous posts we have seen that Kotti is a minimal but robust high-level Pythonic web application framework based on Pyramid that includes an extensible CMS solution, both user and developer...

View Article


Kotti CMS events - insert subobjects automatically

Yet another small recipe for Kotti CMS: how to initialize automatically a new object once inserted with events, for example adding a subobject.Use case? When someone creates a UserProfile object...

View Article

Image may be NSFW.
Clik here to view.

Pyramid, MySQL and Windows: the good, the ugly and the bad

Pyramid, MySQL and Windows: the good (Pyramid), the ugly and the bad. This title does not fit perfectly the main characters of this blog post because some of theme are both ugly and bad, but it doesn't...

View Article

Pyramid exceptions logging

If you want to log exceptions with Pyramid (http://www.pylonsproject.org/) you should start reading carefully the following resources:...

View Article


Image may be NSFW.
Clik here to view.

How to choose your CMS

This article is dedicated to non Python folks searching for a good CMS because I've seen too many times people taking bad decisions.If you are searching for a CMS solution or are you writing a custom...

View Article


Image may be NSFW.
Clik here to view.

Pip for buildout folks

... or buildout for pip folks.In this article I'm going to talk about how to manage software (Python) projects with buildout or pip.What do you mean for project?A package that contains all the...

View Article

Image may be NSFW.
Clik here to view.

kotti_multilingual

kotti_multilingual is a package still in an early stage of development that adds to the Kotti CMS (http://kotti.pylonsproject.org/) multilingual capabilities. It is neither feature complete nor can be...

View Article

Kotti CMS - ElasticSearch integration

Announcing a new Kotti CMS (Python web framework based on Pylons/Pyramid and SQLAlchemy) plugin that provides ElasticSearch integration for fulltext search and indexing:kotti_es...

View Article

Image may be NSFW.
Clik here to view.

Kotti CMS - how to add new roles

Kotti CMS has an intuitive user and permissions management that scales to fit the requirements of larger organizations.This blog post is a small recipe: how to add a new role in user management views...

View Article


Image may be NSFW.
Clik here to view.

Kotti CMS - a successful story (part 1)

Yet another Kotti CMS (http://kotti.pylonsproject.org) article.We'll see in this blog post:advantages of the public website decoupled (frontend) from the private content administration area (backend)...

View Article

Image may be NSFW.
Clik here to view.

Kotti CMS - frontend decoupled from backend. How we did it (part 2)

In the previous article http://davidemoro.blogspot.it/2015/07/kotti-cms-successful-story-part-1.html we have seen that:decoupled public website from the private content management is coolPython and...

View Article


Introducing substancek. A Kotti project

Let me introduce substancek, a Kotti (http://kotti.pylonsproject.org) project.What it is substancek?substancek is:Kotti (web application framework) + decoupled admin interface It is only an additional...

View Article

Image may be NSFW.
Clik here to view.

Combinatorial testing: ACTS

Last year I discovered the ACTS tool thanks to Rex Black's "Pairwise Testing with ACTS" webinar: https://rbcs-us.com/blog/pairwise-testing-with-acts-available-now/and I find it very helpful when you...

View Article


Image may be NSFW.
Clik here to view.

Test automation framework thoughts and examples with Python, pytest and Jenkins

In this article I'll share some personal thoughts about Test Automation Frameworks; you can take inspiration from them if you are going to evaluate different test automation platforms or assess your...

View Article

Image may be NSFW.
Clik here to view.

Hello pytest-play!

pytest-play is a rec&play (rec not yet available) pytest plugin that let you execute a set of actions and assertions using commands serialized in JSON format. It tries to make test automation more...

View Article

Image may be NSFW.
Clik here to view.

API/REST testing like Chuck Norris with pytest play using YAML

In this article we will see how to write HTTP API tests with pytest using YAML files thanks to pytest-play >= 2.0.0 (pytest-play provides support for Selenium, MQTT, SQL and more. See third party...

View Article

High quality automated docker hub push using Github, TravisCI and pyup for...

UPDATE 20190611: the article contents are still valid but I definitively switched from pyup to the requires.io service. Why? There were an unexpected error on my pyup project and the support never sent...

View Article


Setting up Cassandra database service on TravisCI

At this time of writing TravisCI says that if you want to run a Cassandra service you have to add a cassandra service according to https://docs.travis-ci.com/user/database-setup/#cassandra:services:  -...

View Article


Turn any program that uses STDIN/STDOUT into a WebSocket server using websocketd

Yesterday I tried for the first time websocketd and it is amazing!This is a little gem created by @joewalnes that let you implement language agnostic WebSocket applications based on any command line...

View Article

CSS selectors guidelines for smooth test automation with Selenium

Mind exploding trying to locate a DOM element and after 20 minutes you get a selector like that?.elem__container_search div:nth-child(1) .row1 tr:nth-child(5) input:nth-child(2)or even worse you have...

View Article

Image may be NSFW.
Clik here to view.

Testing metrics thoughts and examples: how to turn lights on and off through...

In this article I'll share some personal thoughts about test metrics and talk about some technologies and tools playing around a real example: how to turn lights on and off through MQTT collecting test...

View Article

Browsing latest articles
Browse All 25 View Live




Latest Images