Permalink
Browse files

• use TM_FULLNAME instead of TM_USERNAME in all templates and remove …

…the setup of TM_USERNAME from the template script/helper

git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@8306 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent e83626a commit e100b90c3d898c3ac1fc903b3978db40d984b497 @sorbits sorbits committed Oct 19, 2007
@@ -10,7 +10,6 @@ template = open("template.py").read
ENV["TM_YEAR"] = `date +%Y`.chomp
ENV["TM_DATE"] = `date +%Y-%m-%d`.chomp
-ENV["TM_USERNAME"] = `niutil -readprop / /users/$USER realname`.strip
if ENV["TM_SOFT_TABS"] == "YES"
tab_size = ENV["TM_TAB_SIZE"].to_i
@@ -3,7 +3,7 @@
"""
${TM_NEW_FILE_BASENAME}.py
-Created by ${TM_USERNAME} on ${TM_DATE}.
+Created by ${TM_FULLNAME} on ${TM_DATE}.
Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
"""
@@ -10,7 +10,6 @@ template = open("template.py").read
ENV["TM_YEAR"] = `date +%Y`.chomp
ENV["TM_DATE"] = `date +%Y-%m-%d`.chomp
-ENV["TM_USERNAME"] = `niutil -readprop / /users/$USER realname`.strip
if ENV["TM_SOFT_TABS"] == "YES"
tab_size = ENV["TM_TAB_SIZE"].to_i
@@ -3,7 +3,7 @@
"""
${TM_NEW_FILE_BASENAME}.py
-Created by ${TM_USERNAME} on ${TM_DATE}.
+Created by ${TM_FULLNAME} on ${TM_DATE}.
Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
"""
@@ -10,7 +10,6 @@ template = open("template.py").read
ENV["TM_YEAR"] = `date +%Y`.chomp
ENV["TM_DATE"] = `date +%Y-%m-%d`.chomp
-ENV["TM_USERNAME"] = `niutil -readprop / /users/$USER realname`.strip
if ENV["TM_SOFT_TABS"] == "YES"
tab_size = ENV["TM_TAB_SIZE"].to_i
@@ -3,7 +3,7 @@
"""
${TM_NEW_FILE_BASENAME}.py
-Created by ${TM_USERNAME} on ${TM_DATE}.
+Created by ${TM_FULLNAME} on ${TM_DATE}.
Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
"""
@@ -10,7 +10,6 @@ template = open("template.py").read
ENV["TM_YEAR"] = `date +%Y`.chomp
ENV["TM_DATE"] = `date +%Y-%m-%d`.chomp
-ENV["TM_USERNAME"] = `niutil -readprop / /users/$USER realname`.strip
if ENV["TM_SOFT_TABS"] == "YES"
tab_size = ENV["TM_TAB_SIZE"].to_i
@@ -3,7 +3,7 @@
"""
${TM_NEW_FILE_BASENAME}.py
-Created by ${TM_USERNAME} on ${TM_DATE}.
+Created by ${TM_FULLNAME} on ${TM_DATE}.
Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
"""

0 comments on commit e100b90

Please sign in to comment.