Test Post with ecto

I’m making a test post with ecto. Ecto is desktop publishing solution for the Mac platform, which works with wordpress among others.

For starters, here is a picture:

201012022310.jpg

And here is some source code:


def Select(Account_MNID):
  return App.DB.Row(”’
SELECT
“Account_MNID”,
“Name”,
“CreateDate”,
“ChangeDate”,
“Address1”,
“Address2”,
“Address3”,
“City”,
“State”,
“Zip”,
“Country_MSID”,
“Phone”,
“Fax”,
“Email”,
“Note”,
“Perm_Active”
FROM
“ACRM”.”Account”
WHERE true
AND “Account_MNID” = $Account_MNID
”’,
    Account_MNID = Account_MNID
    )

It is important to me that code shows up correctly once posted. For clarity, I will take a screenshot of the code…

201012022313.jpg

Lastly, I need to see what happens when I post a high quality photo from my desktop…

I did this one by dragging the photo from Finder onto this Ecto window.

2010-11-24_11-13-11_968.jpg

As an edit, I clicked the insert image button, and used a preset to specify 700px wide, but as a thumbnail…. Let’s see.

2010-11-24_11-13-11_968.jpg

Ok, good side… Pictures and text seem to flow pretty well. Bad side… Code formatting was lost. I should try wrapping it in the [ sourcecode ] wrapper… I’ll do that next…


# vim:encoding=utf-8:ts=2:sw=2:expandtab
import Extruct
import re
import uuid
import hashlib

from .. import App, ACRM
from . import Validate

from AppStruct.Util import *
from datetime import date

Insert_Validate = App.GetHook(‘CCRM.Account.Insert_Validate’)
Insert_Execute = App.GetHook(‘CCRM.Account.Insert_Execute’)

#============================================================================

def Select(Account_MNID):
  return App.DB.Row(”’
SELECT
“Account_MNID”,
“Name”,
“CreateDate”,
“ChangeDate”,
“Address1”,
“Address2”,
“Address3”,
“City”,
“State”,
“Zip”,
“Country_MSID”,
“Phone”,
“Fax”,
“Email”,
“Note”,
“Perm_Active”
FROM
“ACRM”.”Account”
WHERE true
AND “Account_MNID” = $Account_MNID
”’,
    Account_MNID = Account_MNID
    )

For sourcecode, I guess I’m still stuck editing the HTML.

Look at the markup that was generated with a simple copy/paste from Github…

201012022333.jpg

What is the best way to post source code examples?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s