Failing to create a Plone theme templated from Sunburst theme - plone

I have had problems getting a paster generated theme product to work in my production Plone 4.0 server, so I thought I would try again now that 4.1 is out. I'm now having a different problem: the theme just doesn't show up in the Add-ons list. Here's what I did:
Installed Plone 4.1 for Windows from Enfold
Downloaded ez_setup.py, and ran it with Plone's embedded python
Ran the installed easy_install to get the latest ZopeSkel installed into the embedded Python.
mkdir src ; cd src ; ..\python\Scripts\paster create -t plone3_theme plonetheme.lt
Answered the questions so that I'd get a theme based on the plone4 Sunburst theme
Otherwise I don't touch anything in that generated code.
cd plonetheme.lt ; ....\python\python.exe setup.py develop [not sure if I need to do this]
Edit the buildout.cfg to add plonetheme.lt to the eggs list, and added:
develop = src/plonetheme.lt
Run buildout. It mentions that it can find the plonetheme.lt package.
Start Zeo and Plone servers
The plonetheme.lt does not appear in the list of Add-ons
What can I have missed? I've poured over the bits of documentation on plone.org and I have Martin Aspeli's books. Many thanks. I've also tried adding the packaging to the zcml slugs, to no avail.
Luke

"cd plonetheme.lt ; ....\python\python.exe setup.py develop [not sure if I need to do this]"
no this is useless
"Edit the buildout.cfg to add plonetheme.lt to the eggs list, and added: develop = src/plonetheme.lt"
you need to add it to the zcml list too.
More info:
Take a look at the step 2 of this guide:
http://plone.org/documentation/kb/add-ons/installing

You could try the another solution using buildout.eggtractor
Or better if you paste your buildout somewhere...

Related

How to install WordPress on Heroku?

I want to build wordpress on Heroku as the following article:
WordPress on Heroku: Up and Running!
Here’s the step by step tutorial for getting a WordPress.org installation running on Heroku’s Cedar stack:
Create GitHub repo
Then create local repo with GitHub as the upstream for origin. Basically like it says on the new repo page:
cd REPO-NAME
# Create the readme file... use your favorite editor.
# Put in something informative
mate README.markdown
git add .
git remote add origin git#github.com:brookr/REPO-NAME.git
git push -u origin master
I have downloaded Cygwin, installed Git.
I have created the GitHub repo according to https://help.github.com/articles/create-a-repo
mate README.markdown doesn't work.
How can I do this?
As mentioned in the article you linked, mate is simply an example text editor:
mate README.markdown # Create the readme file... use your favorite editor. Put in something informative
In this case it's the command-line interface to Textmate, which is only available on OSX.
You could use Sublime Text, Emacs, Vim, Notepad++, almost anything. Even Notepad might work, though its Windows-only line endings might muss things up.
As Cupcake mentions in the comments, the Git commands in the tutorial will need some tweaking as well. git add stages changes, which then get committed with git commit. git push pushes committed changes, so if you don't git commit you won't be pushing anything.
There may be other minor bugs in the article as well, though it looks reasonably close to what you want.
The repo on github is empty. There is nothing to clone.
The "git clone REMOTE LOCAL" makes/names the local dir. So your next command should have been "cd 99catfacts.com" had the remote existed to be cloned.
How can I do this?
https://devcenter.heroku.com/categories/php
It's beta, but that is better than; clone this, hit moving target x, have WP site.

Install PloneBooking into Plone

Hello I'm trying to install PloneBooking Product into my Plone 4.3.3 by using buildout.cfg like this
eggs =
Products.PloneBooking
Products.PloneFormGen
Products.ZMySQLDA
Plone
Pillow
Automatically I can see the PloneFormGen into my plugins page but no sign of PloneBooking, It could've be a version issue. I've already tried using mr.developer and using the github version, but the documentation is confusing since there's no [eggs] into my buildout.cfg in this link http://plone.org/documentation/kb/installing-add-ons-quick-how-to
. How can I proceed from this point?
Thanks already.
Looks like there's a python version problem in some modules, so I've just installed a different version of PloneBooking into my [versions] section, like:
Products.PloneBooking = 3.0.0a2
no need for mr.developer or anything.

omega 4.x sub theme creation

I have spent lots of time to search good tutorial or documentation for creation omega 4.x sub theme, But did't found. Like How to create a layout templates using with node types, taxonomy, user pages. Any help appreciable
If you are a windows user, you will first need to set up a virtual box with linux. While linux is the preferred choice to theme with Omega 4, you can also use mac but will need homebrew, etc.
Windows user:
Virtualbox https://www.virtualbox.org/wiki/Downloads
Drupalpro https://drupal.org/project/drupalpro
Drupalpro is a prebuilt linux environment for drupal. Follow the directions for install then complete the drupalpro update that is documented in the middle of the page. Make sure and update drush as per the update directions as Omega 4 needs more recent version. Last, update ubuntu with sudo apt-get update (don't use the package manager)
The directions below have been tested with Drupalpro (source for rvm install)
Install https://rvm.io/ Always check for the most recent/stable version!
$ \curl -L https://get.rvm.io | bash -s stable
$ source /home/drupalpro/.rvm/scripts/rvm
$ rvm requirements
Next build and install the latest version of Ruby (this might take awhile). As of Aug 2013, this is the latest build. Please change as needed.
$ rvm install 1.9.3
$ rvm use 1.9.3
$ rvm rubygems latest
Verify rvm install:
$ rvm -h
$ rvm list
$ ruby -v
You should get a message similar to: ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
Now you are set up and ready to install an Omega4 subtheme. Cd to the root of your drupal site.
drush dl omega --select
Choose the appropriate Omega4 version. This will automatically download and place Omega 4.x in sites/all/themes/omega. Omega4 comes with it's own drush commands which is why it is important to have a recent version of drush. Clear drush cache then view the new omega drush commands.
drush cc drush
drush help --filter=omega
Create your subtheme
drush omega-wizard
Follow the set-up directions.
Please enter the name of the new sub-theme [Omega Subtheme]: Yoursubthemename
Please enter a machine-readable name for your new theme [yoursubthememachinename]
Please choose a base theme for your new theme
2 : Omega - A powerful HTML5 base theme framework utilizing tools like
Sass, Compass, Grunt, Bower, Ruby Version Manager, Bundler and more.
Please choose a starterkit for your new theme
1 : Default: Comes with a well organized Sass setup with heavy use of
partials. (Provided by Omega)
Please choose a destination. This is where your sub-theme will be placed
Please choose a destination type.
1 : Site (e.g. 'all' or 'example.com')
Please choose a site.
1 : all
Do you want to keep the starterkit's readme files? (y/n):
Do you want to enable your new theme? (y/n):
Do you want to make your new theme the default theme? (y/n):
If everything went as it should you will see the following message:
You have successfully created the theme Yourthemename (yourthememachinename) in sites/all/themes. [success]
After finished, inside your subtheme run:
bundle install
trouble shooting If you receive an error at bundle install or at bundle exec guard, you may need to change your terminal preferences. terminal > profile preferences > title and command > check-mark "run command as login shell" image. Close terminal, cd back to the root of your site and run bundle install.
cd into root of sub-theme:
bundle exec guard
You have now created your Omega Subtheme. Documentation for creating custom layouts here
leveluptuts are making great tuts right now for omega 4.x
leveluptuts.com
here is the playlist at Youtube : http://www.youtube.com/playlist?list=PLLnpHn493BHH5nnK2dKE_42l1oXA6Tq6H with something like a new video per week !

How can I tell aptana to automatically add the eggs included in the buildout?

I'm using Aptana3 to write a python app. Also, I write a buildout.cfg and virtualenv to make the process repeatable and isolated. Thus, packages are installed using:
virtualenv env
env/bin/python bootstrap.py
bin/buildout
as commonly we do in python projects.
To save space I configure Buildout to store the automatically downloaded eggs into the ~/.buildout/eggs folder. But not all eggs in that folder are used by my project, there are eggs from other projects to.
In Aptana I created a pydev project that uses the env/bin/python interpreter. The problem is that this environment doesn't include the eggs that are installed using buildout and Aptana makes alerts. So I used Omelette to create symbolic links to used packages in the folder parts/omelette and I add that folder to the interpreter package, but it continues showing error messages.
How can I configure Aptana to avoid that error messages?
If buildout is creating .egg-links, you might be being bitten by this bug: https://jira.appcelerator.org/browse/APSTUD-4945
I think Aptana will find need them if you add ~/.buildout/eggs to your PYTHONPATH.

Plone4 - Installing addons

I am new to Plone and I am having trouble understanding how to install addons. I have read the documentation provided on their site, but I am still a bit confused.
The addon that I am trying to install is http://plone.org/products/uwosh.timeslot.
In the documentation, I see them using a something like cmd.exe, but I am not really sure what it is. Is it the python.exe located in the python folder?
Also, I am not clear if the addon that I wish to install is in an "egg" form.
Could someone please provide me with a detailed process for installation?
Thank you.
http://plone.org/documentation/kb/installing-add-ons-quick-how-to
Find, then edit your buildout.cfg file per instructions above to add the uwosh.timeslot egg.
Re-run bin/buildout (or bin\buildout on windows) from the main plone directory on the command-line (do not run from the bin directory as your current working directory).
Answering your other questions:
Yes, packages listed on PyPI.python.org are "eggs" in the sense that you install them as eggs in buildout, not classic "Products".
cmd.exe is MS Windows command-line, assuming you are using Windows, not Unix.
This is only useful if you know where your Plone installation is located on disk -- you should.

Resources