Posted
11 months
ago
by
BlueDynamics Alliance - Zope Related
Now with plone.app.theming we are in the lucky situation to deliver really any design with Plone.
But there are also designers out in the wild creating designs not compatible with Plones edit-mode.
So its sometimes easier to edit in
... [More]
the classic Plone UI (Sunburst Theme) using a different web address for editing.
And here is how to do it:
Consider to configure two adresses http://edit.domain.tld and http://www.domain.tld Add a subscriber to zope.app.publication.interfaces.IBeforeTraverseEvent to configure.zcml
Add a file subscriber.py with code to conditionally set the header X-Theme-Disabled: True in case of edit domain (you may want to improve the condition).
def surpress_theme(obj, event):
if event.request['ACTUAL_URL'].startswith('http://edit.'):
event.request.response.setHeader('X-Theme-Disabled', 'True')
Restart your instance
To test this on localhost just add something like edit.localhost to your /etc/hosts file for 127.0.0.1 and enter http://edit.localhost/Plone in your browser.
Image by karlbirrane at flickr under a CC-BY-SA license
[Less]
Posted
11 months
ago
by
Plone News
These sessions are a great way to get up to speed on Plone, learn about aspects of the CMS you have always wanted been interested is, or just hone your skills with some of the best trainers in the Plone community.
Details will be available
... [More]
soon on the training page of the conference site, along with links for signing up for the classes. Remember that the cost of training is not included in the conference fee.
(The following courses and instructors are confirmed. Course descriptions and details subject to change.)
Theming Plone 4 — Chrissy Wainwright — Two Days
This training session includes front-end design of a Plone 4.0 site from start to finish using two methods: Traditional Plone theming, and using plone.app.theming. The training will be a hands-on, introductory walk-through of the process, using a pre-created sample design. Attendees will need their computers and will be expected to follow along on their own local instances.
Prerequisites: Knowledge of XHTML and CSS; Basic familiarity with Plone
Cris Ewing — Getting off the Ground with Plone — Two Days
So you've heard about Plone, this smart, secure and powerful content management system and you'd like to get started. Where to begin? This training course is for you.You'll learn how to install Plone, how to create your first website and get started adding content, how to get quick, simple victories for your new project, and how to deploy your site when you're ready to go live.
Martin Aspeli — Plone Development Environment and Deployment Masterclass — Two Days
Learn to develop and deploy like a Plone pro! On the first day, you will learn how to set up a powerful and productive development environment, employing the tools the professionals use to debug, document and release manage their code. The second day will focus on caching, performance optimisation, deployment configuration and application lifecycle management.
Technologies covered will include: Buildout; mr.developer; the Python debugger; plone.reload; Sphinx; PyPI-style distribution management; plone.app.caching; HAProxy; Varnish; and nginx.
Prerequisites: Some Plone customisation or development experience will be helpful to bring the content into context. Familiarity with the command line will be necessary for day two.
Creating Custom Content Types with Dexterity — Steve McMahon — Two Days
With Plone 4, the Dexterity content-type-development framework has become a practical and desirable alternative to the Archetypes framework Plone has featured in previous versions. This course will show how it's possible to use Dexterity now to build reliable and maintainable new content types for Plone 4+.
Prerequisites: Basic Python, HTML and XML. Command-line skills on your platform of choice.
Introduction to Pyramid — Paul Everitt — One Day
Pyramid is a small, fast, down-to-earth Python web application development framework. It is developed as part of the Pylons Project and shares many technical roots with Zope and Plone.
Prerequisites: Basic Python, HTML [Less]
Posted
11 months
ago
by
Plone News
These sessions are a great way to get up to speed on Plone, learn about aspects of the CMS you have always wanted been interested is, or just hone your skills with some of the best trainers in the Plone community.
Details will be available
... [More]
soon on the training page of the conference site, along with links for signing up for the classes. Remember that the cost of training is not included in the conference fee.
(The following courses and instructors are confirmed. Course descriptions and details subject to change.)
Theming Plone 4 — Chrissy Wainwright — Two Days
This training session includes front-end design of a Plone 4.0 site from start to finish using two methods: Traditional Plone theming, and using plone.app.theming. The training will be a hands-on, introductory walk-through of the process, using a pre-created sample design. Attendees will need their computers and will be expected to follow along on their own local instances.
Prerequisites: Knowledge of XHTML and CSS; Basic familiarity with Plone
Cris Ewing — Getting off the Ground with Plone — Two Days
So you've heard about Plone, this smart, secure and powerful content management system and you'd like to get started. Where to begin? This training course is for you.You'll learn how to install Plone, how to create your first website and get started adding content, how to get quick, simple victories for your new project, and how to deploy your site when you're ready to go live.
Martin Aspeli — Plone Development Environment and Tooling Masterclass — Two One-Day Classes
Two one-day classes with first emphasizing development and the second production deployment.
Prerequisites: Plone development experience for day one; command-line skills for day two.
Creating Custom Content Types with Dexterity — Steve McMahon — Two Days
With Plone 4, the Dexterity content-type-development framework has become a practical and desirable alternative to the Archetypes framework Plone has featured in previous versions. This course will show how it's possible to use Dexterity now to build reliable and maintainable new content types for Plone 4+.
Prerequisites: Basic Python, HTML and XML. Command-line skills on your platform of choice.
Introduction to Pyramid — Paul Everitt — One Day
Pyramid is a small, fast, down-to-earth Python web application development framework. It is developed as part of the Pylons Project and shares many technical roots with Zope and Plone.
Prerequisites: Basic Python, HTML [Less]
Posted
11 months
ago
by
active questions tagged zope - Stack Overflow
I'm trying to make a form where I'm storing values outside of the context. Storing is done and working well but now I would like the update method to fill the form on rendering process. So I'm overriding update method of the Form class that
... [More]
way:
def update(self):
super(ConfigurationForm,self).update()
form = self.request.form
if not form:
#We are on a rendering process
provider = self.getProvider()
settings = provider.get()
#TODO: update widget values !?
settings is a dict where keys are equals to Interface fields's names.
So I have tried many ways to update widgets values:
Using dataconverter (too much complex and don't know if this is the only way
Updating the self.request.form dict and call again the update method
playing with field objects
What is the good way to achieve this ? (supporting all kind of field ?) [Less]
Posted
11 months
ago
by
RedTurtle Technology
It has been a tiring but exciting week in Florence.
After four years of national PyCon Italy, the team has been excellent and set up an event that clearly shows the level of maturity of the community.
Over the years since the first
... [More]
EuroPython conference, the big change is that we don't have to justify our language choice anymore.
Actually, I would not even be a programmer it where was no Python. I was a system administrator, more like a plumber than an internal decorator.
Python has taken me by hand, teaching and letting me write things I would not have attempted in other languages available at the time.
For me, Python was an easy choice, but... difficult to master.
As programmers, we make trade-offs and take compromises several times per day, while we design and write applications.
Very often we take a different road than we did the day before, because we've seen what lays ahead and want to avoid it, or the customer has changed his mind, or we have a better understanding of the whole.
As a matter of fact the right answer to a programming question is often "it depends", because the architectures, markets and business models are getting more and more complex, and we as software craftsmen have none of the certainties than mathematicians or computer science people take for granted.
Fortunately for us and our customers, software can be easily changed, and nothing prevents experimenting with different approaches if time allows.
But once in a while - typically at the start of a development cycle - we have bigger choices, the decisions that make room for the following ones: the basic architecture.
What language(s) are we going to use? (that's easy, Python. but it depends)Light framework or a heavy, full featured one?
Relational or non-relational database? And if non-relational, which of the many?
Is our application process or data driven, or both? (this is vague. it's usually both)
Browser or server side processing?
How will it scale to many concurrent users?
and so on, and on.
At this point, if we pick the wrong road, the application could still be delivered, hopefully in time and the customer will be happy (at first), but the program itself might be a lot more complicated than it needs to be, and hard to change. The price will be paid over time, as new needs come and maintenance is required.
Unfortunately for us, some of these are hard questions, also subject of fashions and marker pressure, and it is very hard to have a comprehensive picture just by following technical blogs.
That's why I long for conferences like EuroPython, where the scope of the talks is as wide as can be, while still remaining highly technical.
Where the authors are ready to discuss about it over the lunch, and everybody is smart for having chosen Python :-)
Best talks.. ever :-)
A few of the talks tackling old problems in light of new tools and experiences:
Relate or !Relate (Mark Ramm-Christensen)
Mark explains the difference between the forest of NoSQL databases, and shows that a good SQL DBMS can scale surprisingly well.
This is a dear topic to me, because direct approaches in one side require complex contraptions on the other one, and vice-versa.
As a side note, lately the MySQL - Postgres debate seems to be over. The latter one has sharply won, if not the market, the minds of the programmers.
How to build complex web applications having fun? (Andrew Mleczko)
If the user wants both, give them both. Instead of fitting every requirement in a single architecture, try deploying a full-featured
CMS along with a light, flexible framework and divide the tasks -- a little like loading a bike on your camper.
You can go anywhere and they integrate well.
This is easier today (in the post-WSGI world) thanks to Pyramid, a highly refined foundation for web applications that lets a lot
of freedom: should the architecture be modeled after Zope, Plone, Pylons, Turbogears, Rails or Django? With Pyramid, "it depends" is the main concept :)
Other worth mentioning
Challenges in developing a large Django site (Simon Willison)An iPhone-Python love affair: Building APIs for mobile (Anna Callahan - Nate Aune)
I also had fun with Raymond Hettinger, the only developer I've known that adds a +1 charisma bonus within a 10mt radius.
In his training track, he tore apart core concepts of Python (classes, decorators, properties, descriptors, dictionaries) and as he spoke rebuilt them using lists only. MacGyver couldn't do better!
But really, I could list half of the talks in the schedule, they are that good, and they kept a good balance of more and less advanced matters.
and the plone-ish stuff?
Sure, I would have liked a few more talks about Zope, Plone, BlueBream or Grok, especially highlighting how they have changed in the latest years, becoming more powerful, easier to extend and deploy, and there should be some effort communicating that to new developers.
They are coming to the conference to look for directions, and might go after some fashionable, but less capable tools. [Less]